Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

module.this.id not defined #210

Closed
notchjpl opened this issue Nov 8, 2023 · 2 comments
Closed

module.this.id not defined #210

notchjpl opened this issue Nov 8, 2023 · 2 comments
Labels
bug 🐛 An issue with the system

Comments

@notchjpl
Copy link

notchjpl commented Nov 8, 2023

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, ecs-alb-service-task 0.71.0

Additional Context

context is optional, but I had to provide it to avoid the error

@notchjpl notchjpl added the bug 🐛 An issue with the system label Nov 8, 2023
@debojyotig-int
Copy link

Hi @notchjpl ,

How you are able to solve this? I am still getting the same issue. Update: If I define output on module.this.id, I am getting proper output e.g: dev, but still while calling the ecs_alb_service_task getting error

Error: expected length of family to be in the range (1 - 255), got
&
Error: invalid value for family (see https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_TaskDefinition.html)

@nitrocode
Copy link
Member

Try setting the name input

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 An issue with the system
Projects
None yet
Development

No branches or pull requests

3 participants