changed to AWS sdk lib for making requests