jkakar / aws-elixir

AWS clients for Elixir
Other
191 stars 0 forks source link

Temporary IAM security credentials won't work #61

Open toreriklinnerud opened 7 years ago

toreriklinnerud commented 7 years ago

Just a heads up to anyone trying to use this library with temporary IAM credentials obtained within an EC2 instance or ECS container. The temporary security token must be included in the request but that is currently not being done so the API request will fail authentication with a message saying the security token is invalid.

http://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html#UsingTemporarySecurityCredentials)

As an alternative it is possible to use https://github.com/erlcloud/erlcloud which allows the token to be passed.