Skip to content

Commit

Permalink
wip: check functionality of policy
Browse files Browse the repository at this point in the history
  • Loading branch information
ggemre committed Apr 10, 2024
1 parent f1e0ba6 commit aaa6a58
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions iac/modules/app/content-bucket.tf
Original file line number Diff line number Diff line change
Expand Up @@ -76,22 +76,22 @@ data "aws_iam_policy_document" "static_website" {
type = "AWS"
}

# condition {
# test = "StringLike"
# values = [random_string.cf_key.result]
# variable = "aws:Referer"
# }
}
statement {
sid = "2"
actions = ["s3:*"]
resources = ["${aws_s3_bucket.CdnContentBucket.arn}/*"]

principals {
identifiers = ["*"]
type = "AWS"
}
condition {
test = "StringLike"
values = [random_string.cf_key.result]
variable = "aws:Referer"
}
}
# 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 aaa6a58

Please sign in to comment.