Skip to content

Commit

Permalink
aws-s3-private-bucket set ignore_public_acls and restrict_public_buck…
Browse files Browse the repository at this point in the history
…ets (#124)
  • Loading branch information
mbarrien authored Sep 17, 2019
1 parent 8749809 commit 2faeae6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions aws-s3-private-bucket/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@ resource "aws_s3_bucket" "bucket" {
resource "aws_s3_bucket_public_access_block" "bucket" {
bucket = "${aws_s3_bucket.bucket.id}"

block_public_acls = true
block_public_policy = true
block_public_acls = true
block_public_policy = true
ignore_public_acls = true
restrict_public_buckets = true
}

data "aws_iam_policy_document" "bucket_policy" {
Expand Down

0 comments on commit 2faeae6

Please sign in to comment.