Deploying the compose file to the cluster

The ecs-cli compose service up command deploys a Docker compose file to a cluster. The command may optionally be parameterized with the command options discussed in this table:



Default value


Project name

The current directory


ECS params file to use

The ecs-params.yml in the current directory


Creates CloudWatch Log groups for container logs



Docker compose file

The docker-compose.yml file in the current directory


Run the following command in which the --project-name and --create-log-groups options are used. We don’t need to use the other options, as the required files are in the ...

Get Amazon Fargate Quick Start Guide now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.