Search code examples
amazon-web-servicesdocker-composeamazon-ecs

YAML properties from AWS ECS-CLI compose are not documented


All,

I'm trying to automate my AWS ECS cluster setup via scripting. I found the AWS ecs-cli to create task definitions and it's corresponding documentation:

I am able to create task definition and log group with the following two docker-compose files

1)service-security-docker-compose.yml

version: '3'
    services:
      ps-security-service-test:
        image: ...-east-1.amazonaws.com/security:latest
        ports:
          - "8080:80"
        logging:
          driver: awslogs
          options:
            awslogs-group: /ecs/20200208-security
            awslogs-region: us-east-1
            awslogs-stream-prefix: ecs

2)service-security-ecs-params.yml

version: 1
task_definition:
  services:
    ps-security-service-test:
      mem_limit: 750MB

This configuration creates a task definition with the name "service". I would like to change the name and have a look which other parameters can be set with the yaml configuration.

At this point I got blocked as I can't find which properties I can use to e.g. set the name of the task definition/service.

Does someone know where to find the yaml configuration documentation?


Solution

  • The ECS CLI docker-compose file is documented here and here.

    The ECS params file is documented here.