Open masoudkavehie opened 1 year ago
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.
Did you set them?
yes i did it
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).