Skip to content

Commit 2faeae6

Browse files
authored
aws-s3-private-bucket set ignore_public_acls and restrict_public_buckets (#124)
1 parent 8749809 commit 2faeae6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

aws-s3-private-bucket/main.tf

+4-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,10 @@ resource "aws_s3_bucket" "bucket" {
3737
resource "aws_s3_bucket_public_access_block" "bucket" {
3838
bucket = "${aws_s3_bucket.bucket.id}"
3939

40-
block_public_acls = true
41-
block_public_policy = true
40+
block_public_acls = true
41+
block_public_policy = true
42+
ignore_public_acls = true
43+
restrict_public_buckets = true
4244
}
4345

4446
data "aws_iam_policy_document" "bucket_policy" {

0 commit comments

Comments
 (0)