- Newest
- Most votes
- Most comments
You're correct that ECS Service Connect and Service Discovery are regional services and don't directly support cross-region connectivity. To implement internal/private connections between ECS services in different regions, you'll need to use other AWS networking services. Here are some approaches you can consider:
-
VPC Peering: You can set up VPC peering between the VPCs in different regions where your ECS services are running. This allows direct communication between the VPCs as if they were on the same network.
-
AWS Transit Gateway with Inter-Region Peering: This is a more scalable solution, especially if you have multiple VPCs across regions. You can create Transit Gateways in each region, attach your VPCs to them, and then set up inter-region peering between the Transit Gateways. This allows for centralized routing between regions.
-
AWS PrivateLink: While PrivateLink itself is regional, you can combine it with VPC peering or Transit Gateway to create a cross-region private connection. You would set up PrivateLink in the provider's region and then use VPC peering or Transit Gateway to connect back to your application in the other region.
When implementing these solutions, keep in mind:
- Configure security groups and network ACLs appropriately to allow traffic between the regions.
- Set up proper routing tables in your VPCs to direct traffic correctly.
- Consider using a proxy or load balancer in each region to simplify service discovery and provide a consistent endpoint for cross-region communication.
Each of these approaches has its own trade-offs in terms of complexity, cost, and scalability. The best choice depends on your specific requirements, the number of regions and services involved, and your overall network architecture.
Sources
Can we connect an RDS database in one region to an ECS service (using EC2 as the capacity provider) in another region? | AWS re:Post
Outbound routing from different regions | AWS re:Post
Cross Region private link | AWS re:Post
Community | Building Private Inter-region Cross-account Communication Within AWS
Hello.
If the number of ECS services to be communicated with is small, I think it is better to set up PrivateLink.
I think you can easily set up PrivateLink by setting up the resource gateway etc. as shown in the document below.
Unlike VPC peering and TransitGateway, PrivateLink does not require route table settings.
https://docs.aws.amazon.com/vpc/latest/privatelink/privatelink-access-resources.html

Hi Riku, thank you for your response. I only need to connect 2 ECS services from different regions, I'll look into your suggestion. Thank you