Skip to content
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 #14624

Closed
ghost opened this issue Aug 13, 2020 · 2 comments
Closed

Regression between 0.12.24 and 0.12.29 on ec2metadata calls #14624

ghost opened this issue Aug 13, 2020 · 2 comments
Labels
service/ec2 Issues and PRs that pertain to the ec2 service.

Comments

@ghost
Copy link

ghost commented Aug 13, 2020

This issue was originally opened by @lifeofguenter as hashicorp/terraform#25835. It was migrated here as a result of the provider split. The original body of the issue is below.


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:

  • cache results
  • implement retry with back-off

Logs:

[2020-08-13T08:20:39.133Z] 2020/08/13 08:20:38 [INFO] Setting AWS metadata API timeout to 100ms
[2020-08-13T08:20:39.702Z] 2020/08/13 08:20:39 [INFO] Ignoring AWS metadata API endpoint at default location as it doesn't return any instance-id
[2020-08-13T08:20:39.712Z] 2020/08/13 08:20:39 [INFO] Attempting to use session-derived credentials
[2020-08-13T08:20:40.293Z] 2020/08/13 08:20:40 [INFO] Ignoring AWS metadata API endpoint at default location as it doesn't return any instance-id
[2020-08-13T08:20:40.304Z] 2020/08/13 08:20:40 [INFO] Attempting to use session-derived credentials
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Aug 13, 2020
@breathingdust breathingdust added service/ec2 Issues and PRs that pertain to the ec2 service. and removed needs-triage Waiting for first response or review from a maintainer. labels Sep 8, 2021
@gdavison
Copy link
Contributor

This has been resolved in v4.0 of the AWS provider. If you see this issue again in newer versions, please open a new issue

@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
service/ec2 Issues and PRs that pertain to the ec2 service.
Projects
None yet
Development

No branches or pull requests

2 participants