How to deploy multiple applications in a single ECS task?

Bhanu Reddy
2 min readAug 16, 2022
Ecs task containing different types of containers(applications)

OBJECTIVE: In this blog, I am going to explain how to deploy different types of containers in a single ECS task to have ease of communication between the applications. The above diagram is the architecture of the ECS service which is having ECS task with different types of applications(containers) in it.

Create a task definition with multiple applications inside the container definitions

Task Definition with multiple applications
Task with multiple containers

USE CASES:
— we can avoid using docker-compose which does not support on AWS ECS. — we can create CI CD pipelines to deploy the applications automatically.
— we can deploy complex applications like airflow and druid seamlessly.
— scaling becomes very easy, we just need to set the desired count on ECS.
— multiple container applications can communicate with each other without any extra effort as they all are inside one ECS task.

--

--