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

PortMappings variable definition has repeated name argument which fails to initialize #173

Closed
jpulgar4 opened this issue Oct 24, 2023 · 2 comments
Labels
bug 🐛 An issue with the system

Comments

@jpulgar4
Copy link

Describe the Bug

In the variables definition file, for portMappings, there is a repeated name argument. This causes terraform init with version 0.61.0 to fail.

Expected Behavior

A terraform init with version 0.61.0 should go through with no errors.

Steps to Reproduce

Set version of the module to 0.61.0 and run a terraform init.

Screenshots

╷
│ Error: Invalid type specification
│ 
│   on .terraform/modules/haproxy.ecs_container/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.
╵

Environment

  • OS: MacOS
  • Version: 14.0
  • Module Version: 0.61.0
  • Terraform Version: 1.6.2

Additional Context

No response

@jpulgar4 jpulgar4 added the bug 🐛 An issue with the system label Oct 24, 2023
@jpulgar4
Copy link
Author

Fixed by #170 or #171

@rwe-dtroup
Copy link

Fixed by #170 or #171

Can we get one of them merged please?

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

2 participants