Is it possible to connect API Gateway with Fargate Service directly (whitout using a load balancer). I'm working in a development environment and I don't want to waste money in the load balancer.
Asked
Active
Viewed 1,847 times
2 Answers
1
Unless you have a DNS entry that can address all the containers you're running, you would need a load balancer.

Bob Kinney
- 8,870
- 1
- 27
- 35
1
Not sure if this is still relevant but I was also searching for a solution where API Gateway could be connected to ECS Containers without the need for a (expensive) Load Balancer. Thought of an AWS Lambda Proxy first but there seems to be a more elegant and direct solution which makes the need to write and maintain AWS Lambda Code obsolete.
Basically you will need an API Gateway HTTP Private Integrations API, a VPC Link to create trust between your Gateway and ECS resources and Cloud Map to enable Service Discovery. Here some resources that go a little more into the details on how to it:

gokumc
- 138
- 1
- 9