Skip to content

bash script(aws cli) for launch config update. that will create new launch config using auto-scaling groups.

Notifications You must be signed in to change notification settings

jogendrajangid-tryjeeves/Launch-config-update-using-aws-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This script mainly used for create new launch config aur copy from current with update userdata aur any other values. beacuase as of now AWS not provide Funcility to update launch config.

first you need to configure aws cli

  1. Update autoscaling groups name in asg_var(in array)
  2. run genrate_userdata_from_lc (bash script)that script will genrate userdata of all launch config userdata in userdata_files directory which associate with provided autoscaling groups. then update userdata as required
  3. then run create-lc-and-update-asg (bash script) that will create new launch config with updated userdata and update newly launch config to Autoscaling group.

Note:- if you are creating multiple launch config in a day please update launch config name accordingly. because newly created launch cofngi by date in name. You can update DATE variable like this #DATE=date +%Y%m%d-1 and #DATE=date +%Y%m%d-2

About

bash script(aws cli) for launch config update. that will create new launch config using auto-scaling groups.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages