Skip to content

Commit

Permalink
updated readme for automate-launch-configuration-update-with-latest-i…
Browse files Browse the repository at this point in the history
…mage
  • Loading branch information
Varun Chandak committed Feb 2, 2019
1 parent edc6aa0 commit 5d6c805
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions automate-launch-configuration-update-with-latest-image/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
# DO NOT USE
# Automatically update ASG with latest image and launch configuration

## SCRIPT UNDER CONSTRUCTION
This script will do the following (in order):
1. Get a list of instances running inside the autoscaling group
2. Create an AMI of the particular instance and store AMI ID
3. Fetch the launch configuration name to an autoscaling group (passed as parameter to script)
4. Create a new launch configuration with the updated image
5. Assign the Launch Configuration to the existing Auto Scaling Group (ASG)
6. Removal of old Launch Configurations (commented for now)

---

## NOTES:

* When you change the launch configuration for your Auto Scaling group, any new instances are launched using the new configuration parameters, but existing instances are not affected. This is the default configuration.
* **RUN THIS ON TEST ENVIRONMENT FIRST. I AM NOT RESPONSIBLE FOR ANY UNINTENDED DAMAGE.**

0 comments on commit 5d6c805

Please sign in to comment.