Frequently update the AMI or Instance-Type in AWS Autoscaling group
If your instances running under AWS autoscaling, then instances will always use the same AMI or Instance-Type which configured in launch configuration. If you installed new packages or did any changes in instance root volume, then you need to take new AMI from that instance[root volume] and need to update that AMI in Autoscaling group[using launch configuration]. But it will require many manual steps. So I created a Bash script and it will do that task automatically. Example 1:- If you want to just update the AMI in Autoscaling group, run the script like below. #./script.sh <Autoscaling Group Name> <Launch Configuration Name> <AWS Region> Example 2:- If you want to update both instance type and AMI in Autoscaling group, run the script like below. #./script.sh <Autoscaling Group Name> <Launch Configuration Name> <AWS Region> <Instance Type> ==================================== #!/bin/bash Autos...