How to register IP address for ECS task at startup so that other resources can find it

0

A partner wants to deploy their on-premises software solution in their AWS environment. The software has a front end component running on Windows that they want to deploy via AppStream. The backend services are provided via a set of ECS task definiitions. The ECS cluster is on a private subnet in the VPC. Every time the tasks are started, their IP address changes. Looking for some suggestions on how to register the task IP address at start time so that the front end can connect to it.

已提問 4 年前檢視次數 867 次
1 個回答
0
已接受的答案

You can provide service discovery in ECS in two ways:

  • Placing a load balancer in front of the service. ECS has direct integration with ELB (ALB, NLB, and CLB), and will automatically register and de-register each task from the ELB as needed.
  • Cloud Map. This does not involve an ALB, instead ECS will add each task as a discoverable item in Cloud Map. This can be done either by DNS, in an private Route 53 hosted zone, or via API, or both, depending on how you configure the Cloud Map namespace.
已回答 4 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南