Loading...
Loading...
### Terraform Version ```shell 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: ``` $ 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 ╷ │ Error: failed to get shared config profile, project-dev_Admin ``` ### Steps to Reproduce 1. Add quotes to one of the `profile` names in `${HOME}/.aws/config` 2. Run `terraform plan` - it doesn't work. ### Additional Context Desired Solution: Update Terraform so that it can handle quoted AWS CLI profiles. ### References _No response_
Click on a version to see all relevant bugs
Terraform Integration
Learn more about where this data comes from
Bug Scrub Advisor
Streamline upgrades with automated vendor bug scrubs
BugZero Enterprise
Wish you caught this bug sooner? Get proactive today.