InstanceProfileCredentialsProvider Unable to load credentials from service endpoint #2765
-
Hi all! I'm using the aws Java sdk with version 1.11.153. When using the InstanceProfileCredentialsProvider.getCredentials() in an EC2 instance. I'm getting the following error:
I have already confirmed that the instance has a role attached to it. Also I have tried to do a request like curl http://169.254.169.254/latest/meta-data/iam/security-credentials/myRole and it successfully retrieves the role credentials. I have already tried upgrading and downgrading the aws sdk version, but nothing seems to solve this issue. Can I get some help? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Already resolved, you can close this. |
Beta Was this translation helpful? Give feedback.
Already resolved, you can close this.