-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
Error: No valid credential sources found for AWS Provider. #24768
Comments
@florin-waterford I'm going to categorize this as an enhancement request for the AWS Terraform provider, rather than in core. The HashiBot will shortly migrate it over to the AWS provider. |
This issue has been automatically migrated to hashicorp/terraform-provider-aws#13057 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#13057. |
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. |
Terraform randomly fails to read the AWS credentials from
~/.aws
.Terraform Version
(macOS 10.15)
Terraform Configuration Files
Debug Output
Expected Behavior
It should read credentials from
~/.aws
.Actual Behavior
It can't find the credentials.
Steps to Reproduce
terraform init
Additional Context
This breaks every once in a while. I'm not sure when. Removing the
.terraform
directory doesn't help. Reinstalling Terraform doesn't fix it. It works if I copy the working project in another directory and runterraform init
, it works, but I'd rather not do that every time TF breaks.Setting the
AWS_PROFILE
,AWS_ACCESS_KEY_ID
andAWS_SECRET_ACCESS_KEY
environment variables fixes this, but it should not be needed.The text was updated successfully, but these errors were encountered: