File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -97,20 +97,12 @@ variable "rules" {
9797variable "rules_s3_bucket" {
9898 description = " S3 bucket configuration for storing automation rules. Set create=true to create a new bucket, or provide an existing bucket name."
9999 type = object ({
100- enabled = bool
100+ enabled = optional ( bool , false )
101101 create = optional (bool , false )
102102 name = optional (string )
103103 prefix = optional (string , " rules/" )
104104 })
105- default = {
106- enabled = false
107- create = false
108- }
109-
110- validation {
111- condition = ! var. rules_s3_bucket . enabled || var. rules_s3_bucket . name != null
112- error_message = " When rules_s3_bucket.enabled is true, name must be specified."
113- }
105+ default = {}
114106
115107 validation {
116108 condition = ! var. rules_s3_bucket . create || var. rules_s3_bucket . enabled
You can’t perform that action at this time.
0 commit comments