-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Intermittent NoCredentialsError('Unable to locate credentials') #2117
Comments
@JoeZ99 - Thank you for your post. Along with the debug logs can you please provide your ec2 instance type ? |
@swetashre , I'm having tremendous trouble to get the logs. Putting them in place in our system is not that easy, and once they're in place, I gotta hunt down the instance before aws kill it iself :-) That's to explain why it's taking sometime to get the logs. the instance I can tell you know: it's t3a.small Also I've seen this error on other aws service, which is the This is the stacktrace of the op I just mentioned as seen by sentry:
This is the args of the first call first call
|
When attempting to retrieve credentials on an Amazon EC2 instance that has been configured with an IAM role, Boto3 will make only one attempt to retrieve credentials from the instance metadata service before giving up. You can increase this value to make Boto3 retry multiple times before giving up. For this you can use https://boto3.amazonaws.com/v1/documentation/api/latest/guide/configuration.html For this issue i would recommend creating a ticket to AWS Support as this can be an issue with ec2 instance. So the ec2 team can also look at it. |
Describe the bug
S3FullAcess
from amazon.Steps to reproduce
Expected behavior
Debug logs
Full stack trace by adding
to your code.
I'll update this issue when I got the logs
The text was updated successfully, but these errors were encountered: