We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17536ab commit 3437871Copy full SHA for 3437871
apigw-lambda-dynamodb-terraform/main.tf
@@ -56,9 +56,13 @@ resource "aws_s3_bucket" "lambda_bucket" {
56
force_destroy = true
57
}
58
59
-resource "aws_s3_bucket_acl" "private_bucket" {
+resource "aws_s3_bucket_public_access_block" "private_bucket" {
60
bucket = aws_s3_bucket.lambda_bucket.id
61
- acl = "private"
+
62
+ block_public_acls = true
63
+ block_public_policy = true
64
+ ignore_public_acls = true
65
+ restrict_public_buckets = true
66
67
68
data "archive_file" "lambda_zip" {
0 commit comments