Please fill out the sections below to help us address your issue.
Version of AWS SDK for Go?
v1.25.13
Version of Go (go version)?
1.13.1
What issue did you see?
I'm using ElasticBeanstalk and some requests fail with:
NoCredentialProviders: no valid providers in chain. Deprecated. For verbose messaging see aws.Config.CredentialsChainVerboseErrors
Steps to reproduce
This issue is hard to reproduce, happens infrequently, for a small fraction of requests.
There can be days of it not happening, but if it starts occurring, there is a spike of these errors.
I also noticed that when the load on an instance increases, the likelihood of this error also increases.
I'm using the worker type of EBS.
Please let me know what additional information is required from me to fix this.
UPDATE:
I enabled Verbose logging for credentials and here is the full error message:
NoCredentialProviders: no valid providers in chain
caused by: EnvAccessKeyNotFound: failed to find credentials in the environment.
SharedCredsLoad: failed to load profile, .
EC2RoleRequestError: no EC2 instance role found
caused by: RequestError: send request failed
caused by: Get http://169.254.169.254/latest/meta-data/iam/security-credentials/: dial tcp 169.254.169.254:80: connect: connection refused
This is related to: #1861
Please fill out the sections below to help us address your issue.
Version of AWS SDK for Go?
v1.25.13
Version of Go (
go version)?1.13.1
What issue did you see?
I'm using ElasticBeanstalk and some requests fail with:
Steps to reproduce
This issue is hard to reproduce, happens infrequently, for a small fraction of requests.
There can be days of it not happening, but if it starts occurring, there is a spike of these errors.
I also noticed that when the load on an instance increases, the likelihood of this error also increases.
I'm using the worker type of EBS.
Please let me know what additional information is required from me to fix this.
UPDATE:
I enabled Verbose logging for credentials and here is the full error message:
This is related to: #1861