Error: error configuring Terraform AWS Provider: no valid credential sources for Terraform AWS Provider found.
Jump to navigation
Jump to search
╷ │ 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: