Added checkawsfile function to check aws resource
Made changes to the main function for checking the amazon credentials and its content