mitchellh / goamz

Golang Amazon Library
Other
672 stars 216 forks source link

Unstable "No valid AWS authentication found" error using IAM roles #222

Open 2xmax opened 9 years ago

2xmax commented 9 years ago

Sometimes (in 1 of 5 cases, can be reproduced easily) when I start Docker container and use IAM role, after several seconds I receive the following error:

No valid AWS authentication found using IAM roles

To fix this, I suggest:

  1. Add detailed error output (particularly related to this issue), it is hard to figure out what is actually broken without modification of source code.
  2. Fix getInstanceCredentials() or GetMetaData() function. At least one of them returns fragile result.

Does it makes sense?