Last active
December 8, 2015 21:51
-
-
Save flannon/7515ea1ae867eae8e5e8 to your computer and use it in GitHub Desktop.
Create a launch configuration with a spot price of ¢.045
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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