converting to aws-sdk from old aws-s3