Closed MrGossett closed 9 years ago
@mitchellh @armon is there anything else you're looking for here before accepting this PR?
Sorry, sometimes things fly under our radar
No worries, @armon.
I'd be happy to help manage the PRs for this repo, if you could use a few extra hands...
When using Route 53, things were working perfectly when
aws.GetAuth
was passed credentials directly, or when it fell back toaws.SharedAuth
oraws.EnvAuth
. However, when I switched my app to using Temporary Security Credentials,aws.GetAuth
would fall through toaws.getInstanceCredentials
to get credentials for the instance's role. I kept getting the following error (whitespace added for readability):It turns out that the requests were missing a header. Here's the relevant snippet from the docs:
So, if the
aws.Auth
struct has a non-nilToken
, it should be added in aX-Amz-Security-Token
header. With this change, I was able to use Temporary Security Credentials just fine.