Skip to content

Instantly share code, notes, and snippets.

@arnathan2k
Last active April 18, 2018 19:48
Show Gist options
  • Save arnathan2k/307e6ee09b78ab83528b9e7fbfaf287e to your computer and use it in GitHub Desktop.
Save arnathan2k/307e6ee09b78ab83528b9e7fbfaf287e to your computer and use it in GitHub Desktop.
Create AWS autoscaling Launch configuration from running instance
# creating launch config from running instance
aws autoscaling create-launch-configuration --launch-configuration-name web-demo-launch-config --instance-id i-a8exxxxxx
# Creating ASG from running instance
aws autoscaling create-auto-scaling-group --auto-scaling-group-name web-demo-asg --instance-id i-7f12e649 --min-size 1 --max-size 2 --desired-capacity 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment