Skip to content

Map two ports with a single service connect name in ECS usign Copilot

0

I am using aws copilot to deploy two api in ECS. I have an api (my-api1) which should use two ports for communication: a SERVER_PORT (8081) for http communication and a GRPC_PORT (3000). So what I want is to access the grpc in the second API (my-api2) with the service connect DNS name like : my-api1:3000. But the problem is copilot output is "your service is accessible in my-api1:8081" and me I want also to access it with my-api1:3000 How to do it in copilot.

  • I find a solution to my problem: The simplest one is to use service discovery dns name instead of service connect