You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| block\_public\_access\_restrict\_bucket | Related to block\_public\_access. Only the bucket owner and AWS Services can access this buckets if it has a public policy. |`bool`|`true`| no |
93
93
| bucket\_key\_enabled | Whether or not to use Amazon S3 Bucket Keys for SSE-KMS. |`bool`|`false`| no |
94
94
| bucket\_logging | Enable bucket logging. Will store logs in another existing bucket. You must give the log-delivery group WRITE and READ\_ACP permissions to the target bucket. i.e. true \| false |`bool`|`false`| no |
95
-
| control\_object\_ownership | Whether to manage S3 Bucket Ownership Controls on this bucket. |`bool`|`false`| no |
95
+
| control\_object\_ownership | Whether to manage S3 Bucket Ownership Controls on this bucket. |`bool`|`true`| no |
96
96
| cors | Enable CORS Rules. Rules must be defined in the variable cors\_rules |`bool`|`false`| no |
97
97
| cors\_rule | List of maps containing rules for Cross-Origin Resource Sharing. |`any`|`[]`| no |
98
98
| enable\_bucket\_metrics | Enable bucket metrics |`bool`|`false`| no |
@@ -116,7 +116,7 @@ No Modules.
116
116
| object\_lock\_retention\_days | The retention of the object lock in days. Either days or years must be specified, but not both. |`number`|`null`| no |
117
117
| object\_lock\_retention\_years | The retention of the object lock in years. Either days or years must be specified, but not both. |`number`|`null`| no |
118
118
| object\_lock\_token | A token to allow Object Lock to be enabled for an existing bucket. You must contact AWS support for the bucket's 'Object Lock token'. The token is generated in the back-end when versioning is enabled on a bucket. |`string`|`null`| no |
119
-
| object\_ownership | Object ownership. Valid values: BucketOwnerEnforced, BucketOwnerPreferred or ObjectWriter. 'BucketOwnerEnforced': ACLs are disabled, and the bucket owner automatically owns and has full control over every object in the bucket. 'BucketOwnerPreferred': Objects uploaded to the bucket change ownership to the bucket owner if the objects are uploaded with the bucket-owner-full-control canned ACL. 'ObjectWriter': The uploading account will own the object if the object is uploaded with the bucket-owner-full-control canned ACL. |`string`|`"ObjectWriter"`| no |
119
+
| object\_ownership | Object ownership. Valid values: BucketOwnerEnforced, BucketOwnerPreferred or ObjectWriter. 'BucketOwnerEnforced': ACLs are disabled, and the bucket owner automatically owns and has full control over every object in the bucket. 'BucketOwnerPreferred': Objects uploaded to the bucket change ownership to the bucket owner if the objects are uploaded with the bucket-owner-full-control canned ACL. 'ObjectWriter': The uploading account will own the object if the object is uploaded with the bucket-owner-full-control canned ACL. |`string`|`"BucketOwnerEnforced"`| no |
120
120
| owner | Bucket owner's display name and ID. Conflicts with `acl`|`map(string)`|`{}`| no |
121
121
| sse\_algorithm | The server-side encryption algorithm to use. Valid values are AES256, aws:kms, and none |`string`|`"AES256"`| no |
122
122
| tags | A map of tags to be applied to the Bucket. i.e {Environment='Development'} |`map(string)`|`{}`| no |
Copy file name to clipboardExpand all lines: variables.tf
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -222,11 +222,11 @@ variable "grant" {
222
222
variable"control_object_ownership" {
223
223
description="Whether to manage S3 Bucket Ownership Controls on this bucket."
224
224
type=bool
225
-
default=false
225
+
default=true
226
226
}
227
227
228
228
variable"object_ownership" {
229
229
description="Object ownership. Valid values: BucketOwnerEnforced, BucketOwnerPreferred or ObjectWriter. 'BucketOwnerEnforced': ACLs are disabled, and the bucket owner automatically owns and has full control over every object in the bucket. 'BucketOwnerPreferred': Objects uploaded to the bucket change ownership to the bucket owner if the objects are uploaded with the bucket-owner-full-control canned ACL. 'ObjectWriter': The uploading account will own the object if the object is uploaded with the bucket-owner-full-control canned ACL."
0 commit comments