Skip to content

Commit d6b56fc

Browse files
committed
fix: make service_registries fields optional
1 parent 5f276e6 commit d6b56fc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

variables.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,9 +241,9 @@ variable "capacity_provider_strategies" {
241241
variable "service_registries" {
242242
type = list(object({
243243
registry_arn = string
244-
port = number
245-
container_name = string
246-
container_port = number
244+
port = optional(number)
245+
container_name = optional(string)
246+
container_port = optional(number)
247247
}))
248248
description = "The service discovery registries for the service. The maximum number of service_registries blocks is 1. The currently supported service registry is Amazon Route 53 Auto Naming Service - `aws_service_discovery_service`; see `service_registries` docs https://www.terraform.io/docs/providers/aws/r/ecs_service.html#service_registries-1"
249249
default = []

0 commit comments

Comments
 (0)