-
Notifications
You must be signed in to change notification settings - Fork 62
Description
Is your feature request related to a problem? Please describe.
For any deploys not using ports 8080 or 8081 in lb_target_groups, and hello_world_container_ports not defined, the module will error saying something along the lines of the cluster has no routing to the ports defined in lb_target_groups. I don't have the exact error offhand, but the error is somewhat vague, and we ended up changing the task definition to include the port we were using to make the apply happy
This is in no way a pressing need, more of a QoL change I think that would help for future users.
Describe the solution you'd like
Maybe have hello_world_container_ports and lb_target_groups.container_port checked in a local where you concat the target group ports to the hello world ports in case they are missing?
If I have some time, I can try and come up with an idea for how to concat the two params, I know it isn't just a simple concat since the target group param is a list of objects. There'd probably need to be an intermediate list where you pull the service and access ports and append them to that list
Describe alternatives you've considered
We found the hello_world_container_ports param after creating a new version of the definition with the ports defined, that's the only other way we could think of to have it work
Additional context
Add any other context or screenshots about the feature request here.