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.

gefragt vor 4 Jahren867 Aufrufe
1 Antwort
0
Akzeptierte Antwort

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.
beantwortet vor 4 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen