-
Notifications
You must be signed in to change notification settings - Fork 15
/
instructions.txt
25 lines (15 loc) · 991 Bytes
/
instructions.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# View the Running Containers on a Cluster
ecs-cli compose --project-name rainbowtext service ps --cluster-config rainbowtext
# View the Container Logs
ecs-cli logs --task-id 0c2862e6e39e4eff92ca3e4f843c5b9a --follow --cluster-config rainbowtext
# Scale the Tasks on the Cluster
ecs-cli compose --project-name rainbowtext service scale 2 --cluster-config rainbowtext
# Clean up
# - delete the services
ecs-cli compose --file ${DOCKER_COMPOSE_YML_OUTPUT} --ecs-params ${ECS_PARAMS_OUTPUT} --project-name ${rainbowtext} service up --create-log-groups --cluster-config ${rainbowtext}
ecs-cli compose --file docker-compose.ecs.yml --ecs-params ecs-params.ecs.yml --project-name rainbowtext service down --cluster-config rainbowtext
# - take down the cluster
ecs-cli down --force --cluster-config rainbowtext
Further reading:
https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-cli-tutorial-fargate.html
https://aws.amazon.com/blogs/compute/task-networking-in-aws-fargate/