Stopping tasks and deleting a load balancer

The procedure used to stop tasks and delete ECS resources is as follows:

  1. Update the service to set Desired count for tasks to 0
  2. Stop the tasks
  3. Delete the service
  4. De-register the task definition revisions

To delete the application load balancer, select the application load balancer in the Load Balancers table and select Actions | Delete, as shown in the following screenshot:

In the Delete Load Balancer confirmation dialog, click on Yes, Delete. The application load balancer gets deleted as shown in the following screenshot:

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.