Skip to content

Commit

Permalink
Fix cloudfront-distribution-allow s3 bucket policy
Browse files Browse the repository at this point in the history
* Adds an if statement to allow it to be used conditionally
  • Loading branch information
Stretch96 committed Sep 27, 2024
1 parent a534a63 commit 1c4aea3
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
%{ if cloudfront_distribution_arns != "[]" ~}
{
"Effect": "Allow",
"Principal": {
Expand All @@ -11,3 +12,4 @@
}
}
}
%{~ endif }

0 comments on commit 1c4aea3

Please sign in to comment.