Skip to content

TFLint incorrectly warns about variable interpolation in JSON encoded S3 bucket policy #1726

Answered by bendrucker
loganmarchione asked this question in Q&A
Discussion options

You must be logged in to vote

Canonical HCL would be:

"AWS:SourceArn" = aws_cloudfront_distribution.loganmarchione_com_resources.arn

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}/*"

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@loganmarchione
Comment options

Answer selected by bendrucker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants