Merge pull request #340 from Hestia-Homes/main

Blocking public access to presign buckets
This commit is contained in:
KhalimCK 2024-09-09 13:25:16 +01:00 committed by GitHub
commit fc7c696ea9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -73,3 +73,11 @@ resource "aws_iam_user_policy" "presign_frontend_user_policy" {
} }
EOF EOF
} }
resource "aws_s3_bucket_public_access_block" "block_public" {
bucket = aws_s3_bucket.bucket.id
block_public_acls = true
block_public_policy = true
ignore_public_acls = true
restrict_public_buckets = true
}