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
339 stars 244 forks source link

module.this.id not defined #175

Closed notchjpl closed 10 months ago

notchjpl commented 10 months ago

Describe the Bug

The family parameter is failing as the module.this has not output named id and I get this error:

Error: invalid value for family (see https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_TaskDefinition.html) │ │ with module.ecs_clusters["xxxxxxxx"].module.ecs_service["xxxxxx"].aws_ecs_task_definition.default[0], │ on .terraform/modules/ecs_clusters.ecs_service/main.tf line 51, in resource "aws_ecs_task_definition" "default": │ 51: family = module.this.id

Both mandatory parameters are set in the module call.

Expected Behavior

family parameter should be provisioned as there's no variable defined to provide it.

Steps to Reproduce

Define a container definition resource and provide the parameters.

Screenshots

No response

Environment

OSX, terraform 1.5.3, container_definition 0.61.1

Additional Context

No response

notchjpl commented 10 months ago

Corresponds to service module, not container_definition