Skip to content

Commit

Permalink
Merge pull request #43 from GSA/persist
Browse files Browse the repository at this point in the history
adds the aws_s3_bucket_public_access_block for the inventory bucket
  • Loading branch information
bryanlalexander authored Mar 9, 2020
2 parents 2c55833 + b8dbed7 commit ff0556d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions s3.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,12 @@ resource "aws_s3_bucket" "bucket" {
Name = "${upper(var.project_name)} Inventory Report"
}
}

resource "aws_s3_bucket_public_access_block" "bucket" {
bucket = aws_s3_bucket.bucket.id

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

0 comments on commit ff0556d

Please sign in to comment.