-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
provider-aws: Intermittent Race Condition with Ec2 Metadata service/credentials #6222
Comments
@phinze Per our conversation in chats today. Thanks for your help as well |
@phinze I was able to confirm that the metadata service does start sending 429s when it's being hit heavily. In my concurrency test it seems to break down after 25 concurrent connections are made. |
Is there a fix for this coming? friendlybump |
We've seen this too. I'm not clear though whether there is currently none or some retry and backoff in place.
|
I've experienced this too, but not with the metadata auth, but with a API key. |
I was wondering why my CI was intermittently failing, but I could not reproduce locally. |
@ajmath have you experienced this in your setup? |
I'm seeing the same issue. If I run my larger stack, it fails with the same error message (No valid credential sources found for AWS Provider). However, the number of times I see this message varies with every run. I'm suspecting it to be some race condition in getting the iam-role from the metadata.... |
I am having the same issue too. Is this going to be addressed anytime soon? |
Anecdotally this issue has gotten worse in 0.7.x (we worked around it in 0.6.x by reducing the parallelism). Even when setting |
I'm seeing this behaviour with 0.8.5. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Issue:
While
plan
orapply
ing our infrastructure when using the EC2 Metadata Service for TF AWS credentials we are seeing intermittent issues with our larger TF stack where we receive varying numbers ofNo valid credential sources found for AWS Provider.
error messages.A few things to note:
My guess is that there is an API rate limiting occurring when using the IAM Role provided credentials with the default parallelism, curious if others have run into similar issues.
Terraform Version:
terraform-0.6.14
Affected:
Debug Output (Stripped to just relevant counts):
Panic Output:
No panic output, however do get:
Expected Behavior
Reduce contention on Metadata service calls or handle/retry responses
The text was updated successfully, but these errors were encountered: