Open evanstucker-hates-2fa opened 2 months ago
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!
Hey @evanstucker-hates-2fa, thanks for taking the time to raise this request. I'd like to take a look at this, but I'm curious if you added the quotes yourself or if these credentials were generated with the quotes. Is this new behavior from aws configure --profile
in that case?
I run into this every year or so: AWS allows account names with spaces in them. If you dynamically generate your config file from the raw name strings for AWS accounts and they have spaces in them the easiest way to keep everything as close to the same as possible is to just wrap the profile names in quotes. Since the workarounds are near arbitrary (like coming up with some sort of character substitution with underscores, etc...) it's not super important, but this would be very much appreciated.
Terraform Version
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