aws ecs list-clusters
aws ecs list-services
aws ecs list-tasks
aws ecs update-service --service sample-app-service --desired-count 0
aws ecs update-service --service sample-app-service --desired-count 2
aws ecs stop-task --task TASK_ID --cluster CLUSTER_NAME
aws ecs list-task-definitions
aws ecs run-task --cluter CLUSTER_NAME --task-definition TASK_DEFINITION_NAME:VERSION
or add more tasks (Ex: 3)
aws ecs run-task --cluter CLUSTER_NAME --task-definition TASK_DEFINITION_NAME:VERSION --count 3
aws ecs list-services --cluster CLUSTER_NAME
aws ecs describe-clusters
aws ecs describe-tasks
aws ecs describe-tasks --cluster default --tasks TASK_ID
aws ecs describe-clusters --query '[clusters[*].[clusterName, runningTasksCount]]'
or
aws ecs describe-clusters | grep Name
or
aws ecs describe-tasks --cluster default --tasks TASK_ID --query 'tasks[*].{cpu:cpu, memoria:memory}'
aws autoscaling describe-auto-scaling-groups
aws autoscaling set-desired-capacity --auto-scaling-group-name AUTO_SCALING_GROUP_NAME_COMPLETE desired-capacity 2