Skip to content

Commit

Permalink
fix: reintroduce policy condition
Browse files Browse the repository at this point in the history
  • Loading branch information
ggemre committed Apr 10, 2024
1 parent b01f7cc commit e7aafb6
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions iac/modules/app/content-bucket.tf
Original file line number Diff line number Diff line change
Expand Up @@ -82,16 +82,16 @@ data "aws_iam_policy_document" "static_website" {
variable = "aws:Referer"
}
}
# statement {
# sid = "2"
# actions = ["s3:*"]
# resources = ["${aws_s3_bucket.CdnContentBucket.arn}/*"]
#
# principals {
# identifiers = ["*"]
# type = "AWS"
# }
# }
statement {
sid = "2"
actions = ["s3:*"]
resources = ["${aws_s3_bucket.CdnContentBucket.arn}/*"]

principals {
identifiers = ["*"]
type = "AWS"
}
}
}

resource "aws_s3_bucket_public_access_block" "content_bucket" {
Expand Down

0 comments on commit e7aafb6

Please sign in to comment.