RegionInstanceGroupManager
The Google Compute Engine Regional Instance Group Manager API creates and manages pools of homogeneous Compute Engine virtual machine instances from a common instance template. For more information, see the official documentation and API
Note: Use gcp.compute.InstanceGroupManager to create a single-zone instance group manager.
Create a RegionInstanceGroupManager Resource
new RegionInstanceGroupManager(name: string, args: RegionInstanceGroupManagerArgs, opts?: CustomResourceOptions);def RegionInstanceGroupManager(resource_name, opts=None, auto_healing_policies=None, base_instance_name=None, description=None, distribution_policy_zones=None, name=None, named_ports=None, project=None, region=None, stateful_disks=None, target_pools=None, target_size=None, update_policy=None, versions=None, wait_for_instances=None, __props__=None);func NewRegionInstanceGroupManager(ctx *Context, name string, args RegionInstanceGroupManagerArgs, opts ...ResourceOption) (*RegionInstanceGroupManager, error)public RegionInstanceGroupManager(string name, RegionInstanceGroupManagerArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args RegionInstanceGroupManagerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args RegionInstanceGroupManagerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RegionInstanceGroupManagerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
RegionInstanceGroupManager Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The RegionInstanceGroupManager resource accepts the following input properties:
- Base
Instance stringName The base instance name to use for instances in this group. The value must be a valid RFC1035 name. Supported characters are lowercase letters, numbers, and hyphens (-). Instances are named by appending a hyphen and a random four-character string to the base instance name.
- Region string
The region where the managed instance group resides.
- Versions
List<Region
Instance Group Manager Version Args> Application versions managed by this instance group. Each version deals with a specific instance template, allowing canary release scenarios. Structure is documented below.
- Auto
Healing RegionPolicies Instance Group Manager Auto Healing Policies Args The autohealing policies for this managed instance group. You can specify only one value. Structure is documented below. For more information, see the official documentation.
- Description string
An optional textual description of the instance group manager.
- Distribution
Policy List<string>Zones The distribution policy for this managed instance group. You can specify one or more values. For more information, see the official documentation.
- Name string
- Version name.
- Named
Ports List<RegionInstance Group Manager Named Port Args> The named port configuration. See the section below for details on configuration.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Stateful
Disks List<RegionInstance Group Manager Stateful Disk Args> Disks created on the instances that will be preserved on instance delete, update, etc. Structure is documented below. For more information see the official documentation. Proactive cross zone instance redistribution must be disabled before you can update stateful disks on existing instance group managers. This can be controlled via the
update_policy.- Target
Pools List<string> The full URL of all target pools to which new instances in the group are added. Updating the target pools attribute does not affect existing instances.
- Target
Size int - The number of instances calculated as a fixed number or a percentage depending on the settings. Structure is documented below.
- Update
Policy RegionInstance Group Manager Update Policy Args The update policy for this managed instance group. Structure is documented below. For more information, see the official documentation and API
- Wait
For boolInstances Whether to wait for all instances to be created/updated before returning. Note that if this is set to true and the operation does not succeed, the provider will continue trying until it times out.
- Base
Instance stringName The base instance name to use for instances in this group. The value must be a valid RFC1035 name. Supported characters are lowercase letters, numbers, and hyphens (-). Instances are named by appending a hyphen and a random four-character string to the base instance name.
- Region string
The region where the managed instance group resides.
- Versions
[]Region
Instance Group Manager Version Application versions managed by this instance group. Each version deals with a specific instance template, allowing canary release scenarios. Structure is documented below.
- Auto
Healing RegionPolicies Instance Group Manager Auto Healing Policies The autohealing policies for this managed instance group. You can specify only one value. Structure is documented below. For more information, see the official documentation.
- Description string
An optional textual description of the instance group manager.
- Distribution
Policy []stringZones The distribution policy for this managed instance group. You can specify one or more values. For more information, see the official documentation.
- Name string
- Version name.
- Named
Ports []RegionInstance Group Manager Named Port The named port configuration. See the section below for details on configuration.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Stateful
Disks []RegionInstance Group Manager Stateful Disk Disks created on the instances that will be preserved on instance delete, update, etc. Structure is documented below. For more information see the official documentation. Proactive cross zone instance redistribution must be disabled before you can update stateful disks on existing instance group managers. This can be controlled via the
update_policy.- Target
Pools []string The full URL of all target pools to which new instances in the group are added. Updating the target pools attribute does not affect existing instances.
- Target
Size int - The number of instances calculated as a fixed number or a percentage depending on the settings. Structure is documented below.
- Update
Policy RegionInstance Group Manager Update Policy The update policy for this managed instance group. Structure is documented below. For more information, see the official documentation and API
- Wait
For boolInstances Whether to wait for all instances to be created/updated before returning. Note that if this is set to true and the operation does not succeed, the provider will continue trying until it times out.
- base
Instance stringName The base instance name to use for instances in this group. The value must be a valid RFC1035 name. Supported characters are lowercase letters, numbers, and hyphens (-). Instances are named by appending a hyphen and a random four-character string to the base instance name.
- region string
The region where the managed instance group resides.
- versions
Region
Instance Group Manager Version[] Application versions managed by this instance group. Each version deals with a specific instance template, allowing canary release scenarios. Structure is documented below.
- auto
Healing RegionPolicies Instance Group Manager Auto Healing Policies The autohealing policies for this managed instance group. You can specify only one value. Structure is documented below. For more information, see the official documentation.
- description string
An optional textual description of the instance group manager.
- distribution
Policy string[]Zones The distribution policy for this managed instance group. You can specify one or more values. For more information, see the official documentation.
- name string
- Version name.
- named
Ports RegionInstance Group Manager Named Port[] The named port configuration. See the section below for details on configuration.
- project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- stateful
Disks RegionInstance Group Manager Stateful Disk[] Disks created on the instances that will be preserved on instance delete, update, etc. Structure is documented below. For more information see the official documentation. Proactive cross zone instance redistribution must be disabled before you can update stateful disks on existing instance group managers. This can be controlled via the
update_policy.- target
Pools string[] The full URL of all target pools to which new instances in the group are added. Updating the target pools attribute does not affect existing instances.
- target
Size number - The number of instances calculated as a fixed number or a percentage depending on the settings. Structure is documented below.
- update
Policy RegionInstance Group Manager Update Policy The update policy for this managed instance group. Structure is documented below. For more information, see the official documentation and API
- wait
For booleanInstances Whether to wait for all instances to be created/updated before returning. Note that if this is set to true and the operation does not succeed, the provider will continue trying until it times out.
- base_
instance_ strname The base instance name to use for instances in this group. The value must be a valid RFC1035 name. Supported characters are lowercase letters, numbers, and hyphens (-). Instances are named by appending a hyphen and a random four-character string to the base instance name.
- region str
The region where the managed instance group resides.
- versions
List[Region
Instance Group Manager Version] Application versions managed by this instance group. Each version deals with a specific instance template, allowing canary release scenarios. Structure is documented below.
- auto_
healing_ Dict[Regionpolicies Instance Group Manager Auto Healing Policies] The autohealing policies for this managed instance group. You can specify only one value. Structure is documented below. For more information, see the official documentation.
- description str
An optional textual description of the instance group manager.
- distribution_
policy_ List[str]zones The distribution policy for this managed instance group. You can specify one or more values. For more information, see the official documentation.
- name str
- Version name.
- named_
ports List[RegionInstance Group Manager Named Port] The named port configuration. See the section below for details on configuration.
- project str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- stateful_
disks List[RegionInstance Group Manager Stateful Disk] Disks created on the instances that will be preserved on instance delete, update, etc. Structure is documented below. For more information see the official documentation. Proactive cross zone instance redistribution must be disabled before you can update stateful disks on existing instance group managers. This can be controlled via the
update_policy.- target_
pools List[str] The full URL of all target pools to which new instances in the group are added. Updating the target pools attribute does not affect existing instances.
- target_
size float - The number of instances calculated as a fixed number or a percentage depending on the settings. Structure is documented below.
- update_
policy Dict[RegionInstance Group Manager Update Policy] The update policy for this managed instance group. Structure is documented below. For more information, see the official documentation and API
- wait_
for_ boolinstances Whether to wait for all instances to be created/updated before returning. Note that if this is set to true and the operation does not succeed, the provider will continue trying until it times out.
Outputs
All input properties are implicitly available as output properties. Additionally, the RegionInstanceGroupManager resource produces the following output properties:
- Fingerprint string
The fingerprint of the instance group manager.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Group string The full URL of the instance group created by the manager.
- Self
Link string The URL of the created resource.
- Fingerprint string
The fingerprint of the instance group manager.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Group string The full URL of the instance group created by the manager.
- Self
Link string The URL of the created resource.
- fingerprint string
The fingerprint of the instance group manager.
- id string
- The provider-assigned unique ID for this managed resource.
- instance
Group string The full URL of the instance group created by the manager.
- self
Link string The URL of the created resource.
- fingerprint str
The fingerprint of the instance group manager.
- id str
- The provider-assigned unique ID for this managed resource.
- instance_
group str The full URL of the instance group created by the manager.
- self_
link str The URL of the created resource.
Look up an Existing RegionInstanceGroupManager Resource
Get an existing RegionInstanceGroupManager resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: RegionInstanceGroupManagerState, opts?: CustomResourceOptions): RegionInstanceGroupManagerstatic get(resource_name, id, opts=None, auto_healing_policies=None, base_instance_name=None, description=None, distribution_policy_zones=None, fingerprint=None, instance_group=None, name=None, named_ports=None, project=None, region=None, self_link=None, stateful_disks=None, target_pools=None, target_size=None, update_policy=None, versions=None, wait_for_instances=None, __props__=None);func GetRegionInstanceGroupManager(ctx *Context, name string, id IDInput, state *RegionInstanceGroupManagerState, opts ...ResourceOption) (*RegionInstanceGroupManager, error)public static RegionInstanceGroupManager Get(string name, Input<string> id, RegionInstanceGroupManagerState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Auto
Healing RegionPolicies Instance Group Manager Auto Healing Policies Args The autohealing policies for this managed instance group. You can specify only one value. Structure is documented below. For more information, see the official documentation.
- Base
Instance stringName The base instance name to use for instances in this group. The value must be a valid RFC1035 name. Supported characters are lowercase letters, numbers, and hyphens (-). Instances are named by appending a hyphen and a random four-character string to the base instance name.
- Description string
An optional textual description of the instance group manager.
- Distribution
Policy List<string>Zones The distribution policy for this managed instance group. You can specify one or more values. For more information, see the official documentation.
- Fingerprint string
The fingerprint of the instance group manager.
- Instance
Group string The full URL of the instance group created by the manager.
- Name string
- Version name.
- Named
Ports List<RegionInstance Group Manager Named Port Args> The named port configuration. See the section below for details on configuration.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Region string
The region where the managed instance group resides.
- Self
Link string The URL of the created resource.
- Stateful
Disks List<RegionInstance Group Manager Stateful Disk Args> Disks created on the instances that will be preserved on instance delete, update, etc. Structure is documented below. For more information see the official documentation. Proactive cross zone instance redistribution must be disabled before you can update stateful disks on existing instance group managers. This can be controlled via the
update_policy.- Target
Pools List<string> The full URL of all target pools to which new instances in the group are added. Updating the target pools attribute does not affect existing instances.
- Target
Size int - The number of instances calculated as a fixed number or a percentage depending on the settings. Structure is documented below.
- Update
Policy RegionInstance Group Manager Update Policy Args The update policy for this managed instance group. Structure is documented below. For more information, see the official documentation and API
- Versions
List<Region
Instance Group Manager Version Args> Application versions managed by this instance group. Each version deals with a specific instance template, allowing canary release scenarios. Structure is documented below.
- Wait
For boolInstances Whether to wait for all instances to be created/updated before returning. Note that if this is set to true and the operation does not succeed, the provider will continue trying until it times out.
- Auto
Healing RegionPolicies Instance Group Manager Auto Healing Policies The autohealing policies for this managed instance group. You can specify only one value. Structure is documented below. For more information, see the official documentation.
- Base
Instance stringName The base instance name to use for instances in this group. The value must be a valid RFC1035 name. Supported characters are lowercase letters, numbers, and hyphens (-). Instances are named by appending a hyphen and a random four-character string to the base instance name.
- Description string
An optional textual description of the instance group manager.
- Distribution
Policy []stringZones The distribution policy for this managed instance group. You can specify one or more values. For more information, see the official documentation.
- Fingerprint string
The fingerprint of the instance group manager.
- Instance
Group string The full URL of the instance group created by the manager.
- Name string
- Version name.
- Named
Ports []RegionInstance Group Manager Named Port The named port configuration. See the section below for details on configuration.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Region string
The region where the managed instance group resides.
- Self
Link string The URL of the created resource.
- Stateful
Disks []RegionInstance Group Manager Stateful Disk Disks created on the instances that will be preserved on instance delete, update, etc. Structure is documented below. For more information see the official documentation. Proactive cross zone instance redistribution must be disabled before you can update stateful disks on existing instance group managers. This can be controlled via the
update_policy.- Target
Pools []string The full URL of all target pools to which new instances in the group are added. Updating the target pools attribute does not affect existing instances.
- Target
Size int - The number of instances calculated as a fixed number or a percentage depending on the settings. Structure is documented below.
- Update
Policy RegionInstance Group Manager Update Policy The update policy for this managed instance group. Structure is documented below. For more information, see the official documentation and API
- Versions
[]Region
Instance Group Manager Version Application versions managed by this instance group. Each version deals with a specific instance template, allowing canary release scenarios. Structure is documented below.
- Wait
For boolInstances Whether to wait for all instances to be created/updated before returning. Note that if this is set to true and the operation does not succeed, the provider will continue trying until it times out.
- auto
Healing RegionPolicies Instance Group Manager Auto Healing Policies The autohealing policies for this managed instance group. You can specify only one value. Structure is documented below. For more information, see the official documentation.
- base
Instance stringName The base instance name to use for instances in this group. The value must be a valid RFC1035 name. Supported characters are lowercase letters, numbers, and hyphens (-). Instances are named by appending a hyphen and a random four-character string to the base instance name.
- description string
An optional textual description of the instance group manager.
- distribution
Policy string[]Zones The distribution policy for this managed instance group. You can specify one or more values. For more information, see the official documentation.
- fingerprint string
The fingerprint of the instance group manager.
- instance
Group string The full URL of the instance group created by the manager.
- name string
- Version name.
- named
Ports RegionInstance Group Manager Named Port[] The named port configuration. See the section below for details on configuration.
- project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- region string
The region where the managed instance group resides.
- self
Link string The URL of the created resource.
- stateful
Disks RegionInstance Group Manager Stateful Disk[] Disks created on the instances that will be preserved on instance delete, update, etc. Structure is documented below. For more information see the official documentation. Proactive cross zone instance redistribution must be disabled before you can update stateful disks on existing instance group managers. This can be controlled via the
update_policy.- target
Pools string[] The full URL of all target pools to which new instances in the group are added. Updating the target pools attribute does not affect existing instances.
- target
Size number - The number of instances calculated as a fixed number or a percentage depending on the settings. Structure is documented below.
- update
Policy RegionInstance Group Manager Update Policy The update policy for this managed instance group. Structure is documented below. For more information, see the official documentation and API
- versions
Region
Instance Group Manager Version[] Application versions managed by this instance group. Each version deals with a specific instance template, allowing canary release scenarios. Structure is documented below.
- wait
For booleanInstances Whether to wait for all instances to be created/updated before returning. Note that if this is set to true and the operation does not succeed, the provider will continue trying until it times out.
- auto_
healing_ Dict[Regionpolicies Instance Group Manager Auto Healing Policies] The autohealing policies for this managed instance group. You can specify only one value. Structure is documented below. For more information, see the official documentation.
- base_
instance_ strname The base instance name to use for instances in this group. The value must be a valid RFC1035 name. Supported characters are lowercase letters, numbers, and hyphens (-). Instances are named by appending a hyphen and a random four-character string to the base instance name.
- description str
An optional textual description of the instance group manager.
- distribution_
policy_ List[str]zones The distribution policy for this managed instance group. You can specify one or more values. For more information, see the official documentation.
- fingerprint str
The fingerprint of the instance group manager.
- instance_
group str The full URL of the instance group created by the manager.
- name str
- Version name.
- named_
ports List[RegionInstance Group Manager Named Port] The named port configuration. See the section below for details on configuration.
- project str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- region str
The region where the managed instance group resides.
- self_
link str The URL of the created resource.
- stateful_
disks List[RegionInstance Group Manager Stateful Disk] Disks created on the instances that will be preserved on instance delete, update, etc. Structure is documented below. For more information see the official documentation. Proactive cross zone instance redistribution must be disabled before you can update stateful disks on existing instance group managers. This can be controlled via the
update_policy.- target_
pools List[str] The full URL of all target pools to which new instances in the group are added. Updating the target pools attribute does not affect existing instances.
- target_
size float - The number of instances calculated as a fixed number or a percentage depending on the settings. Structure is documented below.
- update_
policy Dict[RegionInstance Group Manager Update Policy] The update policy for this managed instance group. Structure is documented below. For more information, see the official documentation and API
- versions
List[Region
Instance Group Manager Version] Application versions managed by this instance group. Each version deals with a specific instance template, allowing canary release scenarios. Structure is documented below.
- wait_
for_ boolinstances Whether to wait for all instances to be created/updated before returning. Note that if this is set to true and the operation does not succeed, the provider will continue trying until it times out.
Supporting Types
RegionInstanceGroupManagerAutoHealingPolicies
- Health
Check string The health check resource that signals autohealing.
- Initial
Delay intSec The number of seconds that the managed instance group waits before it applies autohealing policies to new instances or recently recreated instances. Between 0 and 3600.
- Health
Check string The health check resource that signals autohealing.
- Initial
Delay intSec The number of seconds that the managed instance group waits before it applies autohealing policies to new instances or recently recreated instances. Between 0 and 3600.
- health
Check string The health check resource that signals autohealing.
- initial
Delay numberSec The number of seconds that the managed instance group waits before it applies autohealing policies to new instances or recently recreated instances. Between 0 and 3600.
- health
Check str The health check resource that signals autohealing.
- initial
Delay floatSec The number of seconds that the managed instance group waits before it applies autohealing policies to new instances or recently recreated instances. Between 0 and 3600.
RegionInstanceGroupManagerNamedPort
RegionInstanceGroupManagerStatefulDisk
- Device
Name string , The device name of the disk to be attached.
- Delete
Rule string , A value that prescribes what should happen to the stateful disk when the VM instance is deleted. The available options are
NEVERandON_PERMANENT_INSTANCE_DELETION.NEVERdetatch the disk when the VM is deleted, but not delete the disk.ON_PERMANENT_INSTANCE_DELETIONwill delete the stateful disk when the VM is permanently deleted from the instance group. The default isNEVER.
- Device
Name string , The device name of the disk to be attached.
- Delete
Rule string , A value that prescribes what should happen to the stateful disk when the VM instance is deleted. The available options are
NEVERandON_PERMANENT_INSTANCE_DELETION.NEVERdetatch the disk when the VM is deleted, but not delete the disk.ON_PERMANENT_INSTANCE_DELETIONwill delete the stateful disk when the VM is permanently deleted from the instance group. The default isNEVER.
- device
Name string , The device name of the disk to be attached.
- delete
Rule string , A value that prescribes what should happen to the stateful disk when the VM instance is deleted. The available options are
NEVERandON_PERMANENT_INSTANCE_DELETION.NEVERdetatch the disk when the VM is deleted, but not delete the disk.ON_PERMANENT_INSTANCE_DELETIONwill delete the stateful disk when the VM is permanently deleted from the instance group. The default isNEVER.
- device_
name str , The device name of the disk to be attached.
- delete
Rule str , A value that prescribes what should happen to the stateful disk when the VM instance is deleted. The available options are
NEVERandON_PERMANENT_INSTANCE_DELETION.NEVERdetatch the disk when the VM is deleted, but not delete the disk.ON_PERMANENT_INSTANCE_DELETIONwill delete the stateful disk when the VM is permanently deleted from the instance group. The default isNEVER.
RegionInstanceGroupManagerUpdatePolicy
- Minimal
Action string - Minimal action to be taken on an instance. You can specify either
RESTARTto restart existing instances orREPLACEto delete and create new instances from the target template. If you specify aRESTART, the Updater will attempt to perform that action only. However, if the Updater determines that the minimal action you specify is not enough to perform the update, it might perform a more disruptive action.
- Minimal action to be taken on an instance. You can specify either
- Type string
- The type of update process. You can specify either
PROACTIVEso that the instance group manager proactively executes actions in order to bring instances to their target versions orOPPORTUNISTICso that no action is proactively executed but the update will be performed as part of other actions (for example, resizes or recreateInstances calls).
- The type of update process. You can specify either
- Instance
Redistribution stringType - The instance redistribution policy for regional managed instance groups. Valid values are:
"PROACTIVE","NONE". IfPROACTIVE(default), the group attempts to maintain an even distribution of VM instances across zones in the region. IfNONE, proactive redistribution is disabled.
- The instance redistribution policy for regional managed instance groups. Valid values are:
- Max
Surge intFixed , The maximum number of instances that can be created above the specified targetSize during the update process. Conflicts with
max_surge_percent. It has to be either 0 or at least equal to the number of zones. If fixed values are used, at least one ofmax_unavailable_fixedormax_surge_fixedmust be greater than 0.- Max
Surge intPercent , The maximum number of instances(calculated as percentage) that can be created above the specified targetSize during the update process. Conflicts with
max_surge_fixed. Percent value is only allowed for regional managed instance groups with size at least 10.- int
, The maximum number of instances that can be unavailable during the update process. Conflicts with
max_unavailable_percent. It has to be either 0 or at least equal to the number of zones. If fixed values are used, at least one ofmax_unavailable_fixedormax_surge_fixedmust be greater than 0.- int
, The maximum number of instances(calculated as percentage) that can be unavailable during the update process. Conflicts with
max_unavailable_fixed. Percent value is only allowed for regional managed instance groups with size at least 10.- Min
Ready intSec , Minimum number of seconds to wait for after a newly created instance becomes available. This value must be from range [0, 3600]
- Minimal
Action string - Minimal action to be taken on an instance. You can specify either
RESTARTto restart existing instances orREPLACEto delete and create new instances from the target template. If you specify aRESTART, the Updater will attempt to perform that action only. However, if the Updater determines that the minimal action you specify is not enough to perform the update, it might perform a more disruptive action.
- Minimal action to be taken on an instance. You can specify either
- Type string
- The type of update process. You can specify either
PROACTIVEso that the instance group manager proactively executes actions in order to bring instances to their target versions orOPPORTUNISTICso that no action is proactively executed but the update will be performed as part of other actions (for example, resizes or recreateInstances calls).
- The type of update process. You can specify either
- Instance
Redistribution stringType - The instance redistribution policy for regional managed instance groups. Valid values are:
"PROACTIVE","NONE". IfPROACTIVE(default), the group attempts to maintain an even distribution of VM instances across zones in the region. IfNONE, proactive redistribution is disabled.
- The instance redistribution policy for regional managed instance groups. Valid values are:
- Max
Surge intFixed , The maximum number of instances that can be created above the specified targetSize during the update process. Conflicts with
max_surge_percent. It has to be either 0 or at least equal to the number of zones. If fixed values are used, at least one ofmax_unavailable_fixedormax_surge_fixedmust be greater than 0.- Max
Surge intPercent , The maximum number of instances(calculated as percentage) that can be created above the specified targetSize during the update process. Conflicts with
max_surge_fixed. Percent value is only allowed for regional managed instance groups with size at least 10.- int
, The maximum number of instances that can be unavailable during the update process. Conflicts with
max_unavailable_percent. It has to be either 0 or at least equal to the number of zones. If fixed values are used, at least one ofmax_unavailable_fixedormax_surge_fixedmust be greater than 0.- int
, The maximum number of instances(calculated as percentage) that can be unavailable during the update process. Conflicts with
max_unavailable_fixed. Percent value is only allowed for regional managed instance groups with size at least 10.- Min
Ready intSec , Minimum number of seconds to wait for after a newly created instance becomes available. This value must be from range [0, 3600]
- minimal
Action string - Minimal action to be taken on an instance. You can specify either
RESTARTto restart existing instances orREPLACEto delete and create new instances from the target template. If you specify aRESTART, the Updater will attempt to perform that action only. However, if the Updater determines that the minimal action you specify is not enough to perform the update, it might perform a more disruptive action.
- Minimal action to be taken on an instance. You can specify either
- type string
- The type of update process. You can specify either
PROACTIVEso that the instance group manager proactively executes actions in order to bring instances to their target versions orOPPORTUNISTICso that no action is proactively executed but the update will be performed as part of other actions (for example, resizes or recreateInstances calls).
- The type of update process. You can specify either
- instance
Redistribution stringType - The instance redistribution policy for regional managed instance groups. Valid values are:
"PROACTIVE","NONE". IfPROACTIVE(default), the group attempts to maintain an even distribution of VM instances across zones in the region. IfNONE, proactive redistribution is disabled.
- The instance redistribution policy for regional managed instance groups. Valid values are:
- max
Surge numberFixed , The maximum number of instances that can be created above the specified targetSize during the update process. Conflicts with
max_surge_percent. It has to be either 0 or at least equal to the number of zones. If fixed values are used, at least one ofmax_unavailable_fixedormax_surge_fixedmust be greater than 0.- max
Surge numberPercent , The maximum number of instances(calculated as percentage) that can be created above the specified targetSize during the update process. Conflicts with
max_surge_fixed. Percent value is only allowed for regional managed instance groups with size at least 10.- number
, The maximum number of instances that can be unavailable during the update process. Conflicts with
max_unavailable_percent. It has to be either 0 or at least equal to the number of zones. If fixed values are used, at least one ofmax_unavailable_fixedormax_surge_fixedmust be greater than 0.- number
, The maximum number of instances(calculated as percentage) that can be unavailable during the update process. Conflicts with
max_unavailable_fixed. Percent value is only allowed for regional managed instance groups with size at least 10.- min
Ready numberSec , Minimum number of seconds to wait for after a newly created instance becomes available. This value must be from range [0, 3600]
- minimal_
action str - Minimal action to be taken on an instance. You can specify either
RESTARTto restart existing instances orREPLACEto delete and create new instances from the target template. If you specify aRESTART, the Updater will attempt to perform that action only. However, if the Updater determines that the minimal action you specify is not enough to perform the update, it might perform a more disruptive action.
- Minimal action to be taken on an instance. You can specify either
- type str
- The type of update process. You can specify either
PROACTIVEso that the instance group manager proactively executes actions in order to bring instances to their target versions orOPPORTUNISTICso that no action is proactively executed but the update will be performed as part of other actions (for example, resizes or recreateInstances calls).
- The type of update process. You can specify either
- instance
Redistribution strType - The instance redistribution policy for regional managed instance groups. Valid values are:
"PROACTIVE","NONE". IfPROACTIVE(default), the group attempts to maintain an even distribution of VM instances across zones in the region. IfNONE, proactive redistribution is disabled.
- The instance redistribution policy for regional managed instance groups. Valid values are:
- max
Surge floatFixed , The maximum number of instances that can be created above the specified targetSize during the update process. Conflicts with
max_surge_percent. It has to be either 0 or at least equal to the number of zones. If fixed values are used, at least one ofmax_unavailable_fixedormax_surge_fixedmust be greater than 0.- max
Surge floatPercent , The maximum number of instances(calculated as percentage) that can be created above the specified targetSize during the update process. Conflicts with
max_surge_fixed. Percent value is only allowed for regional managed instance groups with size at least 10.- float
, The maximum number of instances that can be unavailable during the update process. Conflicts with
max_unavailable_percent. It has to be either 0 or at least equal to the number of zones. If fixed values are used, at least one ofmax_unavailable_fixedormax_surge_fixedmust be greater than 0.- float
, The maximum number of instances(calculated as percentage) that can be unavailable during the update process. Conflicts with
max_unavailable_fixed. Percent value is only allowed for regional managed instance groups with size at least 10.- min
Ready floatSec , Minimum number of seconds to wait for after a newly created instance becomes available. This value must be from range [0, 3600]
RegionInstanceGroupManagerVersion
- Instance
Template string - The full URL to an instance template from which all new instances of this version will be created.
- Name string
- Version name.
- Target
Size RegionInstance Group Manager Version Target Size Args - The number of instances calculated as a fixed number or a percentage depending on the settings. Structure is documented below.
- Instance
Template string - The full URL to an instance template from which all new instances of this version will be created.
- Name string
- Version name.
- Target
Size RegionInstance Group Manager Version Target Size - The number of instances calculated as a fixed number or a percentage depending on the settings. Structure is documented below.
- instance
Template string - The full URL to an instance template from which all new instances of this version will be created.
- name string
- Version name.
- target
Size RegionInstance Group Manager Version Target Size - The number of instances calculated as a fixed number or a percentage depending on the settings. Structure is documented below.
- instance
Template str - The full URL to an instance template from which all new instances of this version will be created.
- name str
- Version name.
- target_
size Dict[RegionInstance Group Manager Version Target Size] - The number of instances calculated as a fixed number or a percentage depending on the settings. Structure is documented below.
RegionInstanceGroupManagerVersionTargetSize
- Fixed int
, The number of instances which are managed for this version. Conflicts with
percent.- Percent int
, The number of instances (calculated as percentage) which are managed for this version. Conflicts with
fixed. Note that when usingpercent, rounding will be in favor of explicitly settarget_sizevalues; a managed instance group with 2 instances and 2versions, one of which has atarget_size.percentof60will create 2 instances of thatversion.
- Fixed int
, The number of instances which are managed for this version. Conflicts with
percent.- Percent int
, The number of instances (calculated as percentage) which are managed for this version. Conflicts with
fixed. Note that when usingpercent, rounding will be in favor of explicitly settarget_sizevalues; a managed instance group with 2 instances and 2versions, one of which has atarget_size.percentof60will create 2 instances of thatversion.
- fixed number
, The number of instances which are managed for this version. Conflicts with
percent.- percent number
, The number of instances (calculated as percentage) which are managed for this version. Conflicts with
fixed. Note that when usingpercent, rounding will be in favor of explicitly settarget_sizevalues; a managed instance group with 2 instances and 2versions, one of which has atarget_size.percentof60will create 2 instances of thatversion.
- fixed float
, The number of instances which are managed for this version. Conflicts with
percent.- percent float
, The number of instances (calculated as percentage) which are managed for this version. Conflicts with
fixed. Note that when usingpercent, rounding will be in favor of explicitly settarget_sizevalues; a managed instance group with 2 instances and 2versions, one of which has atarget_size.percentof60will create 2 instances of thatversion.
Package Details
- Repository
- https://github.com/pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-betaTerraform Provider.