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

More meaningful debug for "No valid credential sources found for AWS Provider" intermittent issues #14797

Closed
lifeofguenter opened this issue Aug 24, 2020 · 2 comments
Labels
enhancement Requests to existing resources that expand the functionality or scope.

Comments

@lifeofguenter
Copy link

lifeofguenter commented Aug 24, 2020

There have been quite some issues in the past with intermittent errors "No valid credential sources found for AWS Provider":

Unfortunately the error message, even with TF_LOG=TRACE, is not very helpful:

Screen Shot 2020-08-24 at 10 10 30

It would be great for debugging, if the TRACE logs could show actual payload (request + response with headers) that directly involved the decision for throwing that error.

That would greatly help us determine if there was a intermittent connectivity issue, or if we were indeed being rate limited, or any other issue we have not even thought of.

@lifeofguenter lifeofguenter added the enhancement Requests to existing resources that expand the functionality or scope. label Aug 24, 2020
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Aug 24, 2020
@lifeofguenter
Copy link
Author

Closing this ticket:

  1. in 0.13 the error message has been improved drastically, now showing an actual error (instead of just saying "credentials did not work out"):
[2020-08-29T09:06:42.569Z] Error: RequestError: send request failed
[2020-08-29T09:06:42.569Z] caused by: Post "https://sts.amazonaws.com/ ": net/http: TLS handshake timeout
[2020-08-29T09:06:42.569Z] 2020/08/29 09:06:42 [ERROR] eval: *terraform.EvalSequence, err: error configuring Terraform AWS Provider: no valid credential sources for Terraform AWS Provider found.
[2020-08-29T09:06:42.569Z] 
[2020-08-29T09:06:42.569Z] Please see https://registry.terraform.io/providers/hashicorp/aws 
[2020-08-29T09:06:42.569Z] for more information about providing credentials.
  1. This was highly likely a similar issue to Intermittent network issues (read: connection reset Errors) #14163 - which since seems to have been resolved by AWS as we are not seeing these type of issues anymore lately.

@ghost
Copy link

ghost commented Oct 15, 2020

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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked as resolved and limited conversation to collaborators Oct 15, 2020
@breathingdust breathingdust removed the needs-triage Waiting for first response or review from a maintainer. label Sep 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Requests to existing resources that expand the functionality or scope.
Projects
None yet
Development

No branches or pull requests

2 participants