CmdID

CmdID / Commands

aws-ecs

Manage Elastic Container Service (ECS) clusters. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

List task definitions

aws ecs list-task-definitionsIdentify

Describe a task definition

aws ecs describe-task-definition --task-definition task_definitionIdentify
--task-definitionThe family for the latest ACTIVE revision, family and revision (family:revision) for a specific revision in the family, or full Amazon Resource Name (ARN) of the task definition to describe. AWS CLI reference

Create a task definition or make a revision

aws ecs register-task-definition --cli-input-json file://path_to_file.jsonIdentify

Deregister a task definition marking them INACTIVE

aws ecs deregister-task-definition --task-definition task_definition:revision_numberIdentify
--task-definitionThe family and revision (family:revision) or full Amazon Resource Name (ARN) of the task definition to deregister. AWS CLI reference

List services in a specific cluster

aws ecs list-services --cluster cluster_nameIdentify
--clusterThe short name or full Amazon Resource Name (ARN) of the cluster to use when filtering the ListServices results. AWS CLI reference

Describe one or more services in a cluster

aws ecs describe-services --services service_name service_name --cluster cluster_nameIdentify
--servicesA list of services to describe. AWS CLI reference
--clusterThe short name or full Amazon Resource Name (ARN)the cluster that hosts the service to describe. AWS CLI reference

Update a service and force new deployment

aws ecs update-service --cluster cluster_name --service service_name --task-definition task_definition_arn --force-new-deploymentIdentify
--clusterThe short name or full Amazon Resource Name (ARN) of the cluster that your service runs on. AWS CLI reference
--serviceThe name of the service to update. AWS CLI reference
--task-definitionThe family and revision (family:revision) or full ARN of the task definition to run in your service. AWS CLI reference
--force-new-deploymentDetermines whether to force a new deployment of the service. AWS CLI reference

Wait until one or more services to succeed

aws ecs wait services-stable --cluster cluster_name --services service_name service_nameIdentify