Closed milijander88 closed 3 years ago
With TFLint version 0.23 we have a issue with EOF bracket in our terraform code, the issue is : Failed to check aws_iam_role_policy_invalid_policy rule: main.tf:37,4-4: Unterminated template string; No closing marker was found for the string.
aws_iam_role_policy_invalid_policy
policy = <<-EOF { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "ec2:AttachVolume", "ec2:CreateSnapshot", "ec2:CreateTags", "ec2:CreateVolume", "ec2:DeleteSnapshot", "ec2:DeleteTags", "ec2:DeleteVolume", "ec2:DescribeInstances", "ec2:DescribeSnapshots", "ec2:DescribeTags", "ec2:DescribeVolumes", "ec2:DescribeVolumesModifications", "ec2:DescribeAvailabilityZones", "ec2:DetachVolume", "ec2:ModifyVolume" ], "Resource": "*" } ] } EOF }
This is also one example of the code where we have a issue with EOF bracket
input = <<DOC { "ServerId":"${aws_transfer_server.sftp_server.id}" } DOC
Here the name of the issue is : Unterminated template string; No closing marker was found for the string.
So a different type of error that is related to the EOF bracket.
$ tflint -v TFLint version 0.23.0 + ruleset.aws (0.1.1-bundled) $ terraform -v Terraform v0.12.2
It was working fine on v0.22.0
Duplicate of #1029
With TFLint version 0.23 we have a issue with EOF bracket in our terraform code, the issue is : Failed to check
aws_iam_role_policy_invalid_policy
rule: main.tf:37,4-4: Unterminated template string; No closing marker was found for the string.This is also one example of the code where we have a issue with EOF bracket
Here the name of the issue is : Unterminated template string; No closing marker was found for the string.
So a different type of error that is related to the EOF bracket.
Version
It was working fine on v0.22.0