Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with loading credentials from instance metadata #188

Open
astampoulis opened this issue Feb 23, 2016 · 2 comments
Open

Issue with loading credentials from instance metadata #188

astampoulis opened this issue Feb 23, 2016 · 2 comments

Comments

@astampoulis
Copy link

Ran into an issue with loading security credentials from EC2 instance metadata. The code in loadCredentialsFromInstanceMetadata expects the name of the IAM role to match the data in InstanceProfileArn. This is true when using the AWS CLI tool, but if instances and IAM roles are set up differently (e.g. through Terraform), that is not necessarily the case.

As far as I can tell looking at both amazonka and the Java SDK the expected way to get security credentials is to use the first role listed in /latest/meta-data/iam/security-credentials.

@aristidb
Copy link
Owner

The quickest way to get this is always a pull request:)

@creichert
Copy link
Contributor

I just hit this bug as well using Elastic Beanstalk environments which prevents using instance profiles. I'll try to investigate when I'm working with the instance metadata again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants