wildthing81
wildthing81

Reputation: 375

ECS public subnet service communication with private subnet service

If I have a ECS Fargate Service ( web-tier ) deployed in a public subnet & a ECS Fargate Service ( app-tier ) deployed in a private subnet within the same VPC, what would be a best practice for communication between the two ?

Is ECS Service discovery the right way to go about it. If so, how do I go about using it in this scenario ?

Upvotes: 1

Views: 954

Answers (1)

Tomek Klas
Tomek Klas

Reputation: 788

It looks like your architecture needs to be looked at.

The only thing in your public subnet should be public load balancer. ECS for both tiers should be in private subnet. This setup means that both web and app services could live on this same ECS Fargate cluster.

This should simplify your setup.

Upvotes: 5

Related Questions