Skip to content

Commit

Permalink
feat: No public access
Browse files Browse the repository at this point in the history
  • Loading branch information
qbart committed Apr 26, 2024
1 parent 8dc4471 commit b41d15d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions examples/cloudfront-app/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@ resource "aws_s3_bucket" "this" {
bucket = "apps-${random_id.example.hex}"
}

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

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

module "cloudfront_app" {
source = "../../modules/cloudfront-app"

Expand Down

0 comments on commit b41d15d

Please sign in to comment.