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
Support multiple container ports #54
Comments
Thank you for raising this issue - we've managed to identify the bug in the module that prevents multiple port mappings. We've added this to our backlog and will work on this when we are able to. |
I created PR #59 for this. Please review and merge as needed |
This issue still exists and should not have been closed. I submitted a PR #59 to help facilitate the functionality that this issue mentions |
This is now solved as a part of @networkprogrammer's PR in 6.5.0. Thanks again @networkprogrammer for the contribution! |
What is the current behavior?
The
portMapping
list of the task definition only lists 1 port as defined intask_container_port
. Since target-group listscontainer_port
, that value should be used to populateportMapping
Terraform fails when trying to map TG container port to a non-existent portMapping
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.
Example code
https://gist.github.com/networkprogrammer/3c64d16d379098260309fea2e8aa7af4
What is the expected behavior?
Ideally, the container port should be picked from the tg's container port. That way AWS does not complain about port mapping not existing
Details
I have an nginx container listening on multiple ports. With
task_container_port
being used to populate port-mapping, I have to run multiple instances of the same container withtask_container_port
set to different ports, although they do the same thing.Software versions?
Terraform v1.1.6
on linux_amd64
umotif-public/ecs-fargate/aws: 6.4.2
umotif-public/alb/aws: 2.X
The text was updated successfully, but these errors were encountered: