Skip to content

Commit

Permalink
fix: removed malformed bucket policy
Browse files Browse the repository at this point in the history
  • Loading branch information
kfc-manager committed Mar 6, 2024
1 parent bd2f934 commit 0073db4
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,21 +32,6 @@ resource "aws_s3_bucket_public_access_block" "main" {
restrict_public_buckets = false
}

data "aws_iam_policy_document" "deny" {
statement {
effect = "Deny"

actions = ["s3:*"]

resources = [aws_s3_bucket.main.arn, "${aws_s3_bucket.main.arn}/*"]
}
}

resource "aws_s3_bucket_policy" "main" {
bucket = aws_s3_bucket.main.id
policy = data.aws_iam_policy_document.deny.json
}

################################
# SNS #
################################
Expand Down

0 comments on commit 0073db4

Please sign in to comment.