Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

templete errors #6

Closed
arcaven opened this issue Nov 16, 2021 · 1 comment
Closed

templete errors #6

arcaven opened this issue Nov 16, 2021 · 1 comment

Comments

@arcaven
Copy link

arcaven commented Nov 16, 2021

Getting a lot of template error:

aws_iam_role AWSServiceRoleForSupport

│ Error: Extra characters after interpolation expression

│ on aws_iam_policy__AWSSSOServiceRolePolicy.tf line 21, in resource "aws_iam_policy" "AWSSSOServiceRolePolicy":
│ 21: "aws:PrincipalOrgMasterAccountId"= "${aws:PrincipalAccount}"

│ Template interpolation doesn't expect a colon at this location. Did you
│ intend this to be a literal sequence to be processed as part of another
│ language? If so, you can escape it by starting with "$${" instead of just
│ "${".

I think it has something to do with the post-terraform 0.11.0 change from template_file to templetefile. I suspect that the older version of the terraform aws provider is calling template_file and so we're getting these suggestions to escape ${aws: to $${aws: which would probably not do what we want?

@awsandy
Copy link
Contributor

awsandy commented Nov 17, 2021

That can be "fixed" by replacing ${ with &{. Updates committed

@awsandy awsandy closed this as completed Nov 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants