cloudyr / aws.polly

Client for AWS Polly
https://cloud.r-project.org/package=aws.polly
23 stars 6 forks source link

AWS STS tokens are not used properly in `pollyHTTP` #2

Closed kesor closed 6 years ago

kesor commented 7 years ago

The session_token in pollyHTTP is not being read from locate_credentials or environment like it should, and default arg value is NULL which is causing temporary credentials to not work.

More details at https://github.com/cloudyr/aws.signature/issues/19#issuecomment-335428004

It does work in s3HTTP since it is using session_token = Sys.getenv("AWS_SESSION_TOKEN") in the argument list.