Skip to content
This repository was archived by the owner on Nov 19, 2025. It is now read-only.
This repository was archived by the owner on Nov 19, 2025. It is now read-only.

Restructure local commands and flags #809

@efekarakus

Description

@efekarakus

Summary

The proposed API:

  • local create Create a Compose file from an ECS task definition.

    • -f, --task-def-file <name> The file name of a task definition json to convert. If not specified, defaults to task-definition.json.
    • -r, --task-def-remote <arnOrFamily> The arnOrFamily of a task definition to convert.
    • -o, --output <name> The Compose file name to write to. If not specified, defaults to docker-compose.local.yml.
  • local up Create a Compose file from an ECS task definition and run it.

    • -c, --task-def-compose <name> The Compose file name of a task definition to run.
    • -f, --task-def-file <name> The file name of a task definition json to convert and run. If not specified, defaults to task-definition.json.
    • -r, --task-def-remote <arnOrFamily> The arnOrFamily of a task definition to convert and run.
    • -o, --output <name> The Compose file name to write to. If not specified, defaults to docker-compose.local.yml.
  • local ps List locally running ECS task containers.

    • -c, --task-def-compose <name> List containers created from the Compose file name.
    • -f, --task-def-file <name> List all running containers matching the task definition file name.
    • -r, --task-def-remote <arnOrFamily> List all running containers matching the task definition arnOrFamily.
    • --all List all running local ECS task containers.
    • --json Output in JSON format.
  • local down Stop and remove a running ECS task container. If no flags are provided defaults to using docker-compose.local.yml.

    • -c, --task-def-compose <name> Stop and remove containers from the Compose file name.
    • -f, --task-def-file <name> Stop and remove all running containers matching the task definition file name.
    • -r, --task-def-remote <arnOrFamily> Stop and remove all running containers matching the task definition arnOrFamily.
    • --all Stop and remove all running local ECS tasks.

Metadata

Metadata

Assignees

Labels

ecs-localIssues related to the "local" subcommand.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions