TFLint incorrectly warns about variable interpolation in JSON encoded S3 bucket policy #1726
-
TFLint version is below.
I have the following TF code (with line numbers) to set a S3 bucket policy. This code works and gives me the correct effect in CloudFront/S3. No errors or warnings appear when running
When running
This error is incorrect, right? Because if I remove the Also, why doesn't it warn about line |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Canonical HCL would be: "AWS:SourceArn" = aws_cloudfront_distribution.loganmarchione_com_resources.arn That This is different because it contains a static portion as well ( "${aws_s3_bucket.loganmarchione_com_resources.arn}/*" |
Beta Was this translation helpful? Give feedback.
Canonical HCL would be:
That
:
works in place of=
is an interesting quirk but unimportant.This is different because it contains a static portion as well (
/*
):"${aws_s3_bucket.loganmarchione_com_resources.arn}/*"