cloudyr / aws.sns

Amazon Simple Notification Service (SNS) API Client
https://cloud.r-project.org/package=aws.sns
12 stars 7 forks source link

AWS STS tokens are not used properly in `snsHTTP` #4

Closed kesor closed 6 years ago

kesor commented 7 years ago

The session_token in snsHTTP 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.