Deleting the service and the cluster

To delete the service and the associated tasks, run the following command:

ecs-cli compose --project-name hello-world service down

As the output shown here indicates, the running count and desired count for the tasks gets set to 0, and the hello-world service gets deleted. The service has to be scaled down to 0 before deleting the service:

Delete the cluster with the following command:

ecs-cli down –force

Select y at the command prompt Are you sure you want to delete your cluster?. The hello-world cluster and all associated resources get deleted. If the cluster does not get deleted due to timeout, or due ...

Get Amazon Fargate Quick Start Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.