Difference between revisions of "Error: error configuring Terraform AWS Provider: no valid credential sources for Terraform AWS Provider found."
Jump to navigation
Jump to search
Line 15: | Line 15: | ||
╵ | ╵ | ||
− | Solution: review your <code>[[~/.aws/credentials]]</code> configuration and verify your <code>[[AWS_PROFILE]]</code> [[environment variable]] is properly set. Example: echo [[$AWS_PROFILE]] | + | Solution: review your <code>[[~/.aws/credentials]]</code> configuration and verify your <code>[[AWS_PROFILE]]</code> [[environment variable]] is properly set. Example: echo [[$AWS_PROFILE]] to review current value. |
Error: error configuring Terraform AWS Provider: no valid credential sources for Terraform AWS Provider found. | Error: error configuring Terraform AWS Provider: no valid credential sources for Terraform AWS Provider found. |
Latest revision as of 14:10, 9 November 2022
╷ │ Error: error configuring Terraform AWS Provider: no valid credential sources for Terraform AWS Provider found. │ │ Please see https://registry.terraform.io/providers/hashicorp/aws │ for more information about providing credentials. │ │ Error: NoCredentialProviders: no valid providers in chain. Deprecated. │ For verbose messaging see aws.Config.CredentialsChainVerboseErrors │ │ │ with provider["registry.terraform.io/hashicorp/aws"], │ on provider.tf line 1, in provider "aws": │ 1: provider "aws" { │ ╵ Solution: review your~/.aws/credentials
configuration and verify yourAWS_PROFILE
environment variable is properly set. Example: echo $AWS_PROFILE to review current value.
Error: error configuring Terraform AWS Provider: no valid credential sources for Terraform AWS Provider found. Please see https://registry.terraform.io/providers/hashicorp/aws for more information about providing credentials. Error: no EC2 IMDS role found, operation error ec2imds: GetMetadata, canceled, context deadline exceeded Solution: make sure you are using latest terraform version
Related[edit]
See also[edit]
Advertising: