You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
594 B
18 lines
594 B
7 years ago
|
aws ec2 request-spot-instances \
|
||
|
--instance-count 1 \
|
||
|
--block-duration-minutes 60 \
|
||
|
--launch-specification "{ \
|
||
|
\"ImageId\": \"ami-f2d3638a\", \
|
||
|
\"InstanceType\": \"m3.medium\", \
|
||
|
\"SecurityGroups\": [ \
|
||
|
\"richard-spot-instance SSH\" \
|
||
|
], \
|
||
|
\"KeyName\": \"richard-spot-instance\", \
|
||
|
\"IamInstanceProfile\": { \
|
||
6 years ago
|
\"Name\": \"BenchMarkCodeDeployInstanceProfile\" \
|
||
7 years ago
|
}, \
|
||
6 years ago
|
\"UserData\": \"`base64 userdata.sh`\" \
|
||
7 years ago
|
}" \
|
||
|
--dry-run # uncomment this line to send a real request.
|
||
6 years ago
|
|
||
|
# Note: on windows, UserData should be "`base64 -w 0 userdata.sh`"
|