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
Terraform v1.8.1
on linux_arm64
+ provider registry.terraform.io/cyrilgdn/postgresql v1.22.0
+ provider registry.terraform.io/hashicorp/aws v5.40.0
+ provider registry.terraform.io/hashicorp/random v3.6.0
Your version of Terraform is out of date! The latest version
is 1.8.2. You can update by downloading from https://www.terraform.io/downloads.html
Terraform Configuration Files
Not applicable
Debug Output
Not applicable
Expected Behavior
Workaround:
Remove quotes in AWS CLI profile names, and instead use \ to escape any spaces in profile names:
$ grep project-dev_Admin ~/.aws/config
[profile project-dev_Admin]
$ aws sts get-caller-identity
{
"UserId": "AROAREDACTEDREDACTED:evans@my.org",
"Account": "99999999999",
"Arn": "arn:aws:sts::99999999999:assumed-role/AWSReservedSSO_Admin_d33b4f06d3936657/evans@my.org"
}
$ terraform plan
Acquiring state lock. This may take a few moments...
...
Plan: 16 to add, 2 to change, 0 to destroy.
...
Actual Behavior
Problem:
Terraform doesn't work with AWS CLI profiles that have quotes:
Thanks for filing this request! It has been brought to the attention of the AWS Provider maintainer team at HashiCorp, who also maintain the S3 Backend.
If you are viewing this issue and would like to indicate your interest, please use the 👍 reaction on the issue description to upvote this issue. We also welcome additional use case descriptions. Thanks again!
Terraform Version
Terraform v1.8.1 on linux_arm64 + provider registry.terraform.io/cyrilgdn/postgresql v1.22.0 + provider registry.terraform.io/hashicorp/aws v5.40.0 + provider registry.terraform.io/hashicorp/random v3.6.0 Your version of Terraform is out of date! The latest version is 1.8.2. You can update by downloading from https://www.terraform.io/downloads.html
Terraform Configuration Files
Not applicable
Debug Output
Not applicable
Expected Behavior
Workaround:
Remove quotes in AWS CLI profile names, and instead use
\
to escape any spaces in profile names:Actual Behavior
Problem:
Terraform doesn't work with AWS CLI profiles that have quotes:
Steps to Reproduce
profile
names in${HOME}/.aws/config
terraform plan
- it doesn't work.Additional Context
Desired Solution:
Update Terraform so that it can handle quoted AWS CLI profiles.
References
No response
The text was updated successfully, but these errors were encountered: