cloudposse / terraform-aws-ecs-container-definition

Terraform module to generate well-formed JSON documents (container definitions) that are passed to the aws_ecs_task_definition Terraform resource
https://cloudposse.com/accelerate
Apache License 2.0
340 stars 245 forks source link

fix: remove duplicate portMappings.name field #174

Closed jtribble closed 10 months ago

jtribble commented 1 year ago

what

why

$ terraform state show 'module.lo.module.service.data.aws_ecs_task_definition.this'
╷
│ Error: Invalid type specification
│ 
│   on .terraform/modules/cloudflared.cloudflared_container_definition.container_definition.container_definition/variables.tf line 107, in variable "container_definition":
│  102:     portMappings = optional(list(object({
│  103:       name          = optional(string)
│  104:       containerPort = number
│  105:       hostPort      = optional(number)
│  106:       protocol      = optional(string)
│  107:       name          = optional(string)
│  108:       appProtocol   = optional(string)
│  109:     })))
│ 
│ Object constructor map keys must be unique.

references