Add EC2 spot instances
This commit is contained in:
parent
62b72377bd
commit
a0e2cb3d98
4 changed files with 379 additions and 21 deletions
|
|
@ -10,6 +10,10 @@ def random_id(prefix=''):
|
|||
return '{}-{}'.format(prefix, instance_tag)
|
||||
|
||||
|
||||
def random_ami_id():
|
||||
return random_id(prefix='ami')
|
||||
|
||||
|
||||
def random_instance_id():
|
||||
return random_id(prefix='i')
|
||||
|
||||
|
|
@ -18,14 +22,22 @@ def random_reservation_id():
|
|||
return random_id(prefix='r')
|
||||
|
||||
|
||||
def random_ami_id():
|
||||
return random_id(prefix='ami')
|
||||
|
||||
|
||||
def random_security_group_id():
|
||||
return random_id(prefix='sg')
|
||||
|
||||
|
||||
def random_snapshot_id():
|
||||
return random_id(prefix='snap')
|
||||
|
||||
|
||||
def random_spot_request_id():
|
||||
return random_id(prefix='sir')
|
||||
|
||||
|
||||
def random_subnet_id():
|
||||
return random_id(prefix='subnet')
|
||||
|
||||
|
||||
def random_volume_id():
|
||||
return random_id(prefix='vol')
|
||||
|
||||
|
|
@ -34,14 +46,6 @@ def random_vpc_id():
|
|||
return random_id(prefix='vpc')
|
||||
|
||||
|
||||
def random_subnet_id():
|
||||
return random_id(prefix='subnet')
|
||||
|
||||
|
||||
def random_snapshot_id():
|
||||
return random_id(prefix='snap')
|
||||
|
||||
|
||||
def instance_ids_from_querystring(querystring_dict):
|
||||
instance_ids = []
|
||||
for key, value in querystring_dict.iteritems():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue