|
|
@ -14,9 +14,12 @@ LOGGER = logger.getLogger(__file__) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class InstanceResource(enum.Enum): |
|
|
|
class InstanceResource(enum.Enum): |
|
|
|
ON_DEMAND = 1 |
|
|
|
ON_DEMAND = 'ondemand' |
|
|
|
SPOT_INSTANCE = 2 |
|
|
|
SPOT_INSTANCE = 'spot' |
|
|
|
SPOT_FLEET = 3 |
|
|
|
SPOT_FLEET = 'fleet' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def __str__(self): |
|
|
|
|
|
|
|
return self.value |
|
|
|
|
|
|
|
|
|
|
|
def run_one_region_on_demand_instances(config, region_number, number_of_instances): |
|
|
|
def run_one_region_on_demand_instances(config, region_number, number_of_instances): |
|
|
|
ec2_client = utils.create_client(config, region_number) |
|
|
|
ec2_client = utils.create_client(config, region_number) |
|
|
|