Skip to content

Instantly share code, notes, and snippets.

@flannon
Last active December 8, 2015 21:51
Show Gist options
  • Save flannon/7515ea1ae867eae8e5e8 to your computer and use it in GitHub Desktop.
Save flannon/7515ea1ae867eae8e5e8 to your computer and use it in GitHub Desktop.
Create a launch configuration with a spot price of ¢.045
Create launch configuration - with a spot price requirement single security group, no termination policy
aws autoscaling create-launch-configuration --launch-configuration-name <name-lc> --image-id <ami-XXXXXXXX> --instance-type m3.medium --associate-public-ip-address --spot-price .045 --security-groups <security group name>
Create launch configuration -- with a spot price requirement, multiple security groups and block device mappings for terminaiton policy
aws autoscaling create-launch-configuration --launch-configuration-name test-lc --image-id <ami-xxxxxxxx> --instance-type t1.micro --associate-public-ip-address --spot-price .035 --security-groups {<sg-XXXXXXX>,<sg-XXXXXXX>} --block-device-mapping "[{\"DeviceName\": \"/dev/sda\",\"Ebs\": {\"DeleteOnTermination\": true, \"VolumeSize\": 8, \"VolumeType\": \"standard\"}}]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment