sinergym.utils.gcloud.create_instance_group
- sinergym.utils.gcloud.create_instance_group(service, project, zone, size, template_name, group_name)
Create an instance group (MIG) in Google Cloud.
- Parameters:
service – gcloud API service built previously
project – Project id from Google Cloud Platform
zone – Google Cloud Zone where instances are
size – Number of instances desired inner MIG
template_name – template name for machine type definition, previously defined into your Google Cloud account.
group_name – Base name for every machine inner MIG, this name will be concatenated with a different random str for every machine
- Returns:
State response from API
- Return type:
str JSON