Created
October 30, 2024 14:28
-
-
Save Pelirrojo/dcb52e8a8147790f0e2d059b7dc5d31e to your computer and use it in GitHub Desktop.
Phase 3: Fine-Tuning | Adjust Auto-Scaling Parameters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A vantablack friday: How to be prepared to stop DDoS Attacks after Halloween | |
# https://blog.evereven.tech | |
# Obtain Auto Scaling Group Name | |
aws autoscaling describe-auto-scaling-groups \ | |
--query 'AutoScalingGroups[*].[AutoScalingGroupName,MinSize,MaxSize,DesiredCapacity]' \ | |
--output json | |
> [ | |
> [ | |
> "my-asg-cool-name", | |
> 1, | |
> 4, | |
> 2 | |
> ] | |
> ] | |
# Improve capacity thresholds (adapt numbers and replace [MY_ASG_NAME] | |
aws autoscaling update-auto-scaling-group \ | |
--auto-scaling-group-name "[MY_ASG_NAME]" \ | |
--min-size 4 \ | |
--max-size 10 \ | |
--desired-capacity 6 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment