Uly.me

cloud engineer

  • Home
  • About
  • Archives
Home/Archives for minimum

April 27, 2020

AWS CLI AutoScaler Update

Here’s the AWS CLI command to set the Auto Scaling Group to a certain number for the minimum, maximum, and desired number of instances.

#!/bin/bash
# Format:  
# ./autoscaling.sh 3
# ./autoscaling.sh 0
int=$1
aws autoscaling update-auto-scaling-group \
--auto-scaling-group-name your-auto-scaling-group \
--min-size $int \
--max-size $int \
--desired-capacity $int \
--region us-east-2

#!/bin/bash # Format: # ./autoscaling.sh 3 # ./autoscaling.sh 0 int=$1 aws autoscaling update-auto-scaling-group \ --auto-scaling-group-name your-auto-scaling-group \ --min-size $int \ --max-size $int \ --desired-capacity $int \ --region us-east-2

Format:

./autoscaling.sh 0
./autoscaling.sh 3

./autoscaling.sh 0 ./autoscaling.sh 3

  • Cloud
  • Linux
  • Git

Copyright © 2012–2021