Skip to content

Commit

Permalink
[v13] enable acl in single aws terraform s3 (#25854)
Browse files Browse the repository at this point in the history
* update single aws terraform s3

* terraform lint fix
  • Loading branch information
stevenGravy committed May 9, 2023
1 parent a32f28c commit 5b99990
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions examples/aws/terraform/starter-cluster/s3.tf
Expand Up @@ -13,8 +13,17 @@ resource "aws_s3_bucket" "storage" {
}

resource "aws_s3_bucket_acl" "storage" {
bucket = aws_s3_bucket.storage.bucket
acl = "private"
depends_on = [aws_s3_bucket_ownership_controls.storage]
bucket = aws_s3_bucket.storage.bucket
acl = "private"
}

resource "aws_s3_bucket_ownership_controls" "storage" {
bucket = aws_s3_bucket.storage.id

rule {
object_ownership = "BucketOwnerPreferred"
}
}

// For demo purposes, CMK is not needed
Expand Down

0 comments on commit 5b99990

Please sign in to comment.