1

Here is my simple question: I have a dockerized app that I want to host on ECS.

  • This app does not need to be accessible from the outside world
  • however it needs to communicate with the outside world.

For some cost reasons, I want to run it on an EC2 instance (EC2 Autoscaling Group and not Fargate) + I would like to avoid using a NAT Gateway.

Is it possible, given the setup I described above, to have:

  • My app communicating with the outside world (egress ip)
  • But do not use a NAT Gateway?

I tried to use public subnets + associate public ip on the EC2 instance. But that did not work.

4

0 回答 0