Terraform enables you to safely and predictably create, change, and improve infrastructure. It is a source-available tool that codifies APIs into declarative configuration files that can be shared amongst team members, treated as code, edited, reviewed, and versioned.
Terraform should have access to s3 backend through the sso profile.
Actual Behavior
Terraform is not able to access the s3 backend.
Steps to Reproduce
terraform init
Additional Context
The cache file it's looking for does not exist. There are valid credentials in other cache files and other aws cli commands work (e.g. aws s3 ls). How does terraform determine the location of the cache file to find?
Terraform Version
Terraform Configuration Files
Debug Output
https://gist.github.com/KaplanAlex/e12c170a9600cd01ff519dc491770c6d
Expected Behavior
Terraform should have access to s3 backend through the sso profile.
Actual Behavior
Terraform is not able to access the s3 backend.
Steps to Reproduce
Additional Context
The cache file it's looking for does not exist. There are valid credentials in other cache files and other aws cli commands work (e.g.
aws s3 ls
). How does terraform determine the location of the cache file to find?References
Appears similar to https://github.com/hashicorp/terraform/issues/34248 but proposed resolutions did not work.