File tree Expand file tree Collapse file tree
terraform/shared-modules/s3 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -178,7 +178,6 @@ resource "aws_s3_bucket_policy" "bucket_policy" {
178178}
179179
180180resource "aws_s3_bucket_ownership_controls" "owner" {
181- count = var. enforce_bucket_object_ownership ? 1 : 0
182181 bucket = aws_s3_bucket. this . id
183182 rule {
184183 object_ownership = " BucketOwnerEnforced"
Original file line number Diff line number Diff line change @@ -14,13 +14,6 @@ variable "name" {
1414 }
1515}
1616
17- variable "enforce_bucket_object_ownership" {
18- type = bool
19- description = " Whether S3 bucket object ownership should be enforced to the bucket owner"
20- default = true
21- nullable = false
22- }
23-
2417variable "extra_bucket_policies" {
2518 type = list (string )
2619 description = " Extra bucket policies to apply to this bucket. List of json policies"
You can’t perform that action at this time.
0 commit comments