Use optional for backup configuration map

Addition of new parameters will be backwards compatible
Better reflects the underlying resource requirements
This commit is contained in:
Brent Walker 2023-02-07 07:58:55 -05:00
parent d00f3ee0cb
commit 560af8b02b
1 changed files with 7 additions and 7 deletions

View File

@ -38,13 +38,13 @@ variable "availability_type" {
variable "backup_configuration" {
description = "Backup settings for primary instance. Will be automatically enabled if using MySQL with one or more replicas."
type = object({
enabled = bool
binary_log_enabled = bool
start_time = string
location = string
log_retention_days = number
point_in_time_recovery_enabled = bool
retention_count = number
enabled = optional(bool)
binary_log_enabled = optional(bool)
start_time = optional(string)
location = optional(string)
log_retention_days = optional(number)
point_in_time_recovery_enabled = optional(bool)
retention_count = optional(number)
})
default = {
enabled = false