Skip to content

Commit

Permalink
CCL-497 added missing principal in strorage module (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
mynampatinaveen authored Sep 5, 2024
1 parent 03d2053 commit fca43e2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/products/static-site/storage.tf
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ data "aws_iam_policy_document" "static_site_iam_storage_policy_document" {
}
}
statement {
sid = "AllowCloudFrontServicePrincipalReadOnly"
effect = "Allow"
principals {
type = "Service"
identifiers = ["cloudfront.amazonaws.com"]
}
actions = [
"s3:ListBucket"
]
Expand Down

0 comments on commit fca43e2

Please sign in to comment.