-
I am getting an error when applying terraform Command > ~/cloudblock/aws$ sudo terraform apply -var-file="aws.tfvars" Error: error configuring Terraform AWS Provider: no valid credential sources for Terraform AWS Provider found. Please see https://registry.terraform.io/providers/hashicorp/aws Error: NoCredentialProviders: no valid providers in chain. Deprecated. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
ANSWER: My hunch is it has something to do with either:
I have not been able to re-produce it. Hey @mnavidh - sudo should not be used here. From the README:
Regards |
Beta Was this translation helpful? Give feedback.
-
Marking as answered - though if someone can reproduce I'd like to update the README / notes. |
Beta Was this translation helpful? Give feedback.
ANSWER:
sudo chown $USER *.tfvars && sudo chmod 640 *.tfvars
My hunch is it has something to do with either:
I have not been able to re-produce it.
Hey @mnavidh - sudo should not be used here.
From the README:
Regards