Closed AliSajid closed 11 months ago
Thanks for the report @AliSajid. Was this a fresh deployment of AFT? I wasn't able to reproduce your specific failure case, as I was able to deploy an instance of AFT homed in a single region, using Terraform Cloud.
I have however seen your initial error before.
configuring Terraform AWS Provider: no valid credential sources for Terraform AWS Provider found.
There's a potential you need to set an AWS_DEFAULT_REGION for the hashicorp/aws
provider to detect. You may try setting that environment variable to see if the provider error clears up.
It is a fresh deployment. I do have the default region set in my config. In AWS, I also have other regions turned off.
@AliSajid we recommend you to reach out to AWS Premium support to receive further help on troubleshooting the issue in your environment.
Terraform Version & Prov:
AFT Version: N/A
Terraform Version & Provider Versions Please provide the outputs of
terraform version
andterraform providers
from within your AFT environmentterraform version
terraform providers
Bug Description When I try to run the AFT (Step 5 of the deployment steps), I see an error about
configuring Terraform AWS Provider: no valid credential sources for Terraform AWS Provider found.
. On deeper investigation, I could create a different error when I set thetf_backend_secondary_region
variable. I am using terraform cloud and have theterraform_distribution
parameter set as such. I do not understand why this is happening.To Reproduce Steps to reproduce the behavior:
terraform plan
Expected behavior To be able to run it all to completion.
Related Logs
Additional context Here's my terraform file