diff --git a/terraform/byo-vpc/byo-db/variables.tf b/terraform/byo-vpc/byo-db/variables.tf index c5bd5ed0c4..84ac8cb473 100644 --- a/terraform/byo-vpc/byo-db/variables.tf +++ b/terraform/byo-vpc/byo-db/variables.tf @@ -70,16 +70,25 @@ variable "fleet_config" { }), { name = "fleet" }) - database = object({ + database = optional(object({ password_secret_arn = string user = string database = string address = string rr_address = optional(string, null) + }), { + password_secret_arn = null + user = null + database = null + address = null + rr_address = null }) - redis = object({ + redis = optional(object({ address = string use_tls = optional(bool, true) + }), { + address = null + use_tls = true }) awslogs = optional(object({ name = optional(string, null) @@ -93,12 +102,17 @@ variable "fleet_config" { prefix = "fleet" retention = 5 }) - loadbalancer = object({ + loadbalancer = optional(object({ arn = string + }), { + arn = null }) - networking = object({ + networking = optional(object({ subnets = list(string) security_groups = optional(list(string), null) + }), { + subnets = null + security_groups = null }) autoscaling = optional(object({ max_capacity = optional(number, 5) diff --git a/terraform/byo-vpc/variables.tf b/terraform/byo-vpc/variables.tf index 1ec5f3627d..04e086cc77 100644 --- a/terraform/byo-vpc/variables.tf +++ b/terraform/byo-vpc/variables.tf @@ -160,16 +160,25 @@ variable "fleet_config" { }), { name = "fleet" }) - database = object({ + database = optional(object({ password_secret_arn = string user = string database = string address = string rr_address = optional(string, null) + }), { + password_secret_arn = null + user = null + database = null + address = null + rr_address = null }) - redis = object({ + redis = optional(object({ address = string use_tls = optional(bool, true) + }), { + address = null + use_tls = true }) awslogs = optional(object({ name = optional(string, null) @@ -183,12 +192,17 @@ variable "fleet_config" { prefix = "fleet" retention = 5 }) - loadbalancer = object({ + loadbalancer = optional(object({ arn = string + }), { + arn = null }) - networking = object({ + networking = optional(object({ subnets = list(string) security_groups = optional(list(string), null) + }), { + subnets = null + security_groups = null }) autoscaling = optional(object({ max_capacity = optional(number, 5)