Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Amazon EC2 Spot Instace Request vie EC2 Command Line Tools
- ec2-request-spot-instances <AMI> -p <PRICE> -n <# INSTANCES> -r <PERSISTENCE> -s <SUBNET> -f <USER-DATA FILE PATH> -z <ZONE> -t <IMAGETYPE> -k <KEY> -g <SECURITY GROUP>
- AMI - The image identifier. It's gotta be in the region you're connecting to.
- -p - Price
- -n - Number of instances to request.
- -r - Whether or not the request is persistent (re-requests after being terminated)
- Valid: one-time|persistent
- -s The subnet, by ID. Make sure the subnet is in the zone you want to request from.
- -f Path to the user data file you'd like to use for this instance.
- -z Zone to launch instance in (should match zone subnet is in) ex. us-east-1a, us-west-2b, etc.
- -t Instance type (g2.2xlarge if your doing scrypt mining)
- -k The key to use (for password creation on Windows or SSH authentication on Linux). Keys are just called by their name, no xxx-abcd1234 thing here.
- -g One of your security groups, appropriate for the image chosen (RDP/VNC Windows, SSH Linux)
- Example:
- ec2-request-spot-instances ami-1234abcd -p .15 -n 1 -r persistent -s subnet-1234abcd
- -f C:\Path\To\User-Data\UserData.File -z us-east-1a -t g2.2xlarge -k Key2 -g sg-1234abcd
Advertisement
Add Comment
Please, Sign In to add comment