-
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
Regression between 0.12.24 and 0.12.29 on ec2metadata calls #25835
Comments
This issue has been automatically migrated to hashicorp/terraform-provider-aws#14624 because it looks like an issue with that provider. If you believe this is not an issue with the provider, please reply to hashicorp/terraform-provider-aws#14624. |
@jbardin please re-open, this has nothing to do with the aws terraform provider :) By using the following proxy: https://github.com/lifeofguenter/ec2metadata-proxycache, I was able to peek into the requests and have the following findings:
vs.
Notice how with 0.12.29 (no code changes, no provider changes) there are ~10k more requests towards the instance-metadata service. It seems most of the gain is going towards These number of requests are immense and can most probably be cached as they do not change within a single terraform process run. |
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. |
It seems like 0.12.29 is doing a lot more requests to ec2metadata than 0.12.24 to a point where we are being rate limited (see: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-retrieval.html)
It is advised:
Logs:
The text was updated successfully, but these errors were encountered: