Skip to content

Commit

Permalink
Don't set S3 bucket ACLs (#355)
Browse files Browse the repository at this point in the history
* aws.persistence.lambda-overwrite-code: Don't set a bucket ACL (closes #354)

* Avoid setting built-in bucket ACLs
  • Loading branch information
christophetd committed May 10, 2023
1 parent 949778b commit c70d758
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ locals {

resource "aws_s3_bucket" "bucket" {
bucket = "${local.resource_prefix}-${random_string.suffix.result}"
acl = "private"
}

output "bucket_name" {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ resource "random_string" "suffix" {

resource "aws_s3_bucket" "bucket" {
bucket = "${local.resource_prefix}-bucket-${random_string.suffix.result}"
acl = "private"
force_destroy = true
}
resource "aws_s3_bucket_object" "code" {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,6 @@ resource "aws_s3_bucket" "bucket" {
force_destroy = true
}

resource "aws_s3_bucket_acl" "bucket_acl" {
bucket = aws_s3_bucket.bucket.id
acl = "private"
}

resource "aws_s3_object" "lambda_zip" {
bucket = aws_s3_bucket.bucket.id
key = "lambda.zip"
Expand Down

0 comments on commit c70d758

Please sign in to comment.