let instance resource supports cli reading

pull/37/head
Richard Liu 6 years ago
parent 8fe9368f25
commit 7f48e2270a
  1. 9
      aws-experiment-launch/create_instances.py

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

Loading…
Cancel
Save