You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
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 inInstanceProfileArn
. 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
.The text was updated successfully, but these errors were encountered: