-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
I am now getting throttled on AWS api calls during the state refresh #10973
Comments
Strongly suspect you are (as we are) running See aws/aws-sdk-go#2972 and https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html#configuring-instance-metadata-service though it looks like the latest awscli needs an extra parameter to work, e.g.:
You can check your instance's current hop-limit via |
Hey @komealy 👋 Thank you for taking the time to file this issue. Given the comment above and that there's been a number of AWS provider releases since you initially filed it, can you confirm whether you're still experiencing this behavior? |
Wow this is old 😅 This no longer happens for me. We didn't have to change any ec2 settings, but newer versions of provider/terraform itself do not behave this way anymore. We didn't update this particular CodeBuild job that still uses the old versions either. I suspect it was a backend issue inside AWS itself at the time that was returning the 503 errors. |
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. |
Community Note
Terraform Version
terraform -version
Terraform v0.11.14
Your version of Terraform is out of date! The latest version
is 0.12.16. You can update by downloading from www.terraform.io/downloads.html
Affected Resource(s)
multiple ones that run DescribeInstances and DescribeTags during the state refresh.
Terraform Configuration Files
Debug Output
I was getting this while I was getting throttled. I no longer have the 503 responses and am no longer getting throttled.
Panic Output
none
Expected Behavior
refresh in less than 5 minutes.
Actual Behavior
Refresh is taking almost an hour due to caught throttle responses and needing to retry.
Steps to Reproduce
terraform apply
Important Factoids
My AWS support reps reported a dramatic increase in requests during this timeframe.
Note that the previous day is multiple runs on multiple environments. The ones in the last two hours was one single environment.
References
The text was updated successfully, but these errors were encountered: