mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
blocking public access
This commit is contained in:
parent
e68873f72d
commit
adc8f1a104
1 changed files with 9 additions and 1 deletions
|
|
@ -6,7 +6,7 @@ resource "aws_s3_bucket" "bucket" {
|
|||
allowed_headers = ["Content-Type", "Authorization"]
|
||||
allowed_methods = ["PUT"]
|
||||
allowed_origins = var.allowed_origins
|
||||
expose_headers = ["ETag"]
|
||||
expose_headers = ["ETag"]
|
||||
max_age_seconds = 3000
|
||||
}
|
||||
|
||||
|
|
@ -73,3 +73,11 @@ resource "aws_iam_user_policy" "presign_frontend_user_policy" {
|
|||
}
|
||||
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
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue