Created
April 29, 2019 03:35
-
-
Save shearluck/b15b10898eec8de8c5bf8d817f974417 to your computer and use it in GitHub Desktop.
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
# How many hours | |
DURATION_HRS=1 | |
let DURATION_MINS=$DURATION_HRS*60 | |
aws ec2 request-spot-instances --block-duration-minutes $DURATION_MINS --launch-specification file://bastion-spot-specs.json |
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
{ | |
"SecurityGroupIds": ["sg-idhere"], | |
"ImageId": "ami-009d6802948d06e52", | |
"InstanceType": "c3.large", | |
"KeyName": "ssh-key-name", | |
"SubnetId": "vpc-public-subnet-id" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment