It's not possible to expose several ports publicly for the same task in ECS Fargate Service #29434
Unanswered
bullet-tooth
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Context
I'm trying to expose 2 ports publicly for my ECS Fargate service.
The service itself is stateful and attached to EFS where the state is stored and because of that it can run only in single instance.
Problem
I have created public NLB and trying to attach it to the service via
service.registerLoadBalancerTargets()
with mappings for two ports. During deployment ECS is trying to create two tasks where first one runs ok and the second one is red because internal DB is locked (by the first one).So the question is it possible to attach a few ports to the same container without the second task instance creation?
Also,
desiredCount: 1
doesn't help.Beta Was this translation helpful? Give feedback.
All reactions