cloudyr / aws.ec2

AWS EC2 Client Package
45 stars 28 forks source link

AWS STS tokens are not used properly in `ec2HTTP` #28

Closed kesor closed 6 years ago

kesor commented 7 years ago

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