added method to obtain temporary crednetials for amazon s3