Skip to content

Commit

Permalink
fix: block all public access to upload buckets (#1501)
Browse files Browse the repository at this point in the history
Update the S3 upload bucket to block all public access.
Objects are now being accessed through CloudFront.
  • Loading branch information
patheard authored Oct 25, 2023
1 parent e5ceb1d commit 5e47998
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions infrastructure/terragrunt/aws/storage/s3.tf
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
module "wordpress_storage" {
source = "github.com/cds-snc/terraform-modules//S3?ref=v7.0.2"
bucket_name = "platform-gc-articles-${var.env}-uploads"
billing_tag_value = var.billing_tag_value
block_public_policy = false
restrict_public_buckets = false
source = "github.com/cds-snc/terraform-modules//S3?ref=v7.0.2"
bucket_name = "platform-gc-articles-${var.env}-uploads"
billing_tag_value = var.billing_tag_value
}

resource "aws_cloudfront_origin_access_identity" "origin_access_identity" {
Expand Down

0 comments on commit 5e47998

Please sign in to comment.