ecs agent / ALB health checks #2502
Replies: 2 comments 2 replies
-
Hi there, for your second question, have you tried to use a bootstrap container to set up the different iptables rules you need? That will guarantee the host is set up the way you want it before the ECS agent runs. As a side note, you can further narrow down the access to subnets by using security groups. That will guarantee that, even though the port is wide open to world, only the subnets you specify in the security group rules have access to the instance's port. For the first question, I have reached out to an engineer that works in the ECS team, I'll reply back once I hear from them. |
Beta Was this translation helpful? Give feedback.
-
We are working on improving this and we will like your feedback, could you please specify which part wasn't clear or is incomplete? 😅 |
Beta Was this translation helpful? Give feedback.
-
Hello,
On ecs variant: i'm looking for a way to expose ecs agent tcp/51678 port from outside in order to use it for ALB health checks.
On an already running bottlerocket instance I was able to do it with
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 51678 -j DNAT --to-destination 127.0.0.1:51678
Couple of questions:
ecs-agent
is healthy?ecs
section of user data. But, for our use case, having it open to the whole world works too, since we're taking care of filtering traffic with sg rules.Thanks!
Beta Was this translation helpful? Give feedback.
All reactions