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
AWS Tools for PowerShell 6

You're reading from   AWS Tools for PowerShell 6 Administrate, maintain, and automate your infrastructure with ease

Arrow left icon
Product type Paperback
Published in Aug 2017
Publisher
ISBN-13 9781785884078
Length 372 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Ramesh Waghmare Ramesh Waghmare
Author Profile Icon Ramesh Waghmare
Ramesh Waghmare
Arrow right icon
View More author details
Toc

Table of Contents (23) Chapters Close

Title Page
Credits
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface
1. PowerShell Essentials FREE CHAPTER 2. The AWS Overview 3. Installing PowerShell Core and AWS Tools 4. AWS Identity and Access Management 5. AWS Virtual Private Cloud 6. AWS Elastic Compute Cloud 7. AWS Simple Storage Service 8. Elastic Load Balancer 9. Auto Scaling 10. Laying Foundation for RDS Databases 11. DB Instance Administration and Management 12. Working with RDS Read Replicas 13. AWS Elastic Beanstalk 14. AWS CloudFormation 15. AWS CloudWatch 16. AWS Resource Auditing

Increasing a fleet manually


In the previous example, we specified MinSize and MaxSize as 2 for the Auto Scaling Group. There is another switch that we can pass on to the New-ASAutoScalingGroup to instruct Auto Scaling to start the fleet with the desired capacity. As we did not specify DesiredCapacity, Auto Scaling assumes the size as the specified MinSize . Hence, the fleet we started had the minimum two instances running. DesiredCapacity values can be in between the MinSize and MaxSize of the Auto Scaling Group, and both those numbers are inclusive. Let's try to update the MaxSize to 6 and the DesiredCapacity of the fleet to 3. You can do this using Update-ASAutoScalingGroup.

PS C:\> Update-ASAutoScalingGroup -AutoScalingGroupName WebAppASG  -DesiredCapacity 3 -MinSize 2 -MaxSize 6

As soon as you update the Auto Scaling Group, another EC2 instance fires up automatically. Now, you have three instances in the fleet. This way, you can manually increase the fleet size, if needed. You can also...

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