I know how to refer to "services" from within the same task. But how can I refer to an essential task from within another task definition? For example:
After you create a task definition for your application within Amazon ECS, you can specify the number of tasks to run on your cluster. An Amazon ECS service runs and maintains your desired number of tasks simultaneously in an Amazon ECS cluster.
AWS ECS also comes with Service Discovery, which lets tasks communicate with each other using simple service names, irrespective of where they are running and how many of them are running. This is essential for Microservices architecture where Microservices have to talk to each other.
Services configured to use Amazon ECS service discovery have a limit of 1,000 tasks per service.
To connect to your container instanceOpen the Amazon ECS console at https://console.aws.amazon.com/ecs/ . Select the cluster that hosts your container instance. On the Cluster page, choose ECS Instances. On the Container Instance column, select the container instance to connect to.
ECS has service discovery built in This makes it possible for an ECS service to automatically register itself with a predictable and friendly DNS name in Amazon Route 53.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With