How to deploy multiple containers on ECS?
_This message was extracted from a discussion that originally took place in Gruntwork Community Slack. Names and URLs have been removed where appropriate_ **From a customer** Hi, For deploying to AWS ECS, we are using `/modules/ecs-service-with-alb?ref=v0.10.1` with the container definition attached below. This works for our own application because our app runs in a single docker container. However, we are experimenting with a 3rd party application that runs with docker-compose (4-5 containers). How can we deploy such an application stack to AWS ECS? Do we need a different module? Or if we can use different task definitions with the same module? Thanks. ``` [ { "name": "${container_name}", "image": "${image}:${version}", "cpu": ${cpu}, "memory": ${memory}, "essential": true, "portMappings": ${port_mappings}, "environment": ${env_vars}, "logConfiguration": { "logDriver": "syslog", "options": { "tag": "${container_name} ({{.ID}})" } } } ] ```
**From a grunt** So, rather than multiple task definitions, the way to do this is by defining side cars in the container definition. How are you generating the container definition list? Maybe you can make it so that it supports multiple containers.