I have this variable defined in terraform: variable "secrets" { description = "List of…
- User
I have this variable defined in terraform:
variable "secrets" { description = "List of secrets to create for this application" type = list(object({ name = string application_module = optional(string, "-") replication_regions = optional(list(string)) rotation_period = optional(number) rotation_topics = optional(list(string)) expire_time = optional(string) delay_destroy = optional(number) }))
validation { condition = alltrue([ for secret in var.secrets : secret.name != null && secret.name != "" ]) error_message = "Each secret must have a non-empty name." }
validation { condition = alltrue([ for secret in var.secrets : secret.rotation_period == null || (secret.rotation_period >= 3600 && secret.rotation_period <= 3153600000) ]) error_message = "If specified, rotation_period must be between 3600 and 3153600000 seconds." }
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.