gcp.compute.InstanceGroupManager
Explore with Pulumi AI
The Google Compute Engine 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.RegionInstanceGroupManager to create a regional (multi-zone) instance group manager.
Example Usage
With Top Level Instance Template (Google
Provider)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var autohealing = new Gcp.Compute.HealthCheck("autohealing", new()
{
CheckIntervalSec = 5,
TimeoutSec = 5,
HealthyThreshold = 2,
UnhealthyThreshold = 10,
HttpHealthCheck = new Gcp.Compute.Inputs.HealthCheckHttpHealthCheckArgs
{
RequestPath = "/healthz",
Port = 8080,
},
});
var appserver = new Gcp.Compute.InstanceGroupManager("appserver", new()
{
BaseInstanceName = "app",
Zone = "us-central1-a",
Versions = new[]
{
new Gcp.Compute.Inputs.InstanceGroupManagerVersionArgs
{
InstanceTemplate = google_compute_instance_template.Appserver.Self_link_unique,
},
},
AllInstancesConfig = new Gcp.Compute.Inputs.InstanceGroupManagerAllInstancesConfigArgs
{
Metadata =
{
{ "metadata_key", "metadata_value" },
},
Labels =
{
{ "label_key", "label_value" },
},
},
TargetPools = new[]
{
google_compute_target_pool.Appserver.Id,
},
TargetSize = 2,
NamedPorts = new[]
{
new Gcp.Compute.Inputs.InstanceGroupManagerNamedPortArgs
{
Name = "customhttp",
Port = 8888,
},
},
AutoHealingPolicies = new Gcp.Compute.Inputs.InstanceGroupManagerAutoHealingPoliciesArgs
{
HealthCheck = autohealing.Id,
InitialDelaySec = 300,
},
});
});
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
autohealing, err := compute.NewHealthCheck(ctx, "autohealing", &compute.HealthCheckArgs{
CheckIntervalSec: pulumi.Int(5),
TimeoutSec: pulumi.Int(5),
HealthyThreshold: pulumi.Int(2),
UnhealthyThreshold: pulumi.Int(10),
HttpHealthCheck: &compute.HealthCheckHttpHealthCheckArgs{
RequestPath: pulumi.String("/healthz"),
Port: pulumi.Int(8080),
},
})
if err != nil {
return err
}
_, err = compute.NewInstanceGroupManager(ctx, "appserver", &compute.InstanceGroupManagerArgs{
BaseInstanceName: pulumi.String("app"),
Zone: pulumi.String("us-central1-a"),
Versions: compute.InstanceGroupManagerVersionArray{
&compute.InstanceGroupManagerVersionArgs{
InstanceTemplate: pulumi.Any(google_compute_instance_template.Appserver.Self_link_unique),
},
},
AllInstancesConfig: &compute.InstanceGroupManagerAllInstancesConfigArgs{
Metadata: pulumi.StringMap{
"metadata_key": pulumi.String("metadata_value"),
},
Labels: pulumi.StringMap{
"label_key": pulumi.String("label_value"),
},
},
TargetPools: pulumi.StringArray{
google_compute_target_pool.Appserver.Id,
},
TargetSize: pulumi.Int(2),
NamedPorts: compute.InstanceGroupManagerNamedPortArray{
&compute.InstanceGroupManagerNamedPortArgs{
Name: pulumi.String("customhttp"),
Port: pulumi.Int(8888),
},
},
AutoHealingPolicies: &compute.InstanceGroupManagerAutoHealingPoliciesArgs{
HealthCheck: autohealing.ID(),
InitialDelaySec: pulumi.Int(300),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.compute.HealthCheck;
import com.pulumi.gcp.compute.HealthCheckArgs;
import com.pulumi.gcp.compute.inputs.HealthCheckHttpHealthCheckArgs;
import com.pulumi.gcp.compute.InstanceGroupManager;
import com.pulumi.gcp.compute.InstanceGroupManagerArgs;
import com.pulumi.gcp.compute.inputs.InstanceGroupManagerVersionArgs;
import com.pulumi.gcp.compute.inputs.InstanceGroupManagerAllInstancesConfigArgs;
import com.pulumi.gcp.compute.inputs.InstanceGroupManagerNamedPortArgs;
import com.pulumi.gcp.compute.inputs.InstanceGroupManagerAutoHealingPoliciesArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var autohealing = new HealthCheck("autohealing", HealthCheckArgs.builder()
.checkIntervalSec(5)
.timeoutSec(5)
.healthyThreshold(2)
.unhealthyThreshold(10)
.httpHealthCheck(HealthCheckHttpHealthCheckArgs.builder()
.requestPath("/healthz")
.port("8080")
.build())
.build());
var appserver = new InstanceGroupManager("appserver", InstanceGroupManagerArgs.builder()
.baseInstanceName("app")
.zone("us-central1-a")
.versions(InstanceGroupManagerVersionArgs.builder()
.instanceTemplate(google_compute_instance_template.appserver().self_link_unique())
.build())
.allInstancesConfig(InstanceGroupManagerAllInstancesConfigArgs.builder()
.metadata(Map.of("metadata_key", "metadata_value"))
.labels(Map.of("label_key", "label_value"))
.build())
.targetPools(google_compute_target_pool.appserver().id())
.targetSize(2)
.namedPorts(InstanceGroupManagerNamedPortArgs.builder()
.name("customhttp")
.port(8888)
.build())
.autoHealingPolicies(InstanceGroupManagerAutoHealingPoliciesArgs.builder()
.healthCheck(autohealing.id())
.initialDelaySec(300)
.build())
.build());
}
}
import pulumi
import pulumi_gcp as gcp
autohealing = gcp.compute.HealthCheck("autohealing",
check_interval_sec=5,
timeout_sec=5,
healthy_threshold=2,
unhealthy_threshold=10,
http_health_check=gcp.compute.HealthCheckHttpHealthCheckArgs(
request_path="/healthz",
port=8080,
))
appserver = gcp.compute.InstanceGroupManager("appserver",
base_instance_name="app",
zone="us-central1-a",
versions=[gcp.compute.InstanceGroupManagerVersionArgs(
instance_template=google_compute_instance_template["appserver"]["self_link_unique"],
)],
all_instances_config=gcp.compute.InstanceGroupManagerAllInstancesConfigArgs(
metadata={
"metadata_key": "metadata_value",
},
labels={
"label_key": "label_value",
},
),
target_pools=[google_compute_target_pool["appserver"]["id"]],
target_size=2,
named_ports=[gcp.compute.InstanceGroupManagerNamedPortArgs(
name="customhttp",
port=8888,
)],
auto_healing_policies=gcp.compute.InstanceGroupManagerAutoHealingPoliciesArgs(
health_check=autohealing.id,
initial_delay_sec=300,
))
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const autohealing = new gcp.compute.HealthCheck("autohealing", {
checkIntervalSec: 5,
timeoutSec: 5,
healthyThreshold: 2,
unhealthyThreshold: 10,
httpHealthCheck: {
requestPath: "/healthz",
port: 8080,
},
});
const appserver = new gcp.compute.InstanceGroupManager("appserver", {
baseInstanceName: "app",
zone: "us-central1-a",
versions: [{
instanceTemplate: google_compute_instance_template.appserver.self_link_unique,
}],
allInstancesConfig: {
metadata: {
metadata_key: "metadata_value",
},
labels: {
label_key: "label_value",
},
},
targetPools: [google_compute_target_pool.appserver.id],
targetSize: 2,
namedPorts: [{
name: "customhttp",
port: 8888,
}],
autoHealingPolicies: {
healthCheck: autohealing.id,
initialDelaySec: 300,
},
});
resources:
autohealing:
type: gcp:compute:HealthCheck
properties:
checkIntervalSec: 5
timeoutSec: 5
healthyThreshold: 2
unhealthyThreshold: 10 # 50 seconds
httpHealthCheck:
requestPath: /healthz
port: '8080'
appserver:
type: gcp:compute:InstanceGroupManager
properties:
baseInstanceName: app
zone: us-central1-a
versions:
- instanceTemplate: ${google_compute_instance_template.appserver.self_link_unique}
allInstancesConfig:
metadata:
metadata_key: metadata_value
labels:
label_key: label_value
targetPools:
- ${google_compute_target_pool.appserver.id}
targetSize: 2
namedPorts:
- name: customhttp
port: 8888
autoHealingPolicies:
healthCheck: ${autohealing.id}
initialDelaySec: 300
With Multiple Versions (Google-Beta
Provider)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var appserver = new Gcp.Compute.InstanceGroupManager("appserver", new()
{
BaseInstanceName = "app",
Zone = "us-central1-a",
TargetSize = 5,
Versions = new[]
{
new Gcp.Compute.Inputs.InstanceGroupManagerVersionArgs
{
Name = "appserver",
InstanceTemplate = google_compute_instance_template.Appserver.Self_link_unique,
},
new Gcp.Compute.Inputs.InstanceGroupManagerVersionArgs
{
Name = "appserver-canary",
InstanceTemplate = google_compute_instance_template.Appserver_canary.Self_link_unique,
TargetSize = new Gcp.Compute.Inputs.InstanceGroupManagerVersionTargetSizeArgs
{
Fixed = 1,
},
},
},
}, new CustomResourceOptions
{
Provider = google_beta,
});
});
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := compute.NewInstanceGroupManager(ctx, "appserver", &compute.InstanceGroupManagerArgs{
BaseInstanceName: pulumi.String("app"),
Zone: pulumi.String("us-central1-a"),
TargetSize: pulumi.Int(5),
Versions: compute.InstanceGroupManagerVersionArray{
&compute.InstanceGroupManagerVersionArgs{
Name: pulumi.String("appserver"),
InstanceTemplate: pulumi.Any(google_compute_instance_template.Appserver.Self_link_unique),
},
&compute.InstanceGroupManagerVersionArgs{
Name: pulumi.String("appserver-canary"),
InstanceTemplate: pulumi.Any(google_compute_instance_template.AppserverCanary.Self_link_unique),
TargetSize: &compute.InstanceGroupManagerVersionTargetSizeArgs{
Fixed: pulumi.Int(1),
},
},
},
}, pulumi.Provider(google_beta))
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.compute.InstanceGroupManager;
import com.pulumi.gcp.compute.InstanceGroupManagerArgs;
import com.pulumi.gcp.compute.inputs.InstanceGroupManagerVersionArgs;
import com.pulumi.gcp.compute.inputs.InstanceGroupManagerVersionTargetSizeArgs;
import com.pulumi.resources.CustomResourceOptions;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var appserver = new InstanceGroupManager("appserver", InstanceGroupManagerArgs.builder()
.baseInstanceName("app")
.zone("us-central1-a")
.targetSize(5)
.versions(
InstanceGroupManagerVersionArgs.builder()
.name("appserver")
.instanceTemplate(google_compute_instance_template.appserver().self_link_unique())
.build(),
InstanceGroupManagerVersionArgs.builder()
.name("appserver-canary")
.instanceTemplate(google_compute_instance_template.appserver-canary().self_link_unique())
.targetSize(InstanceGroupManagerVersionTargetSizeArgs.builder()
.fixed(1)
.build())
.build())
.build(), CustomResourceOptions.builder()
.provider(google_beta)
.build());
}
}
import pulumi
import pulumi_gcp as gcp
appserver = gcp.compute.InstanceGroupManager("appserver",
base_instance_name="app",
zone="us-central1-a",
target_size=5,
versions=[
gcp.compute.InstanceGroupManagerVersionArgs(
name="appserver",
instance_template=google_compute_instance_template["appserver"]["self_link_unique"],
),
gcp.compute.InstanceGroupManagerVersionArgs(
name="appserver-canary",
instance_template=google_compute_instance_template["appserver-canary"]["self_link_unique"],
target_size=gcp.compute.InstanceGroupManagerVersionTargetSizeArgs(
fixed=1,
),
),
],
opts=pulumi.ResourceOptions(provider=google_beta))
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const appserver = new gcp.compute.InstanceGroupManager("appserver", {
baseInstanceName: "app",
zone: "us-central1-a",
targetSize: 5,
versions: [
{
name: "appserver",
instanceTemplate: google_compute_instance_template.appserver.self_link_unique,
},
{
name: "appserver-canary",
instanceTemplate: google_compute_instance_template["appserver-canary"].self_link_unique,
targetSize: {
fixed: 1,
},
},
],
}, {
provider: google_beta,
});
resources:
appserver:
type: gcp:compute:InstanceGroupManager
properties:
baseInstanceName: app
zone: us-central1-a
targetSize: 5
versions:
- name: appserver
instanceTemplate: ${google_compute_instance_template.appserver.self_link_unique}
- name: appserver-canary
instanceTemplate: ${google_compute_instance_template"appserver-canary"[%!s(MISSING)].self_link_unique}
targetSize:
fixed: 1
options:
provider: ${["google-beta"]}
Create InstanceGroupManager Resource
new InstanceGroupManager(name: string, args: InstanceGroupManagerArgs, opts?: CustomResourceOptions);
@overload
def InstanceGroupManager(resource_name: str,
opts: Optional[ResourceOptions] = None,
all_instances_config: Optional[InstanceGroupManagerAllInstancesConfigArgs] = None,
auto_healing_policies: Optional[InstanceGroupManagerAutoHealingPoliciesArgs] = None,
base_instance_name: Optional[str] = None,
description: Optional[str] = None,
instance_lifecycle_policy: Optional[InstanceGroupManagerInstanceLifecyclePolicyArgs] = None,
list_managed_instances_results: Optional[str] = None,
name: Optional[str] = None,
named_ports: Optional[Sequence[InstanceGroupManagerNamedPortArgs]] = None,
project: Optional[str] = None,
stateful_disks: Optional[Sequence[InstanceGroupManagerStatefulDiskArgs]] = None,
stateful_external_ips: Optional[Sequence[InstanceGroupManagerStatefulExternalIpArgs]] = None,
stateful_internal_ips: Optional[Sequence[InstanceGroupManagerStatefulInternalIpArgs]] = None,
target_pools: Optional[Sequence[str]] = None,
target_size: Optional[int] = None,
update_policy: Optional[InstanceGroupManagerUpdatePolicyArgs] = None,
versions: Optional[Sequence[InstanceGroupManagerVersionArgs]] = None,
wait_for_instances: Optional[bool] = None,
wait_for_instances_status: Optional[str] = None,
zone: Optional[str] = None)
@overload
def InstanceGroupManager(resource_name: str,
args: InstanceGroupManagerArgs,
opts: Optional[ResourceOptions] = None)
func NewInstanceGroupManager(ctx *Context, name string, args InstanceGroupManagerArgs, opts ...ResourceOption) (*InstanceGroupManager, error)
public InstanceGroupManager(string name, InstanceGroupManagerArgs args, CustomResourceOptions? opts = null)
public InstanceGroupManager(String name, InstanceGroupManagerArgs args)
public InstanceGroupManager(String name, InstanceGroupManagerArgs args, CustomResourceOptions options)
type: gcp:compute:InstanceGroupManager
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InstanceGroupManagerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args InstanceGroupManagerArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args InstanceGroupManagerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InstanceGroupManagerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InstanceGroupManagerArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
InstanceGroupManager Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The InstanceGroupManager 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.
- Versions
List<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.
- All
Instances InstanceConfig Group Manager All Instances Config ) Properties to set on all instances in the group. After setting allInstancesConfig on the group, you must update the group's instances to apply the configuration.
- Auto
Healing InstancePolicies 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.
- Instance
Lifecycle InstancePolicy Group Manager Instance Lifecycle Policy The instance lifecycle policy for this managed instance group.
- List
Managed stringInstances Results Pagination behavior of the
listManagedInstances
API method for this managed instance group. Valid values are:PAGELESS
,PAGINATED
. IfPAGELESS
(default), Pagination is disabled for the group'slistManagedInstances
API method.maxResults
andpageToken
query parameters are ignored and all instances are returned in a single response. IfPAGINATED
, pagination is enabled,maxResults
andpageToken
query parameters are respected.- Name string
The name of the instance group manager. Must be 1-63 characters long and comply with RFC1035. Supported characters include lowercase letters, numbers, and hyphens.
- Named
Ports List<InstanceGroup 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 List<InstanceGroup 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.
- Stateful
External List<InstanceIps Group Manager Stateful External Ip> External network IPs assigned to the instances that will be preserved on instance delete, update, etc. This map is keyed with the network interface name. Structure is documented below.
- Stateful
Internal List<InstanceIps Group Manager Stateful Internal Ip> Internal network IPs assigned to the instances that will be preserved on instance delete, update, etc. This map is keyed with the network interface name. Structure is documented below.
- 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 target number of running instances for this managed instance group. This value should always be explicitly set unless this resource is attached to an autoscaler, in which case it should never be set. Defaults to 0.
- Update
Policy InstanceGroup 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, this provider will continue trying until it times out.
- Wait
For stringInstances Status When used with
wait_for_instances
it specifies the status to wait for. WhenSTABLE
is specified this resource will wait until the instances are stable before returning. WhenUPDATED
is set, it will wait for the version target to be reached and any per instance configs to be effective as well as all instances to be stable before returning. The possible values areSTABLE
andUPDATED
- Zone string
The zone that instances in this group should be created in.
- 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.
- Versions
[]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.
- All
Instances InstanceConfig Group Manager All Instances Config Args ) Properties to set on all instances in the group. After setting allInstancesConfig on the group, you must update the group's instances to apply the configuration.
- Auto
Healing InstancePolicies 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.
- Instance
Lifecycle InstancePolicy Group Manager Instance Lifecycle Policy Args The instance lifecycle policy for this managed instance group.
- List
Managed stringInstances Results Pagination behavior of the
listManagedInstances
API method for this managed instance group. Valid values are:PAGELESS
,PAGINATED
. IfPAGELESS
(default), Pagination is disabled for the group'slistManagedInstances
API method.maxResults
andpageToken
query parameters are ignored and all instances are returned in a single response. IfPAGINATED
, pagination is enabled,maxResults
andpageToken
query parameters are respected.- Name string
The name of the instance group manager. Must be 1-63 characters long and comply with RFC1035. Supported characters include lowercase letters, numbers, and hyphens.
- Named
Ports []InstanceGroup 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 []InstanceGroup 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.
- Stateful
External []InstanceIps Group Manager Stateful External Ip Args External network IPs assigned to the instances that will be preserved on instance delete, update, etc. This map is keyed with the network interface name. Structure is documented below.
- Stateful
Internal []InstanceIps Group Manager Stateful Internal Ip Args Internal network IPs assigned to the instances that will be preserved on instance delete, update, etc. This map is keyed with the network interface name. Structure is documented below.
- 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 target number of running instances for this managed instance group. This value should always be explicitly set unless this resource is attached to an autoscaler, in which case it should never be set. Defaults to 0.
- Update
Policy InstanceGroup 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, this provider will continue trying until it times out.
- Wait
For stringInstances Status When used with
wait_for_instances
it specifies the status to wait for. WhenSTABLE
is specified this resource will wait until the instances are stable before returning. WhenUPDATED
is set, it will wait for the version target to be reached and any per instance configs to be effective as well as all instances to be stable before returning. The possible values areSTABLE
andUPDATED
- Zone string
The zone that instances in this group should be created in.
- 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.
- versions
List<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.
- all
Instances InstanceConfig Group Manager All Instances Config ) Properties to set on all instances in the group. After setting allInstancesConfig on the group, you must update the group's instances to apply the configuration.
- auto
Healing InstancePolicies 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.
- instance
Lifecycle InstancePolicy Group Manager Instance Lifecycle Policy The instance lifecycle policy for this managed instance group.
- list
Managed StringInstances Results Pagination behavior of the
listManagedInstances
API method for this managed instance group. Valid values are:PAGELESS
,PAGINATED
. IfPAGELESS
(default), Pagination is disabled for the group'slistManagedInstances
API method.maxResults
andpageToken
query parameters are ignored and all instances are returned in a single response. IfPAGINATED
, pagination is enabled,maxResults
andpageToken
query parameters are respected.- name String
The name of the instance group manager. Must be 1-63 characters long and comply with RFC1035. Supported characters include lowercase letters, numbers, and hyphens.
- named
Ports List<InstanceGroup 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 List<InstanceGroup 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.
- stateful
External List<InstanceIps Group Manager Stateful External Ip> External network IPs assigned to the instances that will be preserved on instance delete, update, etc. This map is keyed with the network interface name. Structure is documented below.
- stateful
Internal List<InstanceIps Group Manager Stateful Internal Ip> Internal network IPs assigned to the instances that will be preserved on instance delete, update, etc. This map is keyed with the network interface name. Structure is documented below.
- 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 Integer The target number of running instances for this managed instance group. This value should always be explicitly set unless this resource is attached to an autoscaler, in which case it should never be set. Defaults to 0.
- update
Policy InstanceGroup 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, this provider will continue trying until it times out.
- wait
For StringInstances Status When used with
wait_for_instances
it specifies the status to wait for. WhenSTABLE
is specified this resource will wait until the instances are stable before returning. WhenUPDATED
is set, it will wait for the version target to be reached and any per instance configs to be effective as well as all instances to be stable before returning. The possible values areSTABLE
andUPDATED
- zone String
The zone that instances in this group should be created in.
- 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.
- versions
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.
- all
Instances InstanceConfig Group Manager All Instances Config ) Properties to set on all instances in the group. After setting allInstancesConfig on the group, you must update the group's instances to apply the configuration.
- auto
Healing InstancePolicies 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.
- instance
Lifecycle InstancePolicy Group Manager Instance Lifecycle Policy The instance lifecycle policy for this managed instance group.
- list
Managed stringInstances Results Pagination behavior of the
listManagedInstances
API method for this managed instance group. Valid values are:PAGELESS
,PAGINATED
. IfPAGELESS
(default), Pagination is disabled for the group'slistManagedInstances
API method.maxResults
andpageToken
query parameters are ignored and all instances are returned in a single response. IfPAGINATED
, pagination is enabled,maxResults
andpageToken
query parameters are respected.- name string
The name of the instance group manager. Must be 1-63 characters long and comply with RFC1035. Supported characters include lowercase letters, numbers, and hyphens.
- named
Ports InstanceGroup 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 InstanceGroup 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.
- stateful
External InstanceIps Group Manager Stateful External Ip[] External network IPs assigned to the instances that will be preserved on instance delete, update, etc. This map is keyed with the network interface name. Structure is documented below.
- stateful
Internal InstanceIps Group Manager Stateful Internal Ip[] Internal network IPs assigned to the instances that will be preserved on instance delete, update, etc. This map is keyed with the network interface name. Structure is documented below.
- 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 target number of running instances for this managed instance group. This value should always be explicitly set unless this resource is attached to an autoscaler, in which case it should never be set. Defaults to 0.
- update
Policy InstanceGroup 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, this provider will continue trying until it times out.
- wait
For stringInstances Status When used with
wait_for_instances
it specifies the status to wait for. WhenSTABLE
is specified this resource will wait until the instances are stable before returning. WhenUPDATED
is set, it will wait for the version target to be reached and any per instance configs to be effective as well as all instances to be stable before returning. The possible values areSTABLE
andUPDATED
- zone string
The zone that instances in this group should be created in.
- 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.
- versions
Sequence[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.
- all_
instances_ Instanceconfig Group Manager All Instances Config Args ) Properties to set on all instances in the group. After setting allInstancesConfig on the group, you must update the group's instances to apply the configuration.
- auto_
healing_ Instancepolicies 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 str
An optional textual description of the instance group manager.
- instance_
lifecycle_ Instancepolicy Group Manager Instance Lifecycle Policy Args The instance lifecycle policy for this managed instance group.
- list_
managed_ strinstances_ results Pagination behavior of the
listManagedInstances
API method for this managed instance group. Valid values are:PAGELESS
,PAGINATED
. IfPAGELESS
(default), Pagination is disabled for the group'slistManagedInstances
API method.maxResults
andpageToken
query parameters are ignored and all instances are returned in a single response. IfPAGINATED
, pagination is enabled,maxResults
andpageToken
query parameters are respected.- name str
The name of the instance group manager. Must be 1-63 characters long and comply with RFC1035. Supported characters include lowercase letters, numbers, and hyphens.
- named_
ports Sequence[InstanceGroup Manager Named Port Args] 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 Sequence[InstanceGroup 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.
- stateful_
external_ Sequence[Instanceips Group Manager Stateful External Ip Args] External network IPs assigned to the instances that will be preserved on instance delete, update, etc. This map is keyed with the network interface name. Structure is documented below.
- stateful_
internal_ Sequence[Instanceips Group Manager Stateful Internal Ip Args] Internal network IPs assigned to the instances that will be preserved on instance delete, update, etc. This map is keyed with the network interface name. Structure is documented below.
- target_
pools Sequence[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 int The target number of running instances for this managed instance group. This value should always be explicitly set unless this resource is attached to an autoscaler, in which case it should never be set. Defaults to 0.
- update_
policy InstanceGroup 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, this provider will continue trying until it times out.
- wait_
for_ strinstances_ status When used with
wait_for_instances
it specifies the status to wait for. WhenSTABLE
is specified this resource will wait until the instances are stable before returning. WhenUPDATED
is set, it will wait for the version target to be reached and any per instance configs to be effective as well as all instances to be stable before returning. The possible values areSTABLE
andUPDATED
- zone str
The zone that instances in this group should be created in.
- 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.
- versions List<Property Map>
Application versions managed by this instance group. Each version deals with a specific instance template, allowing canary release scenarios. Structure is documented below.
- all
Instances Property MapConfig ) Properties to set on all instances in the group. After setting allInstancesConfig on the group, you must update the group's instances to apply the configuration.
- auto
Healing Property MapPolicies 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.
- instance
Lifecycle Property MapPolicy The instance lifecycle policy for this managed instance group.
- list
Managed StringInstances Results Pagination behavior of the
listManagedInstances
API method for this managed instance group. Valid values are:PAGELESS
,PAGINATED
. IfPAGELESS
(default), Pagination is disabled for the group'slistManagedInstances
API method.maxResults
andpageToken
query parameters are ignored and all instances are returned in a single response. IfPAGINATED
, pagination is enabled,maxResults
andpageToken
query parameters are respected.- name String
The name of the instance group manager. Must be 1-63 characters long and comply with RFC1035. Supported characters include lowercase letters, numbers, and hyphens.
- named
Ports List<Property Map> 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<Property Map> 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.
- stateful
External List<Property Map>Ips External network IPs assigned to the instances that will be preserved on instance delete, update, etc. This map is keyed with the network interface name. Structure is documented below.
- stateful
Internal List<Property Map>Ips Internal network IPs assigned to the instances that will be preserved on instance delete, update, etc. This map is keyed with the network interface name. Structure is documented below.
- 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 Number The target number of running instances for this managed instance group. This value should always be explicitly set unless this resource is attached to an autoscaler, in which case it should never be set. Defaults to 0.
- update
Policy Property Map 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, this provider will continue trying until it times out.
- wait
For StringInstances Status When used with
wait_for_instances
it specifies the status to wait for. WhenSTABLE
is specified this resource will wait until the instances are stable before returning. WhenUPDATED
is set, it will wait for the version target to be reached and any per instance configs to be effective as well as all instances to be stable before returning. The possible values areSTABLE
andUPDATED
- zone String
The zone that instances in this group should be created in.
Outputs
All input properties are implicitly available as output properties. Additionally, the InstanceGroupManager 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.
- Operation string
- Self
Link string The URL of the created resource.
- Statuses
List<Instance
Group Manager Status> The status of this managed instance group.
- 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.
- Operation string
- Self
Link string The URL of the created resource.
- Statuses
[]Instance
Group Manager Status The status of this managed instance group.
- 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.
- operation String
- self
Link String The URL of the created resource.
- statuses
List<Instance
Group Manager Status> The status of this managed instance group.
- 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.
- operation string
- self
Link string The URL of the created resource.
- statuses
Instance
Group Manager Status[] The status of this managed instance group.
- 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.
- operation str
- self_
link str The URL of the created resource.
- statuses
Sequence[Instance
Group Manager Status] The status of this managed instance group.
- 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.
- operation String
- self
Link String The URL of the created resource.
- statuses List<Property Map>
The status of this managed instance group.
Look up Existing InstanceGroupManager Resource
Get an existing InstanceGroupManager 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?: InstanceGroupManagerState, opts?: CustomResourceOptions): InstanceGroupManager
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
all_instances_config: Optional[InstanceGroupManagerAllInstancesConfigArgs] = None,
auto_healing_policies: Optional[InstanceGroupManagerAutoHealingPoliciesArgs] = None,
base_instance_name: Optional[str] = None,
description: Optional[str] = None,
fingerprint: Optional[str] = None,
instance_group: Optional[str] = None,
instance_lifecycle_policy: Optional[InstanceGroupManagerInstanceLifecyclePolicyArgs] = None,
list_managed_instances_results: Optional[str] = None,
name: Optional[str] = None,
named_ports: Optional[Sequence[InstanceGroupManagerNamedPortArgs]] = None,
operation: Optional[str] = None,
project: Optional[str] = None,
self_link: Optional[str] = None,
stateful_disks: Optional[Sequence[InstanceGroupManagerStatefulDiskArgs]] = None,
stateful_external_ips: Optional[Sequence[InstanceGroupManagerStatefulExternalIpArgs]] = None,
stateful_internal_ips: Optional[Sequence[InstanceGroupManagerStatefulInternalIpArgs]] = None,
statuses: Optional[Sequence[InstanceGroupManagerStatusArgs]] = None,
target_pools: Optional[Sequence[str]] = None,
target_size: Optional[int] = None,
update_policy: Optional[InstanceGroupManagerUpdatePolicyArgs] = None,
versions: Optional[Sequence[InstanceGroupManagerVersionArgs]] = None,
wait_for_instances: Optional[bool] = None,
wait_for_instances_status: Optional[str] = None,
zone: Optional[str] = None) -> InstanceGroupManager
func GetInstanceGroupManager(ctx *Context, name string, id IDInput, state *InstanceGroupManagerState, opts ...ResourceOption) (*InstanceGroupManager, error)
public static InstanceGroupManager Get(string name, Input<string> id, InstanceGroupManagerState? state, CustomResourceOptions? opts = null)
public static InstanceGroupManager get(String name, Output<String> id, InstanceGroupManagerState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- 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.
- All
Instances InstanceConfig Group Manager All Instances Config ) Properties to set on all instances in the group. After setting allInstancesConfig on the group, you must update the group's instances to apply the configuration.
- Auto
Healing InstancePolicies 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.
- Fingerprint string
The fingerprint of the instance group manager.
- Instance
Group string The full URL of the instance group created by the manager.
- Instance
Lifecycle InstancePolicy Group Manager Instance Lifecycle Policy The instance lifecycle policy for this managed instance group.
- List
Managed stringInstances Results Pagination behavior of the
listManagedInstances
API method for this managed instance group. Valid values are:PAGELESS
,PAGINATED
. IfPAGELESS
(default), Pagination is disabled for the group'slistManagedInstances
API method.maxResults
andpageToken
query parameters are ignored and all instances are returned in a single response. IfPAGINATED
, pagination is enabled,maxResults
andpageToken
query parameters are respected.- Name string
The name of the instance group manager. Must be 1-63 characters long and comply with RFC1035. Supported characters include lowercase letters, numbers, and hyphens.
- Named
Ports List<InstanceGroup Manager Named Port> The named port configuration. See the section below for details on configuration.
- Operation string
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Self
Link string The URL of the created resource.
- Stateful
Disks List<InstanceGroup 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.
- Stateful
External List<InstanceIps Group Manager Stateful External Ip> External network IPs assigned to the instances that will be preserved on instance delete, update, etc. This map is keyed with the network interface name. Structure is documented below.
- Stateful
Internal List<InstanceIps Group Manager Stateful Internal Ip> Internal network IPs assigned to the instances that will be preserved on instance delete, update, etc. This map is keyed with the network interface name. Structure is documented below.
- Statuses
List<Instance
Group Manager Status> The status of this managed instance group.
- 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 target number of running instances for this managed instance group. This value should always be explicitly set unless this resource is attached to an autoscaler, in which case it should never be set. Defaults to 0.
- Update
Policy InstanceGroup 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<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, this provider will continue trying until it times out.
- Wait
For stringInstances Status When used with
wait_for_instances
it specifies the status to wait for. WhenSTABLE
is specified this resource will wait until the instances are stable before returning. WhenUPDATED
is set, it will wait for the version target to be reached and any per instance configs to be effective as well as all instances to be stable before returning. The possible values areSTABLE
andUPDATED
- Zone string
The zone that instances in this group should be created in.
- All
Instances InstanceConfig Group Manager All Instances Config Args ) Properties to set on all instances in the group. After setting allInstancesConfig on the group, you must update the group's instances to apply the configuration.
- Auto
Healing InstancePolicies 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.
- Fingerprint string
The fingerprint of the instance group manager.
- Instance
Group string The full URL of the instance group created by the manager.
- Instance
Lifecycle InstancePolicy Group Manager Instance Lifecycle Policy Args The instance lifecycle policy for this managed instance group.
- List
Managed stringInstances Results Pagination behavior of the
listManagedInstances
API method for this managed instance group. Valid values are:PAGELESS
,PAGINATED
. IfPAGELESS
(default), Pagination is disabled for the group'slistManagedInstances
API method.maxResults
andpageToken
query parameters are ignored and all instances are returned in a single response. IfPAGINATED
, pagination is enabled,maxResults
andpageToken
query parameters are respected.- Name string
The name of the instance group manager. Must be 1-63 characters long and comply with RFC1035. Supported characters include lowercase letters, numbers, and hyphens.
- Named
Ports []InstanceGroup Manager Named Port Args The named port configuration. See the section below for details on configuration.
- Operation string
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Self
Link string The URL of the created resource.
- Stateful
Disks []InstanceGroup 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.
- Stateful
External []InstanceIps Group Manager Stateful External Ip Args External network IPs assigned to the instances that will be preserved on instance delete, update, etc. This map is keyed with the network interface name. Structure is documented below.
- Stateful
Internal []InstanceIps Group Manager Stateful Internal Ip Args Internal network IPs assigned to the instances that will be preserved on instance delete, update, etc. This map is keyed with the network interface name. Structure is documented below.
- Statuses
[]Instance
Group Manager Status Args The status of this managed instance group.
- 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 target number of running instances for this managed instance group. This value should always be explicitly set unless this resource is attached to an autoscaler, in which case it should never be set. Defaults to 0.
- Update
Policy InstanceGroup 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
[]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, this provider will continue trying until it times out.
- Wait
For stringInstances Status When used with
wait_for_instances
it specifies the status to wait for. WhenSTABLE
is specified this resource will wait until the instances are stable before returning. WhenUPDATED
is set, it will wait for the version target to be reached and any per instance configs to be effective as well as all instances to be stable before returning. The possible values areSTABLE
andUPDATED
- Zone string
The zone that instances in this group should be created in.
- all
Instances InstanceConfig Group Manager All Instances Config ) Properties to set on all instances in the group. After setting allInstancesConfig on the group, you must update the group's instances to apply the configuration.
- auto
Healing InstancePolicies 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.
- fingerprint String
The fingerprint of the instance group manager.
- instance
Group String The full URL of the instance group created by the manager.
- instance
Lifecycle InstancePolicy Group Manager Instance Lifecycle Policy The instance lifecycle policy for this managed instance group.
- list
Managed StringInstances Results Pagination behavior of the
listManagedInstances
API method for this managed instance group. Valid values are:PAGELESS
,PAGINATED
. IfPAGELESS
(default), Pagination is disabled for the group'slistManagedInstances
API method.maxResults
andpageToken
query parameters are ignored and all instances are returned in a single response. IfPAGINATED
, pagination is enabled,maxResults
andpageToken
query parameters are respected.- name String
The name of the instance group manager. Must be 1-63 characters long and comply with RFC1035. Supported characters include lowercase letters, numbers, and hyphens.
- named
Ports List<InstanceGroup Manager Named Port> The named port configuration. See the section below for details on configuration.
- operation String
- project String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- self
Link String The URL of the created resource.
- stateful
Disks List<InstanceGroup 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.
- stateful
External List<InstanceIps Group Manager Stateful External Ip> External network IPs assigned to the instances that will be preserved on instance delete, update, etc. This map is keyed with the network interface name. Structure is documented below.
- stateful
Internal List<InstanceIps Group Manager Stateful Internal Ip> Internal network IPs assigned to the instances that will be preserved on instance delete, update, etc. This map is keyed with the network interface name. Structure is documented below.
- statuses
List<Instance
Group Manager Status> The status of this managed instance group.
- 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 Integer The target number of running instances for this managed instance group. This value should always be explicitly set unless this resource is attached to an autoscaler, in which case it should never be set. Defaults to 0.
- update
Policy InstanceGroup 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<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, this provider will continue trying until it times out.
- wait
For StringInstances Status When used with
wait_for_instances
it specifies the status to wait for. WhenSTABLE
is specified this resource will wait until the instances are stable before returning. WhenUPDATED
is set, it will wait for the version target to be reached and any per instance configs to be effective as well as all instances to be stable before returning. The possible values areSTABLE
andUPDATED
- zone String
The zone that instances in this group should be created in.
- all
Instances InstanceConfig Group Manager All Instances Config ) Properties to set on all instances in the group. After setting allInstancesConfig on the group, you must update the group's instances to apply the configuration.
- auto
Healing InstancePolicies 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.
- fingerprint string
The fingerprint of the instance group manager.
- instance
Group string The full URL of the instance group created by the manager.
- instance
Lifecycle InstancePolicy Group Manager Instance Lifecycle Policy The instance lifecycle policy for this managed instance group.
- list
Managed stringInstances Results Pagination behavior of the
listManagedInstances
API method for this managed instance group. Valid values are:PAGELESS
,PAGINATED
. IfPAGELESS
(default), Pagination is disabled for the group'slistManagedInstances
API method.maxResults
andpageToken
query parameters are ignored and all instances are returned in a single response. IfPAGINATED
, pagination is enabled,maxResults
andpageToken
query parameters are respected.- name string
The name of the instance group manager. Must be 1-63 characters long and comply with RFC1035. Supported characters include lowercase letters, numbers, and hyphens.
- named
Ports InstanceGroup Manager Named Port[] The named port configuration. See the section below for details on configuration.
- operation string
- project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- self
Link string The URL of the created resource.
- stateful
Disks InstanceGroup 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.
- stateful
External InstanceIps Group Manager Stateful External Ip[] External network IPs assigned to the instances that will be preserved on instance delete, update, etc. This map is keyed with the network interface name. Structure is documented below.
- stateful
Internal InstanceIps Group Manager Stateful Internal Ip[] Internal network IPs assigned to the instances that will be preserved on instance delete, update, etc. This map is keyed with the network interface name. Structure is documented below.
- statuses
Instance
Group Manager Status[] The status of this managed instance group.
- 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 target number of running instances for this managed instance group. This value should always be explicitly set unless this resource is attached to an autoscaler, in which case it should never be set. Defaults to 0.
- update
Policy InstanceGroup 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
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, this provider will continue trying until it times out.
- wait
For stringInstances Status When used with
wait_for_instances
it specifies the status to wait for. WhenSTABLE
is specified this resource will wait until the instances are stable before returning. WhenUPDATED
is set, it will wait for the version target to be reached and any per instance configs to be effective as well as all instances to be stable before returning. The possible values areSTABLE
andUPDATED
- zone string
The zone that instances in this group should be created in.
- all_
instances_ Instanceconfig Group Manager All Instances Config Args ) Properties to set on all instances in the group. After setting allInstancesConfig on the group, you must update the group's instances to apply the configuration.
- auto_
healing_ Instancepolicies 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_ 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.
- fingerprint str
The fingerprint of the instance group manager.
- instance_
group str The full URL of the instance group created by the manager.
- instance_
lifecycle_ Instancepolicy Group Manager Instance Lifecycle Policy Args The instance lifecycle policy for this managed instance group.
- list_
managed_ strinstances_ results Pagination behavior of the
listManagedInstances
API method for this managed instance group. Valid values are:PAGELESS
,PAGINATED
. IfPAGELESS
(default), Pagination is disabled for the group'slistManagedInstances
API method.maxResults
andpageToken
query parameters are ignored and all instances are returned in a single response. IfPAGINATED
, pagination is enabled,maxResults
andpageToken
query parameters are respected.- name str
The name of the instance group manager. Must be 1-63 characters long and comply with RFC1035. Supported characters include lowercase letters, numbers, and hyphens.
- named_
ports Sequence[InstanceGroup Manager Named Port Args] The named port configuration. See the section below for details on configuration.
- operation str
- project str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- self_
link str The URL of the created resource.
- stateful_
disks Sequence[InstanceGroup 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.
- stateful_
external_ Sequence[Instanceips Group Manager Stateful External Ip Args] External network IPs assigned to the instances that will be preserved on instance delete, update, etc. This map is keyed with the network interface name. Structure is documented below.
- stateful_
internal_ Sequence[Instanceips Group Manager Stateful Internal Ip Args] Internal network IPs assigned to the instances that will be preserved on instance delete, update, etc. This map is keyed with the network interface name. Structure is documented below.
- statuses
Sequence[Instance
Group Manager Status Args] The status of this managed instance group.
- target_
pools Sequence[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 int The target number of running instances for this managed instance group. This value should always be explicitly set unless this resource is attached to an autoscaler, in which case it should never be set. Defaults to 0.
- update_
policy InstanceGroup 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
Sequence[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, this provider will continue trying until it times out.
- wait_
for_ strinstances_ status When used with
wait_for_instances
it specifies the status to wait for. WhenSTABLE
is specified this resource will wait until the instances are stable before returning. WhenUPDATED
is set, it will wait for the version target to be reached and any per instance configs to be effective as well as all instances to be stable before returning. The possible values areSTABLE
andUPDATED
- zone str
The zone that instances in this group should be created in.
- all
Instances Property MapConfig ) Properties to set on all instances in the group. After setting allInstancesConfig on the group, you must update the group's instances to apply the configuration.
- auto
Healing Property MapPolicies 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.
- fingerprint String
The fingerprint of the instance group manager.
- instance
Group String The full URL of the instance group created by the manager.
- instance
Lifecycle Property MapPolicy The instance lifecycle policy for this managed instance group.
- list
Managed StringInstances Results Pagination behavior of the
listManagedInstances
API method for this managed instance group. Valid values are:PAGELESS
,PAGINATED
. IfPAGELESS
(default), Pagination is disabled for the group'slistManagedInstances
API method.maxResults
andpageToken
query parameters are ignored and all instances are returned in a single response. IfPAGINATED
, pagination is enabled,maxResults
andpageToken
query parameters are respected.- name String
The name of the instance group manager. Must be 1-63 characters long and comply with RFC1035. Supported characters include lowercase letters, numbers, and hyphens.
- named
Ports List<Property Map> The named port configuration. See the section below for details on configuration.
- operation String
- project String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- self
Link String The URL of the created resource.
- stateful
Disks List<Property Map> 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.
- stateful
External List<Property Map>Ips External network IPs assigned to the instances that will be preserved on instance delete, update, etc. This map is keyed with the network interface name. Structure is documented below.
- stateful
Internal List<Property Map>Ips Internal network IPs assigned to the instances that will be preserved on instance delete, update, etc. This map is keyed with the network interface name. Structure is documented below.
- statuses List<Property Map>
The status of this managed instance group.
- 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 Number The target number of running instances for this managed instance group. This value should always be explicitly set unless this resource is attached to an autoscaler, in which case it should never be set. Defaults to 0.
- update
Policy Property Map The update policy for this managed instance group. Structure is documented below. For more information, see the official documentation and API
- versions List<Property Map>
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, this provider will continue trying until it times out.
- wait
For StringInstances Status When used with
wait_for_instances
it specifies the status to wait for. WhenSTABLE
is specified this resource will wait until the instances are stable before returning. WhenUPDATED
is set, it will wait for the version target to be reached and any per instance configs to be effective as well as all instances to be stable before returning. The possible values areSTABLE
andUPDATED
- zone String
The zone that instances in this group should be created in.
Supporting Types
InstanceGroupManagerAllInstancesConfig, InstanceGroupManagerAllInstancesConfigArgs
- Labels Dictionary<string, string>
), The label key-value pairs that you want to patch onto the instance.
- Metadata Dictionary<string, string>
), The metadata key-value pairs that you want to patch onto the instance. For more information, see Project and instance metadata.
- Labels map[string]string
), The label key-value pairs that you want to patch onto the instance.
- Metadata map[string]string
), The metadata key-value pairs that you want to patch onto the instance. For more information, see Project and instance metadata.
- labels Map<String,String>
), The label key-value pairs that you want to patch onto the instance.
- metadata Map<String,String>
), The metadata key-value pairs that you want to patch onto the instance. For more information, see Project and instance metadata.
- labels {[key: string]: string}
), The label key-value pairs that you want to patch onto the instance.
- metadata {[key: string]: string}
), The metadata key-value pairs that you want to patch onto the instance. For more information, see Project and instance metadata.
- labels Mapping[str, str]
), The label key-value pairs that you want to patch onto the instance.
- metadata Mapping[str, str]
), The metadata key-value pairs that you want to patch onto the instance. For more information, see Project and instance metadata.
- labels Map<String>
), The label key-value pairs that you want to patch onto the instance.
- metadata Map<String>
), The metadata key-value pairs that you want to patch onto the instance. For more information, see Project and instance metadata.
InstanceGroupManagerAutoHealingPolicies, InstanceGroupManagerAutoHealingPoliciesArgs
- 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 IntegerSec 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_ 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.
InstanceGroupManagerInstanceLifecyclePolicy, InstanceGroupManagerInstanceLifecyclePolicyArgs
- Force
Update stringOn Repair ), Specifies whether to apply the group's latest configuration when repairing a VM. Valid options are:
YES
,NO
. IfYES
and you updated the group's instance template or per-instance configurations after the VM was created, then these changes are applied when VM is repaired. IfNO
(default), then updates are applied in accordance with the group's update policy type.
- Force
Update stringOn Repair ), Specifies whether to apply the group's latest configuration when repairing a VM. Valid options are:
YES
,NO
. IfYES
and you updated the group's instance template or per-instance configurations after the VM was created, then these changes are applied when VM is repaired. IfNO
(default), then updates are applied in accordance with the group's update policy type.
- force
Update StringOn Repair ), Specifies whether to apply the group's latest configuration when repairing a VM. Valid options are:
YES
,NO
. IfYES
and you updated the group's instance template or per-instance configurations after the VM was created, then these changes are applied when VM is repaired. IfNO
(default), then updates are applied in accordance with the group's update policy type.
- force
Update stringOn Repair ), Specifies whether to apply the group's latest configuration when repairing a VM. Valid options are:
YES
,NO
. IfYES
and you updated the group's instance template or per-instance configurations after the VM was created, then these changes are applied when VM is repaired. IfNO
(default), then updates are applied in accordance with the group's update policy type.
- force_
update_ stron_ repair ), Specifies whether to apply the group's latest configuration when repairing a VM. Valid options are:
YES
,NO
. IfYES
and you updated the group's instance template or per-instance configurations after the VM was created, then these changes are applied when VM is repaired. IfNO
(default), then updates are applied in accordance with the group's update policy type.
- force
Update StringOn Repair ), Specifies whether to apply the group's latest configuration when repairing a VM. Valid options are:
YES
,NO
. IfYES
and you updated the group's instance template or per-instance configurations after the VM was created, then these changes are applied when VM is repaired. IfNO
(default), then updates are applied in accordance with the group's update policy type.
InstanceGroupManagerNamedPort, InstanceGroupManagerNamedPortArgs
InstanceGroupManagerStatefulDisk, InstanceGroupManagerStatefulDiskArgs
- 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
NEVER
andON_PERMANENT_INSTANCE_DELETION
.NEVER
- detach the disk when the VM is deleted, but do not delete the disk.ON_PERMANENT_INSTANCE_DELETION
will 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
NEVER
andON_PERMANENT_INSTANCE_DELETION
.NEVER
- detach the disk when the VM is deleted, but do not delete the disk.ON_PERMANENT_INSTANCE_DELETION
will 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
NEVER
andON_PERMANENT_INSTANCE_DELETION
.NEVER
- detach the disk when the VM is deleted, but do not delete the disk.ON_PERMANENT_INSTANCE_DELETION
will 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
NEVER
andON_PERMANENT_INSTANCE_DELETION
.NEVER
- detach the disk when the VM is deleted, but do not delete the disk.ON_PERMANENT_INSTANCE_DELETION
will 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
NEVER
andON_PERMANENT_INSTANCE_DELETION
.NEVER
- detach the disk when the VM is deleted, but do not delete the disk.ON_PERMANENT_INSTANCE_DELETION
will 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
NEVER
andON_PERMANENT_INSTANCE_DELETION
.NEVER
- detach the disk when the VM is deleted, but do not delete the disk.ON_PERMANENT_INSTANCE_DELETION
will delete the stateful disk when the VM is permanently deleted from the instance group. The default isNEVER
.
InstanceGroupManagerStatefulExternalIp, InstanceGroupManagerStatefulExternalIpArgs
- Delete
Rule string , A value that prescribes what should happen to the external ip when the VM instance is deleted. The available options are
NEVER
andON_PERMANENT_INSTANCE_DELETION
.NEVER
- detach the ip when the VM is deleted, but do not delete the ip.ON_PERMANENT_INSTANCE_DELETION
will delete the external ip when the VM is permanently deleted from the instance group.- Interface
Name string , The network interface name of the external Ip. Possible value:
nic0
- Delete
Rule string , A value that prescribes what should happen to the external ip when the VM instance is deleted. The available options are
NEVER
andON_PERMANENT_INSTANCE_DELETION
.NEVER
- detach the ip when the VM is deleted, but do not delete the ip.ON_PERMANENT_INSTANCE_DELETION
will delete the external ip when the VM is permanently deleted from the instance group.- Interface
Name string , The network interface name of the external Ip. Possible value:
nic0
- delete
Rule String , A value that prescribes what should happen to the external ip when the VM instance is deleted. The available options are
NEVER
andON_PERMANENT_INSTANCE_DELETION
.NEVER
- detach the ip when the VM is deleted, but do not delete the ip.ON_PERMANENT_INSTANCE_DELETION
will delete the external ip when the VM is permanently deleted from the instance group.- interface
Name String , The network interface name of the external Ip. Possible value:
nic0
- delete
Rule string , A value that prescribes what should happen to the external ip when the VM instance is deleted. The available options are
NEVER
andON_PERMANENT_INSTANCE_DELETION
.NEVER
- detach the ip when the VM is deleted, but do not delete the ip.ON_PERMANENT_INSTANCE_DELETION
will delete the external ip when the VM is permanently deleted from the instance group.- interface
Name string , The network interface name of the external Ip. Possible value:
nic0
- delete_
rule str , A value that prescribes what should happen to the external ip when the VM instance is deleted. The available options are
NEVER
andON_PERMANENT_INSTANCE_DELETION
.NEVER
- detach the ip when the VM is deleted, but do not delete the ip.ON_PERMANENT_INSTANCE_DELETION
will delete the external ip when the VM is permanently deleted from the instance group.- interface_
name str , The network interface name of the external Ip. Possible value:
nic0
- delete
Rule String , A value that prescribes what should happen to the external ip when the VM instance is deleted. The available options are
NEVER
andON_PERMANENT_INSTANCE_DELETION
.NEVER
- detach the ip when the VM is deleted, but do not delete the ip.ON_PERMANENT_INSTANCE_DELETION
will delete the external ip when the VM is permanently deleted from the instance group.- interface
Name String , The network interface name of the external Ip. Possible value:
nic0
InstanceGroupManagerStatefulInternalIp, InstanceGroupManagerStatefulInternalIpArgs
- Delete
Rule string , A value that prescribes what should happen to the internal ip when the VM instance is deleted. The available options are
NEVER
andON_PERMANENT_INSTANCE_DELETION
.NEVER
- detach the ip when the VM is deleted, but do not delete the ip.ON_PERMANENT_INSTANCE_DELETION
will delete the internal ip when the VM is permanently deleted from the instance group.- Interface
Name string , The network interface name of the internal Ip. Possible value:
nic0
- Delete
Rule string , A value that prescribes what should happen to the internal ip when the VM instance is deleted. The available options are
NEVER
andON_PERMANENT_INSTANCE_DELETION
.NEVER
- detach the ip when the VM is deleted, but do not delete the ip.ON_PERMANENT_INSTANCE_DELETION
will delete the internal ip when the VM is permanently deleted from the instance group.- Interface
Name string , The network interface name of the internal Ip. Possible value:
nic0
- delete
Rule String , A value that prescribes what should happen to the internal ip when the VM instance is deleted. The available options are
NEVER
andON_PERMANENT_INSTANCE_DELETION
.NEVER
- detach the ip when the VM is deleted, but do not delete the ip.ON_PERMANENT_INSTANCE_DELETION
will delete the internal ip when the VM is permanently deleted from the instance group.- interface
Name String , The network interface name of the internal Ip. Possible value:
nic0
- delete
Rule string , A value that prescribes what should happen to the internal ip when the VM instance is deleted. The available options are
NEVER
andON_PERMANENT_INSTANCE_DELETION
.NEVER
- detach the ip when the VM is deleted, but do not delete the ip.ON_PERMANENT_INSTANCE_DELETION
will delete the internal ip when the VM is permanently deleted from the instance group.- interface
Name string , The network interface name of the internal Ip. Possible value:
nic0
- delete_
rule str , A value that prescribes what should happen to the internal ip when the VM instance is deleted. The available options are
NEVER
andON_PERMANENT_INSTANCE_DELETION
.NEVER
- detach the ip when the VM is deleted, but do not delete the ip.ON_PERMANENT_INSTANCE_DELETION
will delete the internal ip when the VM is permanently deleted from the instance group.- interface_
name str , The network interface name of the internal Ip. Possible value:
nic0
- delete
Rule String , A value that prescribes what should happen to the internal ip when the VM instance is deleted. The available options are
NEVER
andON_PERMANENT_INSTANCE_DELETION
.NEVER
- detach the ip when the VM is deleted, but do not delete the ip.ON_PERMANENT_INSTANCE_DELETION
will delete the internal ip when the VM is permanently deleted from the instance group.- interface
Name String , The network interface name of the internal Ip. Possible value:
nic0
InstanceGroupManagerStatus, InstanceGroupManagerStatusArgs
- All
Instances List<InstanceConfigs Group Manager Status All Instances Config> ) Properties to set on all instances in the group. After setting allInstancesConfig on the group, you must update the group's instances to apply the configuration.
- Is
Stable bool A bit indicating whether the managed instance group is in a stable state. A stable state means that: none of the instances in the managed instance group is currently undergoing any type of change (for example, creation, restart, or deletion); no future changes are scheduled for instances in the managed instance group; and the managed instance group itself is not being modified.
- Statefuls
List<Instance
Group Manager Status Stateful> Stateful status of the given Instance Group Manager.
- Version
Targets List<InstanceGroup Manager Status Version Target> A bit indicating whether version target has been reached in this managed instance group, i.e. all instances are in their target version. Instances' target version are specified by version field on Instance Group Manager.
- All
Instances []InstanceConfigs Group Manager Status All Instances Config ) Properties to set on all instances in the group. After setting allInstancesConfig on the group, you must update the group's instances to apply the configuration.
- Is
Stable bool A bit indicating whether the managed instance group is in a stable state. A stable state means that: none of the instances in the managed instance group is currently undergoing any type of change (for example, creation, restart, or deletion); no future changes are scheduled for instances in the managed instance group; and the managed instance group itself is not being modified.
- Statefuls
[]Instance
Group Manager Status Stateful Stateful status of the given Instance Group Manager.
- Version
Targets []InstanceGroup Manager Status Version Target A bit indicating whether version target has been reached in this managed instance group, i.e. all instances are in their target version. Instances' target version are specified by version field on Instance Group Manager.
- all
Instances List<InstanceConfigs Group Manager Status All Instances Config> ) Properties to set on all instances in the group. After setting allInstancesConfig on the group, you must update the group's instances to apply the configuration.
- is
Stable Boolean A bit indicating whether the managed instance group is in a stable state. A stable state means that: none of the instances in the managed instance group is currently undergoing any type of change (for example, creation, restart, or deletion); no future changes are scheduled for instances in the managed instance group; and the managed instance group itself is not being modified.
- statefuls
List<Instance
Group Manager Status Stateful> Stateful status of the given Instance Group Manager.
- version
Targets List<InstanceGroup Manager Status Version Target> A bit indicating whether version target has been reached in this managed instance group, i.e. all instances are in their target version. Instances' target version are specified by version field on Instance Group Manager.
- all
Instances InstanceConfigs Group Manager Status All Instances Config[] ) Properties to set on all instances in the group. After setting allInstancesConfig on the group, you must update the group's instances to apply the configuration.
- is
Stable boolean A bit indicating whether the managed instance group is in a stable state. A stable state means that: none of the instances in the managed instance group is currently undergoing any type of change (for example, creation, restart, or deletion); no future changes are scheduled for instances in the managed instance group; and the managed instance group itself is not being modified.
- statefuls
Instance
Group Manager Status Stateful[] Stateful status of the given Instance Group Manager.
- version
Targets InstanceGroup Manager Status Version Target[] A bit indicating whether version target has been reached in this managed instance group, i.e. all instances are in their target version. Instances' target version are specified by version field on Instance Group Manager.
- all_
instances_ Sequence[Instanceconfigs Group Manager Status All Instances Config] ) Properties to set on all instances in the group. After setting allInstancesConfig on the group, you must update the group's instances to apply the configuration.
- is_
stable bool A bit indicating whether the managed instance group is in a stable state. A stable state means that: none of the instances in the managed instance group is currently undergoing any type of change (for example, creation, restart, or deletion); no future changes are scheduled for instances in the managed instance group; and the managed instance group itself is not being modified.
- statefuls
Sequence[Instance
Group Manager Status Stateful] Stateful status of the given Instance Group Manager.
- version_
targets Sequence[InstanceGroup Manager Status Version Target] A bit indicating whether version target has been reached in this managed instance group, i.e. all instances are in their target version. Instances' target version are specified by version field on Instance Group Manager.
- all
Instances List<Property Map>Configs ) Properties to set on all instances in the group. After setting allInstancesConfig on the group, you must update the group's instances to apply the configuration.
- is
Stable Boolean A bit indicating whether the managed instance group is in a stable state. A stable state means that: none of the instances in the managed instance group is currently undergoing any type of change (for example, creation, restart, or deletion); no future changes are scheduled for instances in the managed instance group; and the managed instance group itself is not being modified.
- statefuls List<Property Map>
Stateful status of the given Instance Group Manager.
- version
Targets List<Property Map> A bit indicating whether version target has been reached in this managed instance group, i.e. all instances are in their target version. Instances' target version are specified by version field on Instance Group Manager.
InstanceGroupManagerStatusAllInstancesConfig, InstanceGroupManagerStatusAllInstancesConfigArgs
- Effective bool
- Effective bool
- effective Boolean
- effective boolean
- effective bool
- effective Boolean
InstanceGroupManagerStatusStateful, InstanceGroupManagerStatusStatefulArgs
- Has
Stateful boolConfig A bit indicating whether the managed instance group has stateful configuration, that is, if you have configured any items in a stateful policy or in per-instance configs. The group might report that it has no stateful config even when there is still some preserved state on a managed instance, for example, if you have deleted all PICs but not yet applied those deletions.
- Per
Instance List<InstanceConfigs Group Manager Status Stateful Per Instance Config> Status of per-instance configs on the instance.
- Has
Stateful boolConfig A bit indicating whether the managed instance group has stateful configuration, that is, if you have configured any items in a stateful policy or in per-instance configs. The group might report that it has no stateful config even when there is still some preserved state on a managed instance, for example, if you have deleted all PICs but not yet applied those deletions.
- Per
Instance []InstanceConfigs Group Manager Status Stateful Per Instance Config Status of per-instance configs on the instance.
- has
Stateful BooleanConfig A bit indicating whether the managed instance group has stateful configuration, that is, if you have configured any items in a stateful policy or in per-instance configs. The group might report that it has no stateful config even when there is still some preserved state on a managed instance, for example, if you have deleted all PICs but not yet applied those deletions.
- per
Instance List<InstanceConfigs Group Manager Status Stateful Per Instance Config> Status of per-instance configs on the instance.
- has
Stateful booleanConfig A bit indicating whether the managed instance group has stateful configuration, that is, if you have configured any items in a stateful policy or in per-instance configs. The group might report that it has no stateful config even when there is still some preserved state on a managed instance, for example, if you have deleted all PICs but not yet applied those deletions.
- per
Instance InstanceConfigs Group Manager Status Stateful Per Instance Config[] Status of per-instance configs on the instance.
- has_
stateful_ boolconfig A bit indicating whether the managed instance group has stateful configuration, that is, if you have configured any items in a stateful policy or in per-instance configs. The group might report that it has no stateful config even when there is still some preserved state on a managed instance, for example, if you have deleted all PICs but not yet applied those deletions.
- per_
instance_ Sequence[Instanceconfigs Group Manager Status Stateful Per Instance Config] Status of per-instance configs on the instance.
- has
Stateful BooleanConfig A bit indicating whether the managed instance group has stateful configuration, that is, if you have configured any items in a stateful policy or in per-instance configs. The group might report that it has no stateful config even when there is still some preserved state on a managed instance, for example, if you have deleted all PICs but not yet applied those deletions.
- per
Instance List<Property Map>Configs Status of per-instance configs on the instance.
InstanceGroupManagerStatusStatefulPerInstanceConfig, InstanceGroupManagerStatusStatefulPerInstanceConfigArgs
- All
Effective bool A bit indicating if all of the group's per-instance configs (listed in the output of a listPerInstanceConfigs API call) have status
EFFECTIVE
or there are no per-instance-configs.
- All
Effective bool A bit indicating if all of the group's per-instance configs (listed in the output of a listPerInstanceConfigs API call) have status
EFFECTIVE
or there are no per-instance-configs.
- all
Effective Boolean A bit indicating if all of the group's per-instance configs (listed in the output of a listPerInstanceConfigs API call) have status
EFFECTIVE
or there are no per-instance-configs.
- all
Effective boolean A bit indicating if all of the group's per-instance configs (listed in the output of a listPerInstanceConfigs API call) have status
EFFECTIVE
or there are no per-instance-configs.
- all_
effective bool A bit indicating if all of the group's per-instance configs (listed in the output of a listPerInstanceConfigs API call) have status
EFFECTIVE
or there are no per-instance-configs.
- all
Effective Boolean A bit indicating if all of the group's per-instance configs (listed in the output of a listPerInstanceConfigs API call) have status
EFFECTIVE
or there are no per-instance-configs.
InstanceGroupManagerStatusVersionTarget, InstanceGroupManagerStatusVersionTargetArgs
- Is
Reached bool
- Is
Reached bool
- is
Reached Boolean
- is
Reached boolean
- is_
reached bool
- is
Reached Boolean
InstanceGroupManagerUpdatePolicy, InstanceGroupManagerUpdatePolicyArgs
- Minimal
Action string Minimal action to be taken on an instance. You can specify either
REFRESH
to update without stopping instances,RESTART
to restart existing instances orREPLACE
to delete and create new instances from the target template. If you specify aREFRESH
, 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.- Type string
The type of update process. You can specify either
PROACTIVE
so that the instance group manager proactively executes actions in order to bring instances to their target versions orOPPORTUNISTIC
so that no action is proactively executed but the update will be performed as part of other actions (for example, resizes or recreateInstances calls).- 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
. If neither is set, defaults to 1- 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
.- int
, The maximum number of instances that can be unavailable during the update process. Conflicts with
max_unavailable_percent
. If neither is set, defaults to 1- int
, The maximum number of instances(calculated as percentage) that can be unavailable during the update process. Conflicts with
max_unavailable_fixed
.- 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]
- Most
Disruptive stringAllowed Action Most disruptive action that is allowed to be taken on an instance. You can specify either NONE to forbid any actions, REFRESH to allow actions that do not need instance restart, RESTART to allow actions that can be applied without instance replacing or REPLACE to allow all possible actions. If the Updater determines that the minimal update action needed is more disruptive than most disruptive allowed action you specify it will not perform the update at all.
- Replacement
Method string , The instance replacement method for managed instance groups. Valid values are: "RECREATE", "SUBSTITUTE". If SUBSTITUTE (default), the group replaces VM instances with new instances that have randomly generated names. If RECREATE, instance names are preserved. You must also set max_unavailable_fixed or max_unavailable_percent to be greater than 0.
- Minimal
Action string Minimal action to be taken on an instance. You can specify either
REFRESH
to update without stopping instances,RESTART
to restart existing instances orREPLACE
to delete and create new instances from the target template. If you specify aREFRESH
, 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.- Type string
The type of update process. You can specify either
PROACTIVE
so that the instance group manager proactively executes actions in order to bring instances to their target versions orOPPORTUNISTIC
so that no action is proactively executed but the update will be performed as part of other actions (for example, resizes or recreateInstances calls).- 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
. If neither is set, defaults to 1- 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
.- int
, The maximum number of instances that can be unavailable during the update process. Conflicts with
max_unavailable_percent
. If neither is set, defaults to 1- int
, The maximum number of instances(calculated as percentage) that can be unavailable during the update process. Conflicts with
max_unavailable_fixed
.- 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]
- Most
Disruptive stringAllowed Action Most disruptive action that is allowed to be taken on an instance. You can specify either NONE to forbid any actions, REFRESH to allow actions that do not need instance restart, RESTART to allow actions that can be applied without instance replacing or REPLACE to allow all possible actions. If the Updater determines that the minimal update action needed is more disruptive than most disruptive allowed action you specify it will not perform the update at all.
- Replacement
Method string , The instance replacement method for managed instance groups. Valid values are: "RECREATE", "SUBSTITUTE". If SUBSTITUTE (default), the group replaces VM instances with new instances that have randomly generated names. If RECREATE, instance names are preserved. You must also set max_unavailable_fixed or max_unavailable_percent to be greater than 0.
- minimal
Action String Minimal action to be taken on an instance. You can specify either
REFRESH
to update without stopping instances,RESTART
to restart existing instances orREPLACE
to delete and create new instances from the target template. If you specify aREFRESH
, 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.- type String
The type of update process. You can specify either
PROACTIVE
so that the instance group manager proactively executes actions in order to bring instances to their target versions orOPPORTUNISTIC
so that no action is proactively executed but the update will be performed as part of other actions (for example, resizes or recreateInstances calls).- max
Surge IntegerFixed , The maximum number of instances that can be created above the specified targetSize during the update process. Conflicts with
max_surge_percent
. If neither is set, defaults to 1- max
Surge IntegerPercent , 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
.- Integer
, The maximum number of instances that can be unavailable during the update process. Conflicts with
max_unavailable_percent
. If neither is set, defaults to 1- Integer
, The maximum number of instances(calculated as percentage) that can be unavailable during the update process. Conflicts with
max_unavailable_fixed
.- min
Ready IntegerSec ), Minimum number of seconds to wait for after a newly created instance becomes available. This value must be from range [0, 3600]
- most
Disruptive StringAllowed Action Most disruptive action that is allowed to be taken on an instance. You can specify either NONE to forbid any actions, REFRESH to allow actions that do not need instance restart, RESTART to allow actions that can be applied without instance replacing or REPLACE to allow all possible actions. If the Updater determines that the minimal update action needed is more disruptive than most disruptive allowed action you specify it will not perform the update at all.
- replacement
Method String , The instance replacement method for managed instance groups. Valid values are: "RECREATE", "SUBSTITUTE". If SUBSTITUTE (default), the group replaces VM instances with new instances that have randomly generated names. If RECREATE, instance names are preserved. You must also set max_unavailable_fixed or max_unavailable_percent to be greater than 0.
- minimal
Action string Minimal action to be taken on an instance. You can specify either
REFRESH
to update without stopping instances,RESTART
to restart existing instances orREPLACE
to delete and create new instances from the target template. If you specify aREFRESH
, 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.- type string
The type of update process. You can specify either
PROACTIVE
so that the instance group manager proactively executes actions in order to bring instances to their target versions orOPPORTUNISTIC
so that no action is proactively executed but the update will be performed as part of other actions (for example, resizes or recreateInstances calls).- 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
. If neither is set, defaults to 1- 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
.- number
, The maximum number of instances that can be unavailable during the update process. Conflicts with
max_unavailable_percent
. If neither is set, defaults to 1- number
, The maximum number of instances(calculated as percentage) that can be unavailable during the update process. Conflicts with
max_unavailable_fixed
.- 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]
- most
Disruptive stringAllowed Action Most disruptive action that is allowed to be taken on an instance. You can specify either NONE to forbid any actions, REFRESH to allow actions that do not need instance restart, RESTART to allow actions that can be applied without instance replacing or REPLACE to allow all possible actions. If the Updater determines that the minimal update action needed is more disruptive than most disruptive allowed action you specify it will not perform the update at all.
- replacement
Method string , The instance replacement method for managed instance groups. Valid values are: "RECREATE", "SUBSTITUTE". If SUBSTITUTE (default), the group replaces VM instances with new instances that have randomly generated names. If RECREATE, instance names are preserved. You must also set max_unavailable_fixed or max_unavailable_percent to be greater than 0.
- minimal_
action str Minimal action to be taken on an instance. You can specify either
REFRESH
to update without stopping instances,RESTART
to restart existing instances orREPLACE
to delete and create new instances from the target template. If you specify aREFRESH
, 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.- type str
The type of update process. You can specify either
PROACTIVE
so that the instance group manager proactively executes actions in order to bring instances to their target versions orOPPORTUNISTIC
so that no action is proactively executed but the update will be performed as part of other actions (for example, resizes or recreateInstances calls).- 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
. If neither is set, defaults to 1- 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
.- int
, The maximum number of instances that can be unavailable during the update process. Conflicts with
max_unavailable_percent
. If neither is set, defaults to 1- int
, The maximum number of instances(calculated as percentage) that can be unavailable during the update process. Conflicts with
max_unavailable_fixed
.- 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]
- most_
disruptive_ strallowed_ action Most disruptive action that is allowed to be taken on an instance. You can specify either NONE to forbid any actions, REFRESH to allow actions that do not need instance restart, RESTART to allow actions that can be applied without instance replacing or REPLACE to allow all possible actions. If the Updater determines that the minimal update action needed is more disruptive than most disruptive allowed action you specify it will not perform the update at all.
- replacement_
method str , The instance replacement method for managed instance groups. Valid values are: "RECREATE", "SUBSTITUTE". If SUBSTITUTE (default), the group replaces VM instances with new instances that have randomly generated names. If RECREATE, instance names are preserved. You must also set max_unavailable_fixed or max_unavailable_percent to be greater than 0.
- minimal
Action String Minimal action to be taken on an instance. You can specify either
REFRESH
to update without stopping instances,RESTART
to restart existing instances orREPLACE
to delete and create new instances from the target template. If you specify aREFRESH
, 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.- type String
The type of update process. You can specify either
PROACTIVE
so that the instance group manager proactively executes actions in order to bring instances to their target versions orOPPORTUNISTIC
so that no action is proactively executed but the update will be performed as part of other actions (for example, resizes or recreateInstances calls).- 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
. If neither is set, defaults to 1- 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
.- Number
, The maximum number of instances that can be unavailable during the update process. Conflicts with
max_unavailable_percent
. If neither is set, defaults to 1- Number
, The maximum number of instances(calculated as percentage) that can be unavailable during the update process. Conflicts with
max_unavailable_fixed
.- 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]
- most
Disruptive StringAllowed Action Most disruptive action that is allowed to be taken on an instance. You can specify either NONE to forbid any actions, REFRESH to allow actions that do not need instance restart, RESTART to allow actions that can be applied without instance replacing or REPLACE to allow all possible actions. If the Updater determines that the minimal update action needed is more disruptive than most disruptive allowed action you specify it will not perform the update at all.
- replacement
Method String , The instance replacement method for managed instance groups. Valid values are: "RECREATE", "SUBSTITUTE". If SUBSTITUTE (default), the group replaces VM instances with new instances that have randomly generated names. If RECREATE, instance names are preserved. You must also set max_unavailable_fixed or max_unavailable_percent to be greater than 0.
InstanceGroupManagerVersion, InstanceGroupManagerVersionArgs
- Instance
Template string The full URL to an instance template from which all new instances of this version will be created. It is recommended to reference instance templates through their unique id (
self_link_unique
attribute).- Name string
Version name.
- Target
Size InstanceGroup Manager Version Target Size The number of instances calculated as a fixed number or a percentage depending on the settings. Structure is documented below.
Exactly one
version
you specify must not have atarget_size
specified. During a rolling update, the instance group manager will fulfill thetarget_size
constraints of every otherversion
, and any remaining instances will be provisioned with the version wheretarget_size
is unset.
- Instance
Template string The full URL to an instance template from which all new instances of this version will be created. It is recommended to reference instance templates through their unique id (
self_link_unique
attribute).- Name string
Version name.
- Target
Size InstanceGroup Manager Version Target Size The number of instances calculated as a fixed number or a percentage depending on the settings. Structure is documented below.
Exactly one
version
you specify must not have atarget_size
specified. During a rolling update, the instance group manager will fulfill thetarget_size
constraints of every otherversion
, and any remaining instances will be provisioned with the version wheretarget_size
is unset.
- instance
Template String The full URL to an instance template from which all new instances of this version will be created. It is recommended to reference instance templates through their unique id (
self_link_unique
attribute).- name String
Version name.
- target
Size InstanceGroup Manager Version Target Size The number of instances calculated as a fixed number or a percentage depending on the settings. Structure is documented below.
Exactly one
version
you specify must not have atarget_size
specified. During a rolling update, the instance group manager will fulfill thetarget_size
constraints of every otherversion
, and any remaining instances will be provisioned with the version wheretarget_size
is unset.
- instance
Template string The full URL to an instance template from which all new instances of this version will be created. It is recommended to reference instance templates through their unique id (
self_link_unique
attribute).- name string
Version name.
- target
Size InstanceGroup Manager Version Target Size The number of instances calculated as a fixed number or a percentage depending on the settings. Structure is documented below.
Exactly one
version
you specify must not have atarget_size
specified. During a rolling update, the instance group manager will fulfill thetarget_size
constraints of every otherversion
, and any remaining instances will be provisioned with the version wheretarget_size
is unset.
- instance_
template str The full URL to an instance template from which all new instances of this version will be created. It is recommended to reference instance templates through their unique id (
self_link_unique
attribute).- name str
Version name.
- target_
size InstanceGroup Manager Version Target Size The number of instances calculated as a fixed number or a percentage depending on the settings. Structure is documented below.
Exactly one
version
you specify must not have atarget_size
specified. During a rolling update, the instance group manager will fulfill thetarget_size
constraints of every otherversion
, and any remaining instances will be provisioned with the version wheretarget_size
is unset.
- instance
Template String The full URL to an instance template from which all new instances of this version will be created. It is recommended to reference instance templates through their unique id (
self_link_unique
attribute).- name String
Version name.
- target
Size Property Map The number of instances calculated as a fixed number or a percentage depending on the settings. Structure is documented below.
Exactly one
version
you specify must not have atarget_size
specified. During a rolling update, the instance group manager will fulfill thetarget_size
constraints of every otherversion
, and any remaining instances will be provisioned with the version wheretarget_size
is unset.
InstanceGroupManagerVersionTargetSize, InstanceGroupManagerVersionTargetSizeArgs
- 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_size
values; a managed instance group with 2 instances and 2version
s, one of which has atarget_size.percent
of60
will 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_size
values; a managed instance group with 2 instances and 2version
s, one of which has atarget_size.percent
of60
will create 2 instances of thatversion
.
- fixed Integer
, The number of instances which are managed for this version. Conflicts with
percent
.- percent Integer
, 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_size
values; a managed instance group with 2 instances and 2version
s, one of which has atarget_size.percent
of60
will 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_size
values; a managed instance group with 2 instances and 2version
s, one of which has atarget_size.percent
of60
will 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_size
values; a managed instance group with 2 instances and 2version
s, one of which has atarget_size.percent
of60
will 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_size
values; a managed instance group with 2 instances and 2version
s, one of which has atarget_size.percent
of60
will create 2 instances of thatversion
.
Import
Instance group managers can be imported using any of these accepted formats* projects/{{project}}/zones/{{zone}}/instanceGroupManagers/{{name}}
* {{project}}/{{zone}}/{{name}}
* {{project}}/{{name}}
* {{name}}
In Terraform v1.5.0 and later, use an import
block to import instance group managers using one of the formats above. For exampletf import {
id = “projects/{{project}}/zones/{{zone}}/instanceGroupManagers/{{name}}”
to = google_compute_instance_group_manager.default }
$ pulumi import gcp:compute/instanceGroupManager:InstanceGroupManager When using the [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import), instance group managers can be imported using one of the formats above. For example
$ pulumi import gcp:compute/instanceGroupManager:InstanceGroupManager default projects/{{project}}/zones/{{zone}}/instanceGroupManagers/{{name}}
$ pulumi import gcp:compute/instanceGroupManager:InstanceGroupManager default {{project}}/{{zone}}/{{name}}
$ pulumi import gcp:compute/instanceGroupManager:InstanceGroupManager default {{project}}/{{name}}
$ pulumi import gcp:compute/instanceGroupManager:InstanceGroupManager default {{name}}
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
google-beta
Terraform Provider.