Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Amazon Fargate Quick Start Guide

You're reading from   Amazon Fargate Quick Start Guide Learn how to use AWS Fargate to run containers with ease

Arrow left icon
Product type Paperback
Published in Jul 2018
Publisher Packt
ISBN-13 9781789345018
Length 190 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Deepak Vohra Deepak Vohra
Author Profile Icon Deepak Vohra
Deepak Vohra
Arrow right icon
View More author details
Toc

Table of Contents (14) Chapters Close

Title Page
Copyright and Credits
Packt Upsell
Contributors
Preface
1. Getting Started with Amazon ECS and Amazon Fargate FREE CHAPTER 2. Networking 3. Using CloudWatch Logs 4. Using Auto Scaling 5. Using IAM 6. Using an Application Load Balancer 7. Using Amazon ECS CLI 1. Other Books You May Enjoy Index

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 to some of the resources not getting deleted as shown in the following screenshot, run the preceding command again: 

Alternatively, delete the CloudFormation stack associated with the cluster directly by selecting Actions | Delete Stack in the AWS CloudFormation console, as shown in the following screenshot: 

In the Delete Stack confirmation dialog, select the...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime
Visually different images