Skip to content

Commit 3e92fbc

Browse files
committed
NRL-1188 Public access block added
1 parent 8535b4d commit 3e92fbc

File tree

1 file changed

+9
-0
lines changed
  • terraform/account-wide-infrastructure/modules/athena

1 file changed

+9
-0
lines changed

terraform/account-wide-infrastructure/modules/athena/s3.tf

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@ resource "aws_s3_bucket" "athena" {
22
bucket = "athena"
33
}
44

5+
resource "aws_s3_bucket_public_access_block" "athena-public-access-block" {
6+
bucket = aws_s3_bucket.athena.id
7+
8+
block_public_acls = true
9+
block_public_policy = true
10+
ignore_public_acls = true
11+
restrict_public_buckets = true
12+
}
13+
514

615
resource "aws_s3_bucket_server_side_encryption_configuration" "athena" {
716
bucket = aws_s3_bucket.athena.bucket

0 commit comments

Comments
 (0)