Today, I was reading about the AWS container orchestration tool which is ECS. I have one question about this. If we place an Ec2 instance on a private subnet, then we require a NAT gateway so that ECS agent can provide info to the ECS service. But how does the ECS service manage the orchestration task if ECS seats on the public network and ec2(container instance) in private.
Asked
Active
Viewed 165 times
1
-
So are you asking what happens if you don't have a NAT gateway or instance? Or...? Sorry it's not clear – Ermiya Eskandary May 21 '22 at 16:51
-
1@ErmiyaEskandary Through the NAT gateway, only ECS agent can initiate requests to ECS. Means there is only one way traffic. Then how ECS service create new containers or other orchestration tasks. – bharat kendre May 22 '22 at 04:37