IAM policies that have a ${aws:username} component fail to parse properly #5984
Labels
documentation
Introduces or discusses updates to documentation.
service/iam
Issues and PRs that pertain to the iam service.
This issue was originally opened by @aking1012 as hashicorp/terraform#18937. It was migrated here as a result of the provider split. The original body of the issue is below.
Terraform Version
Terraform Configuration Files
Debug Output
There's a counter-intuitive error message in this scenario that involves an unclosed brace, when it's actually just not parsing properly.
Expected Behavior
Init and apply work.
Actual Behavior
Even init bombs out, because the parser chokes.
Steps to Reproduce
Try to perform a
terraform init
with the said IAM policies in a tf file.Additional Context
Nothing special. Standalone configuration.
References
None that I am aware of.
The text was updated successfully, but these errors were encountered: