You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I searched for the problem and don't found the answer.
What is the problem?
When I was trying to run terraform init after ive added backend s3 on my provider file i got this error .why it happend for me .
Logs (optional).
Initializing the backend...
╷
│ Error: error configuring S3 Backend: no valid credential sources for S3 Backend found.
│
│ Please see https://www.terraform.io/docs/language/settings/backends/s3.html
│ for more information about providing credentials.
│
│ Error: NoCredentialProviders: no valid providers in chain. Deprecated.
│ For verbose messaging see aws.Config.CredentialsChainVerboseErrors
│
The text was updated successfully, but these errors were encountered:
To use your IAM credentials to authenticate the Terraform AWS provider, you should set the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables of your own.
I assume you're using Localstack. In this case, you won't need s3 as localstack, as the name implies, is for testing in the local environment. However, you can create a module and add the terraform block to its provider.tf file. This solves this error but is not best practice and you'll get a warning. you can check out a repository of mine in which I have done the exact thing. it might help you.
Before anything
What is the problem?
When I was trying to run terraform init after ive added backend s3 on my provider file i got this error .why it happend for me .
Logs (optional).
The text was updated successfully, but these errors were encountered: