Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 2 additions & 10 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -97,20 +97,12 @@ variable "rules" {
variable "rules_s3_bucket" {
description = "S3 bucket configuration for storing automation rules. Set create=true to create a new bucket, or provide an existing bucket name."
type = object({
enabled = bool
enabled = optional(bool, false)
create = optional(bool, false)
name = optional(string)
prefix = optional(string, "rules/")
})
default = {
enabled = false
create = false
}

validation {
condition = !var.rules_s3_bucket.enabled || var.rules_s3_bucket.name != null
error_message = "When rules_s3_bucket.enabled is true, name must be specified."
}
default = {}

validation {
condition = !var.rules_s3_bucket.create || var.rules_s3_bucket.enabled
Expand Down