Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Pelirrojo/dcb52e8a8147790f0e2d059b7dc5d31e to your computer and use it in GitHub Desktop.
Save Pelirrojo/dcb52e8a8147790f0e2d059b7dc5d31e to your computer and use it in GitHub Desktop.
Phase 3: Fine-Tuning | Adjust Auto-Scaling Parameters
# 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