aws ec2 describe-reserved-instances # This describes everything about the instance. aws ec2 describe-instances # or # See possible values, not needed most of the time. aws ec2 describe-instance-attribute --instance-id "i-d3116f1a" --attribute instanceType # List out the zone we can do aws ec2 describe-availability-zones # List out the reserved instances. aws ec2 describe-reserved-instances aws ec2 describe-security-groups # Should not need. aws ec2 modify-instance-attribute # Should not need aws ec2 modify-reserved-instances # Find out a list of filters for ubunutu images. aws ec2 describe-images # Create instances # What should the key name be? security groups? aws ec2 run-instances --key-name X1 --security-groups X2 --instance-type t1.micro --placement AvailabilityZone=us-west-2c --imag e-id X3 # example aws ec2 run-instances --image-id ami-1a2b3c4d --count 1 --instance-type t1.micro --key-name MyKeyPair --security-groups MySecuri tyGroup # Start after is has been created. aws ec2 start-instances --instance-ids X # Stop aws ec2 stop-instances --instance-ids X aws ec2 reboot-instances --instance-ids X # DO NOT DO purchase-reserved-instances-offering # I would name the hosts a name that represents temporaryt names # and the script would only pull the ID if it has a temporary name. aws ec2 terminate-instances --instance-ids ID