Loading...
Loading...
### Current Terraform Version `0.12.28` ### Use-cases specify a heredoc with a policy in a tfvars file ### Attempted Solutions nested: ``` policies = { inline = { policy-1 = <<-EOF { "Version": "2012-10-17", "Statement": [ { "Action": "sts:AssumeRole", "Effect": "Allow", "Resource": [ "arn:aws:iam::123:role/abc" ] } ] } EOF } } ``` top-level: ``` policy-1 = <<EOF { "Version": "2012-10-17", "Statement": [ { "Action": "sts:AssumeRole", "Effect": "Allow", "Resource": [ "arn:aws:iam::123:role/abc" ] } ] } EOF ``` ``` Error: Invalid expression on tfvars/lab.tfvars line 14: 14: policy-1 = <<-EOF Expected the start of an expression, but found an invalid expression token. ``` ### Proposal should i be able to do this? ### References
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.