yandex.ComputeInstanceGroup
Explore with Pulumi AI
An Instance group resource. For more information, see the official documentation.
Example Usage
using System.IO;
using Pulumi;
using Yandex = Pulumi.Yandex;
class MyStack : Stack
{
public MyStack()
{
var group1 = new Yandex.ComputeInstanceGroup("group1", new Yandex.ComputeInstanceGroupArgs
{
AllocationPolicy = new Yandex.Inputs.ComputeInstanceGroupAllocationPolicyArgs
{
Zones =
{
"ru-central1-a",
},
},
DeletionProtection = true,
DeployPolicy = new Yandex.Inputs.ComputeInstanceGroupDeployPolicyArgs
{
MaxCreating = 2,
MaxDeleting = 2,
MaxExpansion = 2,
MaxUnavailable = 2,
},
FolderId = data.Yandex_resourcemanager_folder.Test_folder.Id,
InstanceTemplate = new Yandex.Inputs.ComputeInstanceGroupInstanceTemplateArgs
{
BootDisk = new Yandex.Inputs.ComputeInstanceGroupInstanceTemplateBootDiskArgs
{
InitializeParams = new Yandex.Inputs.ComputeInstanceGroupInstanceTemplateBootDiskInitializeParamsArgs
{
ImageId = data.Yandex_compute_image.Ubuntu.Id,
Size = 4,
},
Mode = "READ_WRITE",
},
Labels =
{
{ "label1", "label1-value" },
{ "label2", "label2-value" },
},
Metadata =
{
{ "foo", "bar" },
{ "ssh-keys", $"ubuntu:{File.ReadAllText("~/.ssh/id_rsa.pub")}" },
},
NetworkInterfaces =
{
new Yandex.Inputs.ComputeInstanceGroupInstanceTemplateNetworkInterfaceArgs
{
NetworkId = yandex_vpc_network.My_inst_group_network.Id,
SubnetIds =
{
yandex_vpc_subnet.My_inst_group_subnet.Id,
},
},
},
NetworkSettings =
{
new Yandex.Inputs.ComputeInstanceGroupInstanceTemplateNetworkSettingArgs
{
Type = "STANDARD",
},
},
PlatformId = "standard-v1",
Resources = new Yandex.Inputs.ComputeInstanceGroupInstanceTemplateResourcesArgs
{
Cores = 2,
Memory = 1,
},
},
ScalePolicy = new Yandex.Inputs.ComputeInstanceGroupScalePolicyArgs
{
FixedScale = new Yandex.Inputs.ComputeInstanceGroupScalePolicyFixedScaleArgs
{
Size = 3,
},
},
ServiceAccountId = yandex_iam_service_account.Test_account.Id,
Variables =
{
{ "test_key1", "test_value1" },
{ "test_key2", "test_value2" },
},
});
}
}
package main
import (
"fmt"
"io/ioutil"
"github.com/pulumi/pulumi-yandex/sdk/go/yandex"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func readFileOrPanic(path string) pulumi.StringPtrInput {
data, err := ioutil.ReadFile(path)
if err != nil {
panic(err.Error())
}
return pulumi.String(string(data))
}
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := yandex.NewComputeInstanceGroup(ctx, "group1", &yandex.ComputeInstanceGroupArgs{
AllocationPolicy: &ComputeInstanceGroupAllocationPolicyArgs{
Zones: pulumi.StringArray{
pulumi.String("ru-central1-a"),
},
},
DeletionProtection: pulumi.Bool(true),
DeployPolicy: &ComputeInstanceGroupDeployPolicyArgs{
MaxCreating: pulumi.Int(2),
MaxDeleting: pulumi.Int(2),
MaxExpansion: pulumi.Int(2),
MaxUnavailable: pulumi.Int(2),
},
FolderId: pulumi.Any(data.Yandex_resourcemanager_folder.Test_folder.Id),
InstanceTemplate: &ComputeInstanceGroupInstanceTemplateArgs{
BootDisk: &ComputeInstanceGroupInstanceTemplateBootDiskArgs{
InitializeParams: &ComputeInstanceGroupInstanceTemplateBootDiskInitializeParamsArgs{
ImageId: pulumi.Any(data.Yandex_compute_image.Ubuntu.Id),
Size: pulumi.Int(4),
},
Mode: pulumi.String("READ_WRITE"),
},
Labels: pulumi.StringMap{
"label1": pulumi.String("label1-value"),
"label2": pulumi.String("label2-value"),
},
Metadata: pulumi.StringMap{
"foo": pulumi.String("bar"),
"ssh-keys": pulumi.String(fmt.Sprintf("%v%v", "ubuntu:", readFileOrPanic("~/.ssh/id_rsa.pub"))),
},
NetworkInterfaces: ComputeInstanceGroupInstanceTemplateNetworkInterfaceArray{
&ComputeInstanceGroupInstanceTemplateNetworkInterfaceArgs{
NetworkId: pulumi.Any(yandex_vpc_network.My - inst - group - network.Id),
SubnetIds: pulumi.StringArray{
pulumi.Any(yandex_vpc_subnet.My - inst - group - subnet.Id),
},
},
},
NetworkSettings: ComputeInstanceGroupInstanceTemplateNetworkSettingArray{
&ComputeInstanceGroupInstanceTemplateNetworkSettingArgs{
Type: pulumi.String("STANDARD"),
},
},
PlatformId: pulumi.String("standard-v1"),
Resources: &ComputeInstanceGroupInstanceTemplateResourcesArgs{
Cores: pulumi.Int(2),
Memory: pulumi.Float64(1),
},
},
ScalePolicy: &ComputeInstanceGroupScalePolicyArgs{
FixedScale: &ComputeInstanceGroupScalePolicyFixedScaleArgs{
Size: pulumi.Int(3),
},
},
ServiceAccountId: pulumi.Any(yandex_iam_service_account.Test_account.Id),
Variables: pulumi.StringMap{
"test_key1": pulumi.String("test_value1"),
"test_key2": pulumi.String("test_value2"),
},
})
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_yandex as yandex
group1 = yandex.ComputeInstanceGroup("group1",
allocation_policy=yandex.ComputeInstanceGroupAllocationPolicyArgs(
zones=["ru-central1-a"],
),
deletion_protection=True,
deploy_policy=yandex.ComputeInstanceGroupDeployPolicyArgs(
max_creating=2,
max_deleting=2,
max_expansion=2,
max_unavailable=2,
),
folder_id=data["yandex_resourcemanager_folder"]["test_folder"]["id"],
instance_template=yandex.ComputeInstanceGroupInstanceTemplateArgs(
boot_disk=yandex.ComputeInstanceGroupInstanceTemplateBootDiskArgs(
initialize_params=yandex.ComputeInstanceGroupInstanceTemplateBootDiskInitializeParamsArgs(
image_id=data["yandex_compute_image"]["ubuntu"]["id"],
size=4,
),
mode="READ_WRITE",
),
labels={
"label1": "label1-value",
"label2": "label2-value",
},
metadata={
"foo": "bar",
"ssh-keys": f"ubuntu:{(lambda path: open(path).read())('~/.ssh/id_rsa.pub')}",
},
network_interfaces=[yandex.ComputeInstanceGroupInstanceTemplateNetworkInterfaceArgs(
network_id=yandex_vpc_network["my-inst-group-network"]["id"],
subnet_ids=[yandex_vpc_subnet["my-inst-group-subnet"]["id"]],
)],
network_settings=[yandex.ComputeInstanceGroupInstanceTemplateNetworkSettingArgs(
type="STANDARD",
)],
platform_id="standard-v1",
resources=yandex.ComputeInstanceGroupInstanceTemplateResourcesArgs(
cores=2,
memory=1,
),
),
scale_policy=yandex.ComputeInstanceGroupScalePolicyArgs(
fixed_scale=yandex.ComputeInstanceGroupScalePolicyFixedScaleArgs(
size=3,
),
),
service_account_id=yandex_iam_service_account["test_account"]["id"],
variables={
"test_key1": "test_value1",
"test_key2": "test_value2",
})
import * as pulumi from "@pulumi/pulumi";
import * as fs from "fs";
import * as yandex from "@pulumi/yandex";
const group1 = new yandex.ComputeInstanceGroup("group1", {
allocationPolicy: {
zones: ["ru-central1-a"],
},
deletionProtection: true,
deployPolicy: {
maxCreating: 2,
maxDeleting: 2,
maxExpansion: 2,
maxUnavailable: 2,
},
folderId: yandex_resourcemanager_folder_test_folder.id,
instanceTemplate: {
bootDisk: {
initializeParams: {
imageId: yandex_compute_image_ubuntu.id,
size: 4,
},
mode: "READ_WRITE",
},
labels: {
label1: "label1-value",
label2: "label2-value",
},
metadata: {
foo: "bar",
"ssh-keys": `ubuntu:${fs.readFileSync("~/.ssh/id_rsa.pub", "utf-8")}`,
},
networkInterfaces: [{
networkId: yandex_vpc_network_my_inst_group_network.id,
subnetIds: [yandex_vpc_subnet_my_inst_group_subnet.id],
}],
networkSettings: [{
type: "STANDARD",
}],
platformId: "standard-v1",
resources: {
cores: 2,
memory: 1,
},
},
scalePolicy: {
fixedScale: {
size: 3,
},
},
serviceAccountId: yandex_iam_service_account_test_account.id,
variables: {
test_key1: "test_value1",
test_key2: "test_value2",
},
});
Coming soon!
Create ComputeInstanceGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ComputeInstanceGroup(name: string, args: ComputeInstanceGroupArgs, opts?: CustomResourceOptions);
@overload
def ComputeInstanceGroup(resource_name: str,
args: ComputeInstanceGroupArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ComputeInstanceGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
allocation_policy: Optional[ComputeInstanceGroupAllocationPolicyArgs] = None,
service_account_id: Optional[str] = None,
scale_policy: Optional[ComputeInstanceGroupScalePolicyArgs] = None,
deploy_policy: Optional[ComputeInstanceGroupDeployPolicyArgs] = None,
instance_template: Optional[ComputeInstanceGroupInstanceTemplateArgs] = None,
health_checks: Optional[Sequence[ComputeInstanceGroupHealthCheckArgs]] = None,
folder_id: Optional[str] = None,
description: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
load_balancer: Optional[ComputeInstanceGroupLoadBalancerArgs] = None,
max_checking_health_duration: Optional[int] = None,
name: Optional[str] = None,
deletion_protection: Optional[bool] = None,
application_load_balancer: Optional[ComputeInstanceGroupApplicationLoadBalancerArgs] = None,
variables: Optional[Mapping[str, str]] = None)
func NewComputeInstanceGroup(ctx *Context, name string, args ComputeInstanceGroupArgs, opts ...ResourceOption) (*ComputeInstanceGroup, error)
public ComputeInstanceGroup(string name, ComputeInstanceGroupArgs args, CustomResourceOptions? opts = null)
public ComputeInstanceGroup(String name, ComputeInstanceGroupArgs args)
public ComputeInstanceGroup(String name, ComputeInstanceGroupArgs args, CustomResourceOptions options)
type: yandex:ComputeInstanceGroup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ComputeInstanceGroupArgs
- 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 ComputeInstanceGroupArgs
- 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 ComputeInstanceGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ComputeInstanceGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ComputeInstanceGroupArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var computeInstanceGroupResource = new Yandex.ComputeInstanceGroup("computeInstanceGroupResource", new()
{
AllocationPolicy = new Yandex.Inputs.ComputeInstanceGroupAllocationPolicyArgs
{
Zones = new[]
{
"string",
},
},
ServiceAccountId = "string",
ScalePolicy = new Yandex.Inputs.ComputeInstanceGroupScalePolicyArgs
{
AutoScale = new Yandex.Inputs.ComputeInstanceGroupScalePolicyAutoScaleArgs
{
InitialSize = 0,
MeasurementDuration = 0,
CpuUtilizationTarget = 0,
CustomRules = new[]
{
new Yandex.Inputs.ComputeInstanceGroupScalePolicyAutoScaleCustomRuleArgs
{
MetricName = "string",
MetricType = "string",
RuleType = "string",
Target = 0,
FolderId = "string",
Labels =
{
{ "string", "string" },
},
Service = "string",
},
},
MaxSize = 0,
MinZoneSize = 0,
StabilizationDuration = 0,
WarmupDuration = 0,
},
FixedScale = new Yandex.Inputs.ComputeInstanceGroupScalePolicyFixedScaleArgs
{
Size = 0,
},
TestAutoScale = new Yandex.Inputs.ComputeInstanceGroupScalePolicyTestAutoScaleArgs
{
InitialSize = 0,
MeasurementDuration = 0,
CpuUtilizationTarget = 0,
CustomRules = new[]
{
new Yandex.Inputs.ComputeInstanceGroupScalePolicyTestAutoScaleCustomRuleArgs
{
MetricName = "string",
MetricType = "string",
RuleType = "string",
Target = 0,
FolderId = "string",
Labels =
{
{ "string", "string" },
},
Service = "string",
},
},
MaxSize = 0,
MinZoneSize = 0,
StabilizationDuration = 0,
WarmupDuration = 0,
},
},
DeployPolicy = new Yandex.Inputs.ComputeInstanceGroupDeployPolicyArgs
{
MaxExpansion = 0,
MaxUnavailable = 0,
MaxCreating = 0,
MaxDeleting = 0,
StartupDuration = 0,
Strategy = "string",
},
InstanceTemplate = new Yandex.Inputs.ComputeInstanceGroupInstanceTemplateArgs
{
BootDisk = new Yandex.Inputs.ComputeInstanceGroupInstanceTemplateBootDiskArgs
{
DeviceName = "string",
DiskId = "string",
InitializeParams = new Yandex.Inputs.ComputeInstanceGroupInstanceTemplateBootDiskInitializeParamsArgs
{
Description = "string",
ImageId = "string",
Size = 0,
SnapshotId = "string",
Type = "string",
},
Mode = "string",
},
Resources = new Yandex.Inputs.ComputeInstanceGroupInstanceTemplateResourcesArgs
{
Cores = 0,
Memory = 0,
CoreFraction = 0,
Gpus = 0,
},
NetworkInterfaces = new[]
{
new Yandex.Inputs.ComputeInstanceGroupInstanceTemplateNetworkInterfaceArgs
{
DnsRecords = new[]
{
new Yandex.Inputs.ComputeInstanceGroupInstanceTemplateNetworkInterfaceDnsRecordArgs
{
Fqdn = "string",
DnsZoneId = "string",
Ptr = false,
Ttl = 0,
},
},
IpAddress = "string",
Ipv4 = false,
Ipv6 = false,
Ipv6Address = "string",
Ipv6DnsRecords = new[]
{
new Yandex.Inputs.ComputeInstanceGroupInstanceTemplateNetworkInterfaceIpv6DnsRecordArgs
{
Fqdn = "string",
DnsZoneId = "string",
Ptr = false,
Ttl = 0,
},
},
Nat = false,
NatDnsRecords = new[]
{
new Yandex.Inputs.ComputeInstanceGroupInstanceTemplateNetworkInterfaceNatDnsRecordArgs
{
Fqdn = "string",
DnsZoneId = "string",
Ptr = false,
Ttl = 0,
},
},
NatIpAddress = "string",
NetworkId = "string",
SecurityGroupIds = new[]
{
"string",
},
SubnetIds = new[]
{
"string",
},
},
},
Labels =
{
{ "string", "string" },
},
Metadata =
{
{ "string", "string" },
},
Name = "string",
Hostname = "string",
NetworkSettings = new[]
{
new Yandex.Inputs.ComputeInstanceGroupInstanceTemplateNetworkSettingArgs
{
Type = "string",
},
},
PlacementPolicy = new Yandex.Inputs.ComputeInstanceGroupInstanceTemplatePlacementPolicyArgs
{
PlacementGroupId = "string",
},
PlatformId = "string",
Description = "string",
SchedulingPolicy = new Yandex.Inputs.ComputeInstanceGroupInstanceTemplateSchedulingPolicyArgs
{
Preemptible = false,
},
SecondaryDisks = new[]
{
new Yandex.Inputs.ComputeInstanceGroupInstanceTemplateSecondaryDiskArgs
{
DeviceName = "string",
DiskId = "string",
InitializeParams = new Yandex.Inputs.ComputeInstanceGroupInstanceTemplateSecondaryDiskInitializeParamsArgs
{
Description = "string",
ImageId = "string",
Size = 0,
SnapshotId = "string",
Type = "string",
},
Mode = "string",
},
},
ServiceAccountId = "string",
},
HealthChecks = new[]
{
new Yandex.Inputs.ComputeInstanceGroupHealthCheckArgs
{
HealthyThreshold = 0,
HttpOptions = new[]
{
new Yandex.Inputs.ComputeInstanceGroupHealthCheckHttpOptionArgs
{
Path = "string",
Port = 0,
},
},
Interval = 0,
TcpOptions = new Yandex.Inputs.ComputeInstanceGroupHealthCheckTcpOptionsArgs
{
Port = 0,
},
Timeout = 0,
UnhealthyThreshold = 0,
},
},
FolderId = "string",
Description = "string",
Labels =
{
{ "string", "string" },
},
LoadBalancer = new Yandex.Inputs.ComputeInstanceGroupLoadBalancerArgs
{
MaxOpeningTrafficDuration = 0,
StatusMessage = "string",
TargetGroupDescription = "string",
TargetGroupId = "string",
TargetGroupLabels =
{
{ "string", "string" },
},
TargetGroupName = "string",
},
MaxCheckingHealthDuration = 0,
Name = "string",
DeletionProtection = false,
ApplicationLoadBalancer = new Yandex.Inputs.ComputeInstanceGroupApplicationLoadBalancerArgs
{
MaxOpeningTrafficDuration = 0,
StatusMessage = "string",
TargetGroupDescription = "string",
TargetGroupId = "string",
TargetGroupLabels =
{
{ "string", "string" },
},
TargetGroupName = "string",
},
Variables =
{
{ "string", "string" },
},
});
example, err := yandex.NewComputeInstanceGroup(ctx, "computeInstanceGroupResource", &yandex.ComputeInstanceGroupArgs{
AllocationPolicy: &yandex.ComputeInstanceGroupAllocationPolicyArgs{
Zones: pulumi.StringArray{
pulumi.String("string"),
},
},
ServiceAccountId: pulumi.String("string"),
ScalePolicy: &yandex.ComputeInstanceGroupScalePolicyArgs{
AutoScale: &yandex.ComputeInstanceGroupScalePolicyAutoScaleArgs{
InitialSize: pulumi.Int(0),
MeasurementDuration: pulumi.Int(0),
CpuUtilizationTarget: pulumi.Float64(0),
CustomRules: yandex.ComputeInstanceGroupScalePolicyAutoScaleCustomRuleArray{
&yandex.ComputeInstanceGroupScalePolicyAutoScaleCustomRuleArgs{
MetricName: pulumi.String("string"),
MetricType: pulumi.String("string"),
RuleType: pulumi.String("string"),
Target: pulumi.Float64(0),
FolderId: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
Service: pulumi.String("string"),
},
},
MaxSize: pulumi.Int(0),
MinZoneSize: pulumi.Int(0),
StabilizationDuration: pulumi.Int(0),
WarmupDuration: pulumi.Int(0),
},
FixedScale: &yandex.ComputeInstanceGroupScalePolicyFixedScaleArgs{
Size: pulumi.Int(0),
},
TestAutoScale: &yandex.ComputeInstanceGroupScalePolicyTestAutoScaleArgs{
InitialSize: pulumi.Int(0),
MeasurementDuration: pulumi.Int(0),
CpuUtilizationTarget: pulumi.Float64(0),
CustomRules: yandex.ComputeInstanceGroupScalePolicyTestAutoScaleCustomRuleArray{
&yandex.ComputeInstanceGroupScalePolicyTestAutoScaleCustomRuleArgs{
MetricName: pulumi.String("string"),
MetricType: pulumi.String("string"),
RuleType: pulumi.String("string"),
Target: pulumi.Float64(0),
FolderId: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
Service: pulumi.String("string"),
},
},
MaxSize: pulumi.Int(0),
MinZoneSize: pulumi.Int(0),
StabilizationDuration: pulumi.Int(0),
WarmupDuration: pulumi.Int(0),
},
},
DeployPolicy: &yandex.ComputeInstanceGroupDeployPolicyArgs{
MaxExpansion: pulumi.Int(0),
MaxUnavailable: pulumi.Int(0),
MaxCreating: pulumi.Int(0),
MaxDeleting: pulumi.Int(0),
StartupDuration: pulumi.Int(0),
Strategy: pulumi.String("string"),
},
InstanceTemplate: &yandex.ComputeInstanceGroupInstanceTemplateArgs{
BootDisk: &yandex.ComputeInstanceGroupInstanceTemplateBootDiskArgs{
DeviceName: pulumi.String("string"),
DiskId: pulumi.String("string"),
InitializeParams: &yandex.ComputeInstanceGroupInstanceTemplateBootDiskInitializeParamsArgs{
Description: pulumi.String("string"),
ImageId: pulumi.String("string"),
Size: pulumi.Int(0),
SnapshotId: pulumi.String("string"),
Type: pulumi.String("string"),
},
Mode: pulumi.String("string"),
},
Resources: &yandex.ComputeInstanceGroupInstanceTemplateResourcesArgs{
Cores: pulumi.Int(0),
Memory: pulumi.Float64(0),
CoreFraction: pulumi.Int(0),
Gpus: pulumi.Int(0),
},
NetworkInterfaces: yandex.ComputeInstanceGroupInstanceTemplateNetworkInterfaceArray{
&yandex.ComputeInstanceGroupInstanceTemplateNetworkInterfaceArgs{
DnsRecords: yandex.ComputeInstanceGroupInstanceTemplateNetworkInterfaceDnsRecordArray{
&yandex.ComputeInstanceGroupInstanceTemplateNetworkInterfaceDnsRecordArgs{
Fqdn: pulumi.String("string"),
DnsZoneId: pulumi.String("string"),
Ptr: pulumi.Bool(false),
Ttl: pulumi.Int(0),
},
},
IpAddress: pulumi.String("string"),
Ipv4: pulumi.Bool(false),
Ipv6: pulumi.Bool(false),
Ipv6Address: pulumi.String("string"),
Ipv6DnsRecords: yandex.ComputeInstanceGroupInstanceTemplateNetworkInterfaceIpv6DnsRecordArray{
&yandex.ComputeInstanceGroupInstanceTemplateNetworkInterfaceIpv6DnsRecordArgs{
Fqdn: pulumi.String("string"),
DnsZoneId: pulumi.String("string"),
Ptr: pulumi.Bool(false),
Ttl: pulumi.Int(0),
},
},
Nat: pulumi.Bool(false),
NatDnsRecords: yandex.ComputeInstanceGroupInstanceTemplateNetworkInterfaceNatDnsRecordArray{
&yandex.ComputeInstanceGroupInstanceTemplateNetworkInterfaceNatDnsRecordArgs{
Fqdn: pulumi.String("string"),
DnsZoneId: pulumi.String("string"),
Ptr: pulumi.Bool(false),
Ttl: pulumi.Int(0),
},
},
NatIpAddress: pulumi.String("string"),
NetworkId: pulumi.String("string"),
SecurityGroupIds: pulumi.StringArray{
pulumi.String("string"),
},
SubnetIds: pulumi.StringArray{
pulumi.String("string"),
},
},
},
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
Metadata: pulumi.StringMap{
"string": pulumi.String("string"),
},
Name: pulumi.String("string"),
Hostname: pulumi.String("string"),
NetworkSettings: yandex.ComputeInstanceGroupInstanceTemplateNetworkSettingArray{
&yandex.ComputeInstanceGroupInstanceTemplateNetworkSettingArgs{
Type: pulumi.String("string"),
},
},
PlacementPolicy: &yandex.ComputeInstanceGroupInstanceTemplatePlacementPolicyArgs{
PlacementGroupId: pulumi.String("string"),
},
PlatformId: pulumi.String("string"),
Description: pulumi.String("string"),
SchedulingPolicy: &yandex.ComputeInstanceGroupInstanceTemplateSchedulingPolicyArgs{
Preemptible: pulumi.Bool(false),
},
SecondaryDisks: yandex.ComputeInstanceGroupInstanceTemplateSecondaryDiskArray{
&yandex.ComputeInstanceGroupInstanceTemplateSecondaryDiskArgs{
DeviceName: pulumi.String("string"),
DiskId: pulumi.String("string"),
InitializeParams: &yandex.ComputeInstanceGroupInstanceTemplateSecondaryDiskInitializeParamsArgs{
Description: pulumi.String("string"),
ImageId: pulumi.String("string"),
Size: pulumi.Int(0),
SnapshotId: pulumi.String("string"),
Type: pulumi.String("string"),
},
Mode: pulumi.String("string"),
},
},
ServiceAccountId: pulumi.String("string"),
},
HealthChecks: yandex.ComputeInstanceGroupHealthCheckArray{
&yandex.ComputeInstanceGroupHealthCheckArgs{
HealthyThreshold: pulumi.Int(0),
HttpOptions: yandex.ComputeInstanceGroupHealthCheckHttpOptionArray{
&yandex.ComputeInstanceGroupHealthCheckHttpOptionArgs{
Path: pulumi.String("string"),
Port: pulumi.Int(0),
},
},
Interval: pulumi.Int(0),
TcpOptions: &yandex.ComputeInstanceGroupHealthCheckTcpOptionsArgs{
Port: pulumi.Int(0),
},
Timeout: pulumi.Int(0),
UnhealthyThreshold: pulumi.Int(0),
},
},
FolderId: pulumi.String("string"),
Description: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
LoadBalancer: &yandex.ComputeInstanceGroupLoadBalancerArgs{
MaxOpeningTrafficDuration: pulumi.Int(0),
StatusMessage: pulumi.String("string"),
TargetGroupDescription: pulumi.String("string"),
TargetGroupId: pulumi.String("string"),
TargetGroupLabels: pulumi.StringMap{
"string": pulumi.String("string"),
},
TargetGroupName: pulumi.String("string"),
},
MaxCheckingHealthDuration: pulumi.Int(0),
Name: pulumi.String("string"),
DeletionProtection: pulumi.Bool(false),
ApplicationLoadBalancer: &yandex.ComputeInstanceGroupApplicationLoadBalancerArgs{
MaxOpeningTrafficDuration: pulumi.Int(0),
StatusMessage: pulumi.String("string"),
TargetGroupDescription: pulumi.String("string"),
TargetGroupId: pulumi.String("string"),
TargetGroupLabels: pulumi.StringMap{
"string": pulumi.String("string"),
},
TargetGroupName: pulumi.String("string"),
},
Variables: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var computeInstanceGroupResource = new ComputeInstanceGroup("computeInstanceGroupResource", ComputeInstanceGroupArgs.builder()
.allocationPolicy(ComputeInstanceGroupAllocationPolicyArgs.builder()
.zones("string")
.build())
.serviceAccountId("string")
.scalePolicy(ComputeInstanceGroupScalePolicyArgs.builder()
.autoScale(ComputeInstanceGroupScalePolicyAutoScaleArgs.builder()
.initialSize(0)
.measurementDuration(0)
.cpuUtilizationTarget(0)
.customRules(ComputeInstanceGroupScalePolicyAutoScaleCustomRuleArgs.builder()
.metricName("string")
.metricType("string")
.ruleType("string")
.target(0)
.folderId("string")
.labels(Map.of("string", "string"))
.service("string")
.build())
.maxSize(0)
.minZoneSize(0)
.stabilizationDuration(0)
.warmupDuration(0)
.build())
.fixedScale(ComputeInstanceGroupScalePolicyFixedScaleArgs.builder()
.size(0)
.build())
.testAutoScale(ComputeInstanceGroupScalePolicyTestAutoScaleArgs.builder()
.initialSize(0)
.measurementDuration(0)
.cpuUtilizationTarget(0)
.customRules(ComputeInstanceGroupScalePolicyTestAutoScaleCustomRuleArgs.builder()
.metricName("string")
.metricType("string")
.ruleType("string")
.target(0)
.folderId("string")
.labels(Map.of("string", "string"))
.service("string")
.build())
.maxSize(0)
.minZoneSize(0)
.stabilizationDuration(0)
.warmupDuration(0)
.build())
.build())
.deployPolicy(ComputeInstanceGroupDeployPolicyArgs.builder()
.maxExpansion(0)
.maxUnavailable(0)
.maxCreating(0)
.maxDeleting(0)
.startupDuration(0)
.strategy("string")
.build())
.instanceTemplate(ComputeInstanceGroupInstanceTemplateArgs.builder()
.bootDisk(ComputeInstanceGroupInstanceTemplateBootDiskArgs.builder()
.deviceName("string")
.diskId("string")
.initializeParams(ComputeInstanceGroupInstanceTemplateBootDiskInitializeParamsArgs.builder()
.description("string")
.imageId("string")
.size(0)
.snapshotId("string")
.type("string")
.build())
.mode("string")
.build())
.resources(ComputeInstanceGroupInstanceTemplateResourcesArgs.builder()
.cores(0)
.memory(0)
.coreFraction(0)
.gpus(0)
.build())
.networkInterfaces(ComputeInstanceGroupInstanceTemplateNetworkInterfaceArgs.builder()
.dnsRecords(ComputeInstanceGroupInstanceTemplateNetworkInterfaceDnsRecordArgs.builder()
.fqdn("string")
.dnsZoneId("string")
.ptr(false)
.ttl(0)
.build())
.ipAddress("string")
.ipv4(false)
.ipv6(false)
.ipv6Address("string")
.ipv6DnsRecords(ComputeInstanceGroupInstanceTemplateNetworkInterfaceIpv6DnsRecordArgs.builder()
.fqdn("string")
.dnsZoneId("string")
.ptr(false)
.ttl(0)
.build())
.nat(false)
.natDnsRecords(ComputeInstanceGroupInstanceTemplateNetworkInterfaceNatDnsRecordArgs.builder()
.fqdn("string")
.dnsZoneId("string")
.ptr(false)
.ttl(0)
.build())
.natIpAddress("string")
.networkId("string")
.securityGroupIds("string")
.subnetIds("string")
.build())
.labels(Map.of("string", "string"))
.metadata(Map.of("string", "string"))
.name("string")
.hostname("string")
.networkSettings(ComputeInstanceGroupInstanceTemplateNetworkSettingArgs.builder()
.type("string")
.build())
.placementPolicy(ComputeInstanceGroupInstanceTemplatePlacementPolicyArgs.builder()
.placementGroupId("string")
.build())
.platformId("string")
.description("string")
.schedulingPolicy(ComputeInstanceGroupInstanceTemplateSchedulingPolicyArgs.builder()
.preemptible(false)
.build())
.secondaryDisks(ComputeInstanceGroupInstanceTemplateSecondaryDiskArgs.builder()
.deviceName("string")
.diskId("string")
.initializeParams(ComputeInstanceGroupInstanceTemplateSecondaryDiskInitializeParamsArgs.builder()
.description("string")
.imageId("string")
.size(0)
.snapshotId("string")
.type("string")
.build())
.mode("string")
.build())
.serviceAccountId("string")
.build())
.healthChecks(ComputeInstanceGroupHealthCheckArgs.builder()
.healthyThreshold(0)
.httpOptions(ComputeInstanceGroupHealthCheckHttpOptionArgs.builder()
.path("string")
.port(0)
.build())
.interval(0)
.tcpOptions(ComputeInstanceGroupHealthCheckTcpOptionsArgs.builder()
.port(0)
.build())
.timeout(0)
.unhealthyThreshold(0)
.build())
.folderId("string")
.description("string")
.labels(Map.of("string", "string"))
.loadBalancer(ComputeInstanceGroupLoadBalancerArgs.builder()
.maxOpeningTrafficDuration(0)
.statusMessage("string")
.targetGroupDescription("string")
.targetGroupId("string")
.targetGroupLabels(Map.of("string", "string"))
.targetGroupName("string")
.build())
.maxCheckingHealthDuration(0)
.name("string")
.deletionProtection(false)
.applicationLoadBalancer(ComputeInstanceGroupApplicationLoadBalancerArgs.builder()
.maxOpeningTrafficDuration(0)
.statusMessage("string")
.targetGroupDescription("string")
.targetGroupId("string")
.targetGroupLabels(Map.of("string", "string"))
.targetGroupName("string")
.build())
.variables(Map.of("string", "string"))
.build());
compute_instance_group_resource = yandex.ComputeInstanceGroup("computeInstanceGroupResource",
allocation_policy={
"zones": ["string"],
},
service_account_id="string",
scale_policy={
"auto_scale": {
"initial_size": 0,
"measurement_duration": 0,
"cpu_utilization_target": 0,
"custom_rules": [{
"metric_name": "string",
"metric_type": "string",
"rule_type": "string",
"target": 0,
"folder_id": "string",
"labels": {
"string": "string",
},
"service": "string",
}],
"max_size": 0,
"min_zone_size": 0,
"stabilization_duration": 0,
"warmup_duration": 0,
},
"fixed_scale": {
"size": 0,
},
"test_auto_scale": {
"initial_size": 0,
"measurement_duration": 0,
"cpu_utilization_target": 0,
"custom_rules": [{
"metric_name": "string",
"metric_type": "string",
"rule_type": "string",
"target": 0,
"folder_id": "string",
"labels": {
"string": "string",
},
"service": "string",
}],
"max_size": 0,
"min_zone_size": 0,
"stabilization_duration": 0,
"warmup_duration": 0,
},
},
deploy_policy={
"max_expansion": 0,
"max_unavailable": 0,
"max_creating": 0,
"max_deleting": 0,
"startup_duration": 0,
"strategy": "string",
},
instance_template={
"boot_disk": {
"device_name": "string",
"disk_id": "string",
"initialize_params": {
"description": "string",
"image_id": "string",
"size": 0,
"snapshot_id": "string",
"type": "string",
},
"mode": "string",
},
"resources": {
"cores": 0,
"memory": 0,
"core_fraction": 0,
"gpus": 0,
},
"network_interfaces": [{
"dns_records": [{
"fqdn": "string",
"dns_zone_id": "string",
"ptr": False,
"ttl": 0,
}],
"ip_address": "string",
"ipv4": False,
"ipv6": False,
"ipv6_address": "string",
"ipv6_dns_records": [{
"fqdn": "string",
"dns_zone_id": "string",
"ptr": False,
"ttl": 0,
}],
"nat": False,
"nat_dns_records": [{
"fqdn": "string",
"dns_zone_id": "string",
"ptr": False,
"ttl": 0,
}],
"nat_ip_address": "string",
"network_id": "string",
"security_group_ids": ["string"],
"subnet_ids": ["string"],
}],
"labels": {
"string": "string",
},
"metadata": {
"string": "string",
},
"name": "string",
"hostname": "string",
"network_settings": [{
"type": "string",
}],
"placement_policy": {
"placement_group_id": "string",
},
"platform_id": "string",
"description": "string",
"scheduling_policy": {
"preemptible": False,
},
"secondary_disks": [{
"device_name": "string",
"disk_id": "string",
"initialize_params": {
"description": "string",
"image_id": "string",
"size": 0,
"snapshot_id": "string",
"type": "string",
},
"mode": "string",
}],
"service_account_id": "string",
},
health_checks=[{
"healthy_threshold": 0,
"http_options": [{
"path": "string",
"port": 0,
}],
"interval": 0,
"tcp_options": {
"port": 0,
},
"timeout": 0,
"unhealthy_threshold": 0,
}],
folder_id="string",
description="string",
labels={
"string": "string",
},
load_balancer={
"max_opening_traffic_duration": 0,
"status_message": "string",
"target_group_description": "string",
"target_group_id": "string",
"target_group_labels": {
"string": "string",
},
"target_group_name": "string",
},
max_checking_health_duration=0,
name="string",
deletion_protection=False,
application_load_balancer={
"max_opening_traffic_duration": 0,
"status_message": "string",
"target_group_description": "string",
"target_group_id": "string",
"target_group_labels": {
"string": "string",
},
"target_group_name": "string",
},
variables={
"string": "string",
})
const computeInstanceGroupResource = new yandex.ComputeInstanceGroup("computeInstanceGroupResource", {
allocationPolicy: {
zones: ["string"],
},
serviceAccountId: "string",
scalePolicy: {
autoScale: {
initialSize: 0,
measurementDuration: 0,
cpuUtilizationTarget: 0,
customRules: [{
metricName: "string",
metricType: "string",
ruleType: "string",
target: 0,
folderId: "string",
labels: {
string: "string",
},
service: "string",
}],
maxSize: 0,
minZoneSize: 0,
stabilizationDuration: 0,
warmupDuration: 0,
},
fixedScale: {
size: 0,
},
testAutoScale: {
initialSize: 0,
measurementDuration: 0,
cpuUtilizationTarget: 0,
customRules: [{
metricName: "string",
metricType: "string",
ruleType: "string",
target: 0,
folderId: "string",
labels: {
string: "string",
},
service: "string",
}],
maxSize: 0,
minZoneSize: 0,
stabilizationDuration: 0,
warmupDuration: 0,
},
},
deployPolicy: {
maxExpansion: 0,
maxUnavailable: 0,
maxCreating: 0,
maxDeleting: 0,
startupDuration: 0,
strategy: "string",
},
instanceTemplate: {
bootDisk: {
deviceName: "string",
diskId: "string",
initializeParams: {
description: "string",
imageId: "string",
size: 0,
snapshotId: "string",
type: "string",
},
mode: "string",
},
resources: {
cores: 0,
memory: 0,
coreFraction: 0,
gpus: 0,
},
networkInterfaces: [{
dnsRecords: [{
fqdn: "string",
dnsZoneId: "string",
ptr: false,
ttl: 0,
}],
ipAddress: "string",
ipv4: false,
ipv6: false,
ipv6Address: "string",
ipv6DnsRecords: [{
fqdn: "string",
dnsZoneId: "string",
ptr: false,
ttl: 0,
}],
nat: false,
natDnsRecords: [{
fqdn: "string",
dnsZoneId: "string",
ptr: false,
ttl: 0,
}],
natIpAddress: "string",
networkId: "string",
securityGroupIds: ["string"],
subnetIds: ["string"],
}],
labels: {
string: "string",
},
metadata: {
string: "string",
},
name: "string",
hostname: "string",
networkSettings: [{
type: "string",
}],
placementPolicy: {
placementGroupId: "string",
},
platformId: "string",
description: "string",
schedulingPolicy: {
preemptible: false,
},
secondaryDisks: [{
deviceName: "string",
diskId: "string",
initializeParams: {
description: "string",
imageId: "string",
size: 0,
snapshotId: "string",
type: "string",
},
mode: "string",
}],
serviceAccountId: "string",
},
healthChecks: [{
healthyThreshold: 0,
httpOptions: [{
path: "string",
port: 0,
}],
interval: 0,
tcpOptions: {
port: 0,
},
timeout: 0,
unhealthyThreshold: 0,
}],
folderId: "string",
description: "string",
labels: {
string: "string",
},
loadBalancer: {
maxOpeningTrafficDuration: 0,
statusMessage: "string",
targetGroupDescription: "string",
targetGroupId: "string",
targetGroupLabels: {
string: "string",
},
targetGroupName: "string",
},
maxCheckingHealthDuration: 0,
name: "string",
deletionProtection: false,
applicationLoadBalancer: {
maxOpeningTrafficDuration: 0,
statusMessage: "string",
targetGroupDescription: "string",
targetGroupId: "string",
targetGroupLabels: {
string: "string",
},
targetGroupName: "string",
},
variables: {
string: "string",
},
});
type: yandex:ComputeInstanceGroup
properties:
allocationPolicy:
zones:
- string
applicationLoadBalancer:
maxOpeningTrafficDuration: 0
statusMessage: string
targetGroupDescription: string
targetGroupId: string
targetGroupLabels:
string: string
targetGroupName: string
deletionProtection: false
deployPolicy:
maxCreating: 0
maxDeleting: 0
maxExpansion: 0
maxUnavailable: 0
startupDuration: 0
strategy: string
description: string
folderId: string
healthChecks:
- healthyThreshold: 0
httpOptions:
- path: string
port: 0
interval: 0
tcpOptions:
port: 0
timeout: 0
unhealthyThreshold: 0
instanceTemplate:
bootDisk:
deviceName: string
diskId: string
initializeParams:
description: string
imageId: string
size: 0
snapshotId: string
type: string
mode: string
description: string
hostname: string
labels:
string: string
metadata:
string: string
name: string
networkInterfaces:
- dnsRecords:
- dnsZoneId: string
fqdn: string
ptr: false
ttl: 0
ipAddress: string
ipv4: false
ipv6: false
ipv6Address: string
ipv6DnsRecords:
- dnsZoneId: string
fqdn: string
ptr: false
ttl: 0
nat: false
natDnsRecords:
- dnsZoneId: string
fqdn: string
ptr: false
ttl: 0
natIpAddress: string
networkId: string
securityGroupIds:
- string
subnetIds:
- string
networkSettings:
- type: string
placementPolicy:
placementGroupId: string
platformId: string
resources:
coreFraction: 0
cores: 0
gpus: 0
memory: 0
schedulingPolicy:
preemptible: false
secondaryDisks:
- deviceName: string
diskId: string
initializeParams:
description: string
imageId: string
size: 0
snapshotId: string
type: string
mode: string
serviceAccountId: string
labels:
string: string
loadBalancer:
maxOpeningTrafficDuration: 0
statusMessage: string
targetGroupDescription: string
targetGroupId: string
targetGroupLabels:
string: string
targetGroupName: string
maxCheckingHealthDuration: 0
name: string
scalePolicy:
autoScale:
cpuUtilizationTarget: 0
customRules:
- folderId: string
labels:
string: string
metricName: string
metricType: string
ruleType: string
service: string
target: 0
initialSize: 0
maxSize: 0
measurementDuration: 0
minZoneSize: 0
stabilizationDuration: 0
warmupDuration: 0
fixedScale:
size: 0
testAutoScale:
cpuUtilizationTarget: 0
customRules:
- folderId: string
labels:
string: string
metricName: string
metricType: string
ruleType: string
service: string
target: 0
initialSize: 0
maxSize: 0
measurementDuration: 0
minZoneSize: 0
stabilizationDuration: 0
warmupDuration: 0
serviceAccountId: string
variables:
string: string
ComputeInstanceGroup Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ComputeInstanceGroup resource accepts the following input properties:
- Allocation
Policy ComputeInstance Group Allocation Policy - The allocation policy of the instance group by zone and region. The structure is documented below.
- Deploy
Policy ComputeInstance Group Deploy Policy - The deployment policy of the instance group. The structure is documented below.
- Instance
Template ComputeInstance Group Instance Template - The template for creating new instances. The structure is documented below.
- Scale
Policy ComputeInstance Group Scale Policy - The scaling policy of the instance group. The structure is documented below.
- Service
Account stringId - The ID of the service account authorized for this instance.
- Application
Load ComputeBalancer Instance Group Application Load Balancer - Application Load balancing (L7) specifications. The structure is documented below.
- Deletion
Protection bool - Flag that protects the instance group from accidental deletion.
- Description string
- A description of the boot disk.
- Folder
Id string - Folder ID of custom metric in Yandex Monitoring that should be used for scaling.
- Health
Checks List<ComputeInstance Group Health Check> - Health check specifications. The structure is documented below.
- Labels Dictionary<string, string>
- A map of labels of metric.
- Load
Balancer ComputeInstance Group Load Balancer - Load balancing specifications. The structure is documented below.
- Max
Checking intHealth Duration - Timeout for waiting for the VM to become healthy. If the timeout is exceeded, the VM will be turned off based on the deployment policy. Specified in seconds.
- Name string
- Name template of the instance.
In order to be unique it must contain at least one of instance unique placeholders: {instance.short_id} {instance.index} combination of {instance.zone_id} and {instance.index_in_zone} Example: my-instance-{instance.index} If not set, default is used: {instance_group.id}-{instance.short_id} It may also contain another placeholders, see metadata doc for full list. - Variables Dictionary<string, string>
- A set of key/value variables pairs to assign to the instance group.
- Allocation
Policy ComputeInstance Group Allocation Policy Args - The allocation policy of the instance group by zone and region. The structure is documented below.
- Deploy
Policy ComputeInstance Group Deploy Policy Args - The deployment policy of the instance group. The structure is documented below.
- Instance
Template ComputeInstance Group Instance Template Args - The template for creating new instances. The structure is documented below.
- Scale
Policy ComputeInstance Group Scale Policy Args - The scaling policy of the instance group. The structure is documented below.
- Service
Account stringId - The ID of the service account authorized for this instance.
- Application
Load ComputeBalancer Instance Group Application Load Balancer Args - Application Load balancing (L7) specifications. The structure is documented below.
- Deletion
Protection bool - Flag that protects the instance group from accidental deletion.
- Description string
- A description of the boot disk.
- Folder
Id string - Folder ID of custom metric in Yandex Monitoring that should be used for scaling.
- Health
Checks []ComputeInstance Group Health Check Args - Health check specifications. The structure is documented below.
- Labels map[string]string
- A map of labels of metric.
- Load
Balancer ComputeInstance Group Load Balancer Args - Load balancing specifications. The structure is documented below.
- Max
Checking intHealth Duration - Timeout for waiting for the VM to become healthy. If the timeout is exceeded, the VM will be turned off based on the deployment policy. Specified in seconds.
- Name string
- Name template of the instance.
In order to be unique it must contain at least one of instance unique placeholders: {instance.short_id} {instance.index} combination of {instance.zone_id} and {instance.index_in_zone} Example: my-instance-{instance.index} If not set, default is used: {instance_group.id}-{instance.short_id} It may also contain another placeholders, see metadata doc for full list. - Variables map[string]string
- A set of key/value variables pairs to assign to the instance group.
- allocation
Policy ComputeInstance Group Allocation Policy - The allocation policy of the instance group by zone and region. The structure is documented below.
- deploy
Policy ComputeInstance Group Deploy Policy - The deployment policy of the instance group. The structure is documented below.
- instance
Template ComputeInstance Group Instance Template - The template for creating new instances. The structure is documented below.
- scale
Policy ComputeInstance Group Scale Policy - The scaling policy of the instance group. The structure is documented below.
- service
Account StringId - The ID of the service account authorized for this instance.
- application
Load ComputeBalancer Instance Group Application Load Balancer - Application Load balancing (L7) specifications. The structure is documented below.
- deletion
Protection Boolean - Flag that protects the instance group from accidental deletion.
- description String
- A description of the boot disk.
- folder
Id String - Folder ID of custom metric in Yandex Monitoring that should be used for scaling.
- health
Checks List<ComputeInstance Group Health Check> - Health check specifications. The structure is documented below.
- labels Map<String,String>
- A map of labels of metric.
- load
Balancer ComputeInstance Group Load Balancer - Load balancing specifications. The structure is documented below.
- max
Checking IntegerHealth Duration - Timeout for waiting for the VM to become healthy. If the timeout is exceeded, the VM will be turned off based on the deployment policy. Specified in seconds.
- name String
- Name template of the instance.
In order to be unique it must contain at least one of instance unique placeholders: {instance.short_id} {instance.index} combination of {instance.zone_id} and {instance.index_in_zone} Example: my-instance-{instance.index} If not set, default is used: {instance_group.id}-{instance.short_id} It may also contain another placeholders, see metadata doc for full list. - variables Map<String,String>
- A set of key/value variables pairs to assign to the instance group.
- allocation
Policy ComputeInstance Group Allocation Policy - The allocation policy of the instance group by zone and region. The structure is documented below.
- deploy
Policy ComputeInstance Group Deploy Policy - The deployment policy of the instance group. The structure is documented below.
- instance
Template ComputeInstance Group Instance Template - The template for creating new instances. The structure is documented below.
- scale
Policy ComputeInstance Group Scale Policy - The scaling policy of the instance group. The structure is documented below.
- service
Account stringId - The ID of the service account authorized for this instance.
- application
Load ComputeBalancer Instance Group Application Load Balancer - Application Load balancing (L7) specifications. The structure is documented below.
- deletion
Protection boolean - Flag that protects the instance group from accidental deletion.
- description string
- A description of the boot disk.
- folder
Id string - Folder ID of custom metric in Yandex Monitoring that should be used for scaling.
- health
Checks ComputeInstance Group Health Check[] - Health check specifications. The structure is documented below.
- labels {[key: string]: string}
- A map of labels of metric.
- load
Balancer ComputeInstance Group Load Balancer - Load balancing specifications. The structure is documented below.
- max
Checking numberHealth Duration - Timeout for waiting for the VM to become healthy. If the timeout is exceeded, the VM will be turned off based on the deployment policy. Specified in seconds.
- name string
- Name template of the instance.
In order to be unique it must contain at least one of instance unique placeholders: {instance.short_id} {instance.index} combination of {instance.zone_id} and {instance.index_in_zone} Example: my-instance-{instance.index} If not set, default is used: {instance_group.id}-{instance.short_id} It may also contain another placeholders, see metadata doc for full list. - variables {[key: string]: string}
- A set of key/value variables pairs to assign to the instance group.
- allocation_
policy ComputeInstance Group Allocation Policy Args - The allocation policy of the instance group by zone and region. The structure is documented below.
- deploy_
policy ComputeInstance Group Deploy Policy Args - The deployment policy of the instance group. The structure is documented below.
- instance_
template ComputeInstance Group Instance Template Args - The template for creating new instances. The structure is documented below.
- scale_
policy ComputeInstance Group Scale Policy Args - The scaling policy of the instance group. The structure is documented below.
- service_
account_ strid - The ID of the service account authorized for this instance.
- application_
load_ Computebalancer Instance Group Application Load Balancer Args - Application Load balancing (L7) specifications. The structure is documented below.
- deletion_
protection bool - Flag that protects the instance group from accidental deletion.
- description str
- A description of the boot disk.
- folder_
id str - Folder ID of custom metric in Yandex Monitoring that should be used for scaling.
- health_
checks Sequence[ComputeInstance Group Health Check Args] - Health check specifications. The structure is documented below.
- labels Mapping[str, str]
- A map of labels of metric.
- load_
balancer ComputeInstance Group Load Balancer Args - Load balancing specifications. The structure is documented below.
- max_
checking_ inthealth_ duration - Timeout for waiting for the VM to become healthy. If the timeout is exceeded, the VM will be turned off based on the deployment policy. Specified in seconds.
- name str
- Name template of the instance.
In order to be unique it must contain at least one of instance unique placeholders: {instance.short_id} {instance.index} combination of {instance.zone_id} and {instance.index_in_zone} Example: my-instance-{instance.index} If not set, default is used: {instance_group.id}-{instance.short_id} It may also contain another placeholders, see metadata doc for full list. - variables Mapping[str, str]
- A set of key/value variables pairs to assign to the instance group.
- allocation
Policy Property Map - The allocation policy of the instance group by zone and region. The structure is documented below.
- deploy
Policy Property Map - The deployment policy of the instance group. The structure is documented below.
- instance
Template Property Map - The template for creating new instances. The structure is documented below.
- scale
Policy Property Map - The scaling policy of the instance group. The structure is documented below.
- service
Account StringId - The ID of the service account authorized for this instance.
- application
Load Property MapBalancer - Application Load balancing (L7) specifications. The structure is documented below.
- deletion
Protection Boolean - Flag that protects the instance group from accidental deletion.
- description String
- A description of the boot disk.
- folder
Id String - Folder ID of custom metric in Yandex Monitoring that should be used for scaling.
- health
Checks List<Property Map> - Health check specifications. The structure is documented below.
- labels Map<String>
- A map of labels of metric.
- load
Balancer Property Map - Load balancing specifications. The structure is documented below.
- max
Checking NumberHealth Duration - Timeout for waiting for the VM to become healthy. If the timeout is exceeded, the VM will be turned off based on the deployment policy. Specified in seconds.
- name String
- Name template of the instance.
In order to be unique it must contain at least one of instance unique placeholders: {instance.short_id} {instance.index} combination of {instance.zone_id} and {instance.index_in_zone} Example: my-instance-{instance.index} If not set, default is used: {instance_group.id}-{instance.short_id} It may also contain another placeholders, see metadata doc for full list. - variables Map<String>
- A set of key/value variables pairs to assign to the instance group.
Outputs
All input properties are implicitly available as output properties. Additionally, the ComputeInstanceGroup resource produces the following output properties:
- Created
At string - The instance group creation timestamp.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instances
List<Compute
Instance Group Instance> - Status string
- The status of the instance.
- Created
At string - The instance group creation timestamp.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instances
[]Compute
Instance Group Instance - Status string
- The status of the instance.
- created
At String - The instance group creation timestamp.
- id String
- The provider-assigned unique ID for this managed resource.
- instances
List<Compute
Instance Group Instance> - status String
- The status of the instance.
- created
At string - The instance group creation timestamp.
- id string
- The provider-assigned unique ID for this managed resource.
- instances
Compute
Instance Group Instance[] - status string
- The status of the instance.
- created_
at str - The instance group creation timestamp.
- id str
- The provider-assigned unique ID for this managed resource.
- instances
Sequence[Compute
Instance Group Instance] - status str
- The status of the instance.
- created
At String - The instance group creation timestamp.
- id String
- The provider-assigned unique ID for this managed resource.
- instances List<Property Map>
- status String
- The status of the instance.
Look up Existing ComputeInstanceGroup Resource
Get an existing ComputeInstanceGroup 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?: ComputeInstanceGroupState, opts?: CustomResourceOptions): ComputeInstanceGroup
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
allocation_policy: Optional[ComputeInstanceGroupAllocationPolicyArgs] = None,
application_load_balancer: Optional[ComputeInstanceGroupApplicationLoadBalancerArgs] = None,
created_at: Optional[str] = None,
deletion_protection: Optional[bool] = None,
deploy_policy: Optional[ComputeInstanceGroupDeployPolicyArgs] = None,
description: Optional[str] = None,
folder_id: Optional[str] = None,
health_checks: Optional[Sequence[ComputeInstanceGroupHealthCheckArgs]] = None,
instance_template: Optional[ComputeInstanceGroupInstanceTemplateArgs] = None,
instances: Optional[Sequence[ComputeInstanceGroupInstanceArgs]] = None,
labels: Optional[Mapping[str, str]] = None,
load_balancer: Optional[ComputeInstanceGroupLoadBalancerArgs] = None,
max_checking_health_duration: Optional[int] = None,
name: Optional[str] = None,
scale_policy: Optional[ComputeInstanceGroupScalePolicyArgs] = None,
service_account_id: Optional[str] = None,
status: Optional[str] = None,
variables: Optional[Mapping[str, str]] = None) -> ComputeInstanceGroup
func GetComputeInstanceGroup(ctx *Context, name string, id IDInput, state *ComputeInstanceGroupState, opts ...ResourceOption) (*ComputeInstanceGroup, error)
public static ComputeInstanceGroup Get(string name, Input<string> id, ComputeInstanceGroupState? state, CustomResourceOptions? opts = null)
public static ComputeInstanceGroup get(String name, Output<String> id, ComputeInstanceGroupState 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.
- Allocation
Policy ComputeInstance Group Allocation Policy - The allocation policy of the instance group by zone and region. The structure is documented below.
- Application
Load ComputeBalancer Instance Group Application Load Balancer - Application Load balancing (L7) specifications. The structure is documented below.
- Created
At string - The instance group creation timestamp.
- Deletion
Protection bool - Flag that protects the instance group from accidental deletion.
- Deploy
Policy ComputeInstance Group Deploy Policy - The deployment policy of the instance group. The structure is documented below.
- Description string
- A description of the boot disk.
- Folder
Id string - Folder ID of custom metric in Yandex Monitoring that should be used for scaling.
- Health
Checks List<ComputeInstance Group Health Check> - Health check specifications. The structure is documented below.
- Instance
Template ComputeInstance Group Instance Template - The template for creating new instances. The structure is documented below.
- Instances
List<Compute
Instance Group Instance> - Labels Dictionary<string, string>
- A map of labels of metric.
- Load
Balancer ComputeInstance Group Load Balancer - Load balancing specifications. The structure is documented below.
- Max
Checking intHealth Duration - Timeout for waiting for the VM to become healthy. If the timeout is exceeded, the VM will be turned off based on the deployment policy. Specified in seconds.
- Name string
- Name template of the instance.
In order to be unique it must contain at least one of instance unique placeholders: {instance.short_id} {instance.index} combination of {instance.zone_id} and {instance.index_in_zone} Example: my-instance-{instance.index} If not set, default is used: {instance_group.id}-{instance.short_id} It may also contain another placeholders, see metadata doc for full list. - Scale
Policy ComputeInstance Group Scale Policy - The scaling policy of the instance group. The structure is documented below.
- Service
Account stringId - The ID of the service account authorized for this instance.
- Status string
- The status of the instance.
- Variables Dictionary<string, string>
- A set of key/value variables pairs to assign to the instance group.
- Allocation
Policy ComputeInstance Group Allocation Policy Args - The allocation policy of the instance group by zone and region. The structure is documented below.
- Application
Load ComputeBalancer Instance Group Application Load Balancer Args - Application Load balancing (L7) specifications. The structure is documented below.
- Created
At string - The instance group creation timestamp.
- Deletion
Protection bool - Flag that protects the instance group from accidental deletion.
- Deploy
Policy ComputeInstance Group Deploy Policy Args - The deployment policy of the instance group. The structure is documented below.
- Description string
- A description of the boot disk.
- Folder
Id string - Folder ID of custom metric in Yandex Monitoring that should be used for scaling.
- Health
Checks []ComputeInstance Group Health Check Args - Health check specifications. The structure is documented below.
- Instance
Template ComputeInstance Group Instance Template Args - The template for creating new instances. The structure is documented below.
- Instances
[]Compute
Instance Group Instance Args - Labels map[string]string
- A map of labels of metric.
- Load
Balancer ComputeInstance Group Load Balancer Args - Load balancing specifications. The structure is documented below.
- Max
Checking intHealth Duration - Timeout for waiting for the VM to become healthy. If the timeout is exceeded, the VM will be turned off based on the deployment policy. Specified in seconds.
- Name string
- Name template of the instance.
In order to be unique it must contain at least one of instance unique placeholders: {instance.short_id} {instance.index} combination of {instance.zone_id} and {instance.index_in_zone} Example: my-instance-{instance.index} If not set, default is used: {instance_group.id}-{instance.short_id} It may also contain another placeholders, see metadata doc for full list. - Scale
Policy ComputeInstance Group Scale Policy Args - The scaling policy of the instance group. The structure is documented below.
- Service
Account stringId - The ID of the service account authorized for this instance.
- Status string
- The status of the instance.
- Variables map[string]string
- A set of key/value variables pairs to assign to the instance group.
- allocation
Policy ComputeInstance Group Allocation Policy - The allocation policy of the instance group by zone and region. The structure is documented below.
- application
Load ComputeBalancer Instance Group Application Load Balancer - Application Load balancing (L7) specifications. The structure is documented below.
- created
At String - The instance group creation timestamp.
- deletion
Protection Boolean - Flag that protects the instance group from accidental deletion.
- deploy
Policy ComputeInstance Group Deploy Policy - The deployment policy of the instance group. The structure is documented below.
- description String
- A description of the boot disk.
- folder
Id String - Folder ID of custom metric in Yandex Monitoring that should be used for scaling.
- health
Checks List<ComputeInstance Group Health Check> - Health check specifications. The structure is documented below.
- instance
Template ComputeInstance Group Instance Template - The template for creating new instances. The structure is documented below.
- instances
List<Compute
Instance Group Instance> - labels Map<String,String>
- A map of labels of metric.
- load
Balancer ComputeInstance Group Load Balancer - Load balancing specifications. The structure is documented below.
- max
Checking IntegerHealth Duration - Timeout for waiting for the VM to become healthy. If the timeout is exceeded, the VM will be turned off based on the deployment policy. Specified in seconds.
- name String
- Name template of the instance.
In order to be unique it must contain at least one of instance unique placeholders: {instance.short_id} {instance.index} combination of {instance.zone_id} and {instance.index_in_zone} Example: my-instance-{instance.index} If not set, default is used: {instance_group.id}-{instance.short_id} It may also contain another placeholders, see metadata doc for full list. - scale
Policy ComputeInstance Group Scale Policy - The scaling policy of the instance group. The structure is documented below.
- service
Account StringId - The ID of the service account authorized for this instance.
- status String
- The status of the instance.
- variables Map<String,String>
- A set of key/value variables pairs to assign to the instance group.
- allocation
Policy ComputeInstance Group Allocation Policy - The allocation policy of the instance group by zone and region. The structure is documented below.
- application
Load ComputeBalancer Instance Group Application Load Balancer - Application Load balancing (L7) specifications. The structure is documented below.
- created
At string - The instance group creation timestamp.
- deletion
Protection boolean - Flag that protects the instance group from accidental deletion.
- deploy
Policy ComputeInstance Group Deploy Policy - The deployment policy of the instance group. The structure is documented below.
- description string
- A description of the boot disk.
- folder
Id string - Folder ID of custom metric in Yandex Monitoring that should be used for scaling.
- health
Checks ComputeInstance Group Health Check[] - Health check specifications. The structure is documented below.
- instance
Template ComputeInstance Group Instance Template - The template for creating new instances. The structure is documented below.
- instances
Compute
Instance Group Instance[] - labels {[key: string]: string}
- A map of labels of metric.
- load
Balancer ComputeInstance Group Load Balancer - Load balancing specifications. The structure is documented below.
- max
Checking numberHealth Duration - Timeout for waiting for the VM to become healthy. If the timeout is exceeded, the VM will be turned off based on the deployment policy. Specified in seconds.
- name string
- Name template of the instance.
In order to be unique it must contain at least one of instance unique placeholders: {instance.short_id} {instance.index} combination of {instance.zone_id} and {instance.index_in_zone} Example: my-instance-{instance.index} If not set, default is used: {instance_group.id}-{instance.short_id} It may also contain another placeholders, see metadata doc for full list. - scale
Policy ComputeInstance Group Scale Policy - The scaling policy of the instance group. The structure is documented below.
- service
Account stringId - The ID of the service account authorized for this instance.
- status string
- The status of the instance.
- variables {[key: string]: string}
- A set of key/value variables pairs to assign to the instance group.
- allocation_
policy ComputeInstance Group Allocation Policy Args - The allocation policy of the instance group by zone and region. The structure is documented below.
- application_
load_ Computebalancer Instance Group Application Load Balancer Args - Application Load balancing (L7) specifications. The structure is documented below.
- created_
at str - The instance group creation timestamp.
- deletion_
protection bool - Flag that protects the instance group from accidental deletion.
- deploy_
policy ComputeInstance Group Deploy Policy Args - The deployment policy of the instance group. The structure is documented below.
- description str
- A description of the boot disk.
- folder_
id str - Folder ID of custom metric in Yandex Monitoring that should be used for scaling.
- health_
checks Sequence[ComputeInstance Group Health Check Args] - Health check specifications. The structure is documented below.
- instance_
template ComputeInstance Group Instance Template Args - The template for creating new instances. The structure is documented below.
- instances
Sequence[Compute
Instance Group Instance Args] - labels Mapping[str, str]
- A map of labels of metric.
- load_
balancer ComputeInstance Group Load Balancer Args - Load balancing specifications. The structure is documented below.
- max_
checking_ inthealth_ duration - Timeout for waiting for the VM to become healthy. If the timeout is exceeded, the VM will be turned off based on the deployment policy. Specified in seconds.
- name str
- Name template of the instance.
In order to be unique it must contain at least one of instance unique placeholders: {instance.short_id} {instance.index} combination of {instance.zone_id} and {instance.index_in_zone} Example: my-instance-{instance.index} If not set, default is used: {instance_group.id}-{instance.short_id} It may also contain another placeholders, see metadata doc for full list. - scale_
policy ComputeInstance Group Scale Policy Args - The scaling policy of the instance group. The structure is documented below.
- service_
account_ strid - The ID of the service account authorized for this instance.
- status str
- The status of the instance.
- variables Mapping[str, str]
- A set of key/value variables pairs to assign to the instance group.
- allocation
Policy Property Map - The allocation policy of the instance group by zone and region. The structure is documented below.
- application
Load Property MapBalancer - Application Load balancing (L7) specifications. The structure is documented below.
- created
At String - The instance group creation timestamp.
- deletion
Protection Boolean - Flag that protects the instance group from accidental deletion.
- deploy
Policy Property Map - The deployment policy of the instance group. The structure is documented below.
- description String
- A description of the boot disk.
- folder
Id String - Folder ID of custom metric in Yandex Monitoring that should be used for scaling.
- health
Checks List<Property Map> - Health check specifications. The structure is documented below.
- instance
Template Property Map - The template for creating new instances. The structure is documented below.
- instances List<Property Map>
- labels Map<String>
- A map of labels of metric.
- load
Balancer Property Map - Load balancing specifications. The structure is documented below.
- max
Checking NumberHealth Duration - Timeout for waiting for the VM to become healthy. If the timeout is exceeded, the VM will be turned off based on the deployment policy. Specified in seconds.
- name String
- Name template of the instance.
In order to be unique it must contain at least one of instance unique placeholders: {instance.short_id} {instance.index} combination of {instance.zone_id} and {instance.index_in_zone} Example: my-instance-{instance.index} If not set, default is used: {instance_group.id}-{instance.short_id} It may also contain another placeholders, see metadata doc for full list. - scale
Policy Property Map - The scaling policy of the instance group. The structure is documented below.
- service
Account StringId - The ID of the service account authorized for this instance.
- status String
- The status of the instance.
- variables Map<String>
- A set of key/value variables pairs to assign to the instance group.
Supporting Types
ComputeInstanceGroupAllocationPolicy, ComputeInstanceGroupAllocationPolicyArgs
- Zones List<string>
- A list of availability zones.
- Zones []string
- A list of availability zones.
- zones List<String>
- A list of availability zones.
- zones string[]
- A list of availability zones.
- zones Sequence[str]
- A list of availability zones.
- zones List<String>
- A list of availability zones.
ComputeInstanceGroupApplicationLoadBalancer, ComputeInstanceGroupApplicationLoadBalancerArgs
- Max
Opening intTraffic Duration - Timeout for waiting for the VM to be checked by the load balancer. If the timeout is exceeded, the VM will be turned off based on the deployment policy. Specified in seconds.
- Status
Message string - The status message of the instance.
- Target
Group stringDescription - A description of the target group.
- Target
Group stringId - Target
Group Dictionary<string, string>Labels - A set of key/value label pairs.
- Target
Group stringName - The name of the target group.
- Max
Opening intTraffic Duration - Timeout for waiting for the VM to be checked by the load balancer. If the timeout is exceeded, the VM will be turned off based on the deployment policy. Specified in seconds.
- Status
Message string - The status message of the instance.
- Target
Group stringDescription - A description of the target group.
- Target
Group stringId - Target
Group map[string]stringLabels - A set of key/value label pairs.
- Target
Group stringName - The name of the target group.
- max
Opening IntegerTraffic Duration - Timeout for waiting for the VM to be checked by the load balancer. If the timeout is exceeded, the VM will be turned off based on the deployment policy. Specified in seconds.
- status
Message String - The status message of the instance.
- target
Group StringDescription - A description of the target group.
- target
Group StringId - target
Group Map<String,String>Labels - A set of key/value label pairs.
- target
Group StringName - The name of the target group.
- max
Opening numberTraffic Duration - Timeout for waiting for the VM to be checked by the load balancer. If the timeout is exceeded, the VM will be turned off based on the deployment policy. Specified in seconds.
- status
Message string - The status message of the instance.
- target
Group stringDescription - A description of the target group.
- target
Group stringId - target
Group {[key: string]: string}Labels - A set of key/value label pairs.
- target
Group stringName - The name of the target group.
- max_
opening_ inttraffic_ duration - Timeout for waiting for the VM to be checked by the load balancer. If the timeout is exceeded, the VM will be turned off based on the deployment policy. Specified in seconds.
- status_
message str - The status message of the instance.
- target_
group_ strdescription - A description of the target group.
- target_
group_ strid - target_
group_ Mapping[str, str]labels - A set of key/value label pairs.
- target_
group_ strname - The name of the target group.
- max
Opening NumberTraffic Duration - Timeout for waiting for the VM to be checked by the load balancer. If the timeout is exceeded, the VM will be turned off based on the deployment policy. Specified in seconds.
- status
Message String - The status message of the instance.
- target
Group StringDescription - A description of the target group.
- target
Group StringId - target
Group Map<String>Labels - A set of key/value label pairs.
- target
Group StringName - The name of the target group.
ComputeInstanceGroupDeployPolicy, ComputeInstanceGroupDeployPolicyArgs
- Max
Expansion int - The maximum number of instances that can be temporarily allocated above the group's target size during the update process.
- int
- The maximum number of running instances that can be taken offline (stopped or deleted) at the same time during the update process.
- Max
Creating int - The maximum number of instances that can be created at the same time.
- Max
Deleting int - The maximum number of instances that can be deleted at the same time.
- Startup
Duration int - The amount of time in seconds to allow for an instance to start. Instance will be considered up and running (and start receiving traffic) only after the startup_duration has elapsed and all health checks are passed.
- Strategy string
- Affects the lifecycle of the instance during deployment. If set to
proactive
(default), Instance Groups can forcefully stop a running instance. Ifopportunistic
, Instance Groups does not stop a running instance. Instead, it will wait until the instance stops itself or becomes unhealthy.
- Max
Expansion int - The maximum number of instances that can be temporarily allocated above the group's target size during the update process.
- int
- The maximum number of running instances that can be taken offline (stopped or deleted) at the same time during the update process.
- Max
Creating int - The maximum number of instances that can be created at the same time.
- Max
Deleting int - The maximum number of instances that can be deleted at the same time.
- Startup
Duration int - The amount of time in seconds to allow for an instance to start. Instance will be considered up and running (and start receiving traffic) only after the startup_duration has elapsed and all health checks are passed.
- Strategy string
- Affects the lifecycle of the instance during deployment. If set to
proactive
(default), Instance Groups can forcefully stop a running instance. Ifopportunistic
, Instance Groups does not stop a running instance. Instead, it will wait until the instance stops itself or becomes unhealthy.
- max
Expansion Integer - The maximum number of instances that can be temporarily allocated above the group's target size during the update process.
- Integer
- The maximum number of running instances that can be taken offline (stopped or deleted) at the same time during the update process.
- max
Creating Integer - The maximum number of instances that can be created at the same time.
- max
Deleting Integer - The maximum number of instances that can be deleted at the same time.
- startup
Duration Integer - The amount of time in seconds to allow for an instance to start. Instance will be considered up and running (and start receiving traffic) only after the startup_duration has elapsed and all health checks are passed.
- strategy String
- Affects the lifecycle of the instance during deployment. If set to
proactive
(default), Instance Groups can forcefully stop a running instance. Ifopportunistic
, Instance Groups does not stop a running instance. Instead, it will wait until the instance stops itself or becomes unhealthy.
- max
Expansion number - The maximum number of instances that can be temporarily allocated above the group's target size during the update process.
- number
- The maximum number of running instances that can be taken offline (stopped or deleted) at the same time during the update process.
- max
Creating number - The maximum number of instances that can be created at the same time.
- max
Deleting number - The maximum number of instances that can be deleted at the same time.
- startup
Duration number - The amount of time in seconds to allow for an instance to start. Instance will be considered up and running (and start receiving traffic) only after the startup_duration has elapsed and all health checks are passed.
- strategy string
- Affects the lifecycle of the instance during deployment. If set to
proactive
(default), Instance Groups can forcefully stop a running instance. Ifopportunistic
, Instance Groups does not stop a running instance. Instead, it will wait until the instance stops itself or becomes unhealthy.
- max_
expansion int - The maximum number of instances that can be temporarily allocated above the group's target size during the update process.
- int
- The maximum number of running instances that can be taken offline (stopped or deleted) at the same time during the update process.
- max_
creating int - The maximum number of instances that can be created at the same time.
- max_
deleting int - The maximum number of instances that can be deleted at the same time.
- startup_
duration int - The amount of time in seconds to allow for an instance to start. Instance will be considered up and running (and start receiving traffic) only after the startup_duration has elapsed and all health checks are passed.
- strategy str
- Affects the lifecycle of the instance during deployment. If set to
proactive
(default), Instance Groups can forcefully stop a running instance. Ifopportunistic
, Instance Groups does not stop a running instance. Instead, it will wait until the instance stops itself or becomes unhealthy.
- max
Expansion Number - The maximum number of instances that can be temporarily allocated above the group's target size during the update process.
- Number
- The maximum number of running instances that can be taken offline (stopped or deleted) at the same time during the update process.
- max
Creating Number - The maximum number of instances that can be created at the same time.
- max
Deleting Number - The maximum number of instances that can be deleted at the same time.
- startup
Duration Number - The amount of time in seconds to allow for an instance to start. Instance will be considered up and running (and start receiving traffic) only after the startup_duration has elapsed and all health checks are passed.
- strategy String
- Affects the lifecycle of the instance during deployment. If set to
proactive
(default), Instance Groups can forcefully stop a running instance. Ifopportunistic
, Instance Groups does not stop a running instance. Instead, it will wait until the instance stops itself or becomes unhealthy.
ComputeInstanceGroupHealthCheck, ComputeInstanceGroupHealthCheckArgs
- Healthy
Threshold int - The number of successful health checks before the managed instance is declared healthy.
- Http
Options List<ComputeInstance Group Health Check Http Option> - HTTP check options. The structure is documented below.
- Interval int
- The interval to wait between health checks in seconds.
- Tcp
Options ComputeInstance Group Health Check Tcp Options - TCP check options. The structure is documented below.
- Timeout int
- The length of time to wait for a response before the health check times out in seconds.
- Unhealthy
Threshold int - The number of failed health checks before the managed instance is declared unhealthy.
- Healthy
Threshold int - The number of successful health checks before the managed instance is declared healthy.
- Http
Options []ComputeInstance Group Health Check Http Option - HTTP check options. The structure is documented below.
- Interval int
- The interval to wait between health checks in seconds.
- Tcp
Options ComputeInstance Group Health Check Tcp Options - TCP check options. The structure is documented below.
- Timeout int
- The length of time to wait for a response before the health check times out in seconds.
- Unhealthy
Threshold int - The number of failed health checks before the managed instance is declared unhealthy.
- healthy
Threshold Integer - The number of successful health checks before the managed instance is declared healthy.
- http
Options List<ComputeInstance Group Health Check Http Option> - HTTP check options. The structure is documented below.
- interval Integer
- The interval to wait between health checks in seconds.
- tcp
Options ComputeInstance Group Health Check Tcp Options - TCP check options. The structure is documented below.
- timeout Integer
- The length of time to wait for a response before the health check times out in seconds.
- unhealthy
Threshold Integer - The number of failed health checks before the managed instance is declared unhealthy.
- healthy
Threshold number - The number of successful health checks before the managed instance is declared healthy.
- http
Options ComputeInstance Group Health Check Http Option[] - HTTP check options. The structure is documented below.
- interval number
- The interval to wait between health checks in seconds.
- tcp
Options ComputeInstance Group Health Check Tcp Options - TCP check options. The structure is documented below.
- timeout number
- The length of time to wait for a response before the health check times out in seconds.
- unhealthy
Threshold number - The number of failed health checks before the managed instance is declared unhealthy.
- healthy_
threshold int - The number of successful health checks before the managed instance is declared healthy.
- http_
options Sequence[ComputeInstance Group Health Check Http Option] - HTTP check options. The structure is documented below.
- interval int
- The interval to wait between health checks in seconds.
- tcp_
options ComputeInstance Group Health Check Tcp Options - TCP check options. The structure is documented below.
- timeout int
- The length of time to wait for a response before the health check times out in seconds.
- unhealthy_
threshold int - The number of failed health checks before the managed instance is declared unhealthy.
- healthy
Threshold Number - The number of successful health checks before the managed instance is declared healthy.
- http
Options List<Property Map> - HTTP check options. The structure is documented below.
- interval Number
- The interval to wait between health checks in seconds.
- tcp
Options Property Map - TCP check options. The structure is documented below.
- timeout Number
- The length of time to wait for a response before the health check times out in seconds.
- unhealthy
Threshold Number - The number of failed health checks before the managed instance is declared unhealthy.
ComputeInstanceGroupHealthCheckHttpOption, ComputeInstanceGroupHealthCheckHttpOptionArgs
ComputeInstanceGroupHealthCheckTcpOptions, ComputeInstanceGroupHealthCheckTcpOptionsArgs
- Port int
- The port used for TCP health checks.
- Port int
- The port used for TCP health checks.
- port Integer
- The port used for TCP health checks.
- port number
- The port used for TCP health checks.
- port int
- The port used for TCP health checks.
- port Number
- The port used for TCP health checks.
ComputeInstanceGroupInstance, ComputeInstanceGroupInstanceArgs
- Fqdn string
- DNS record fqdn (must have dot at the end).
- Instance
Id string - The ID of the instance.
- Name string
- Name template of the instance.
In order to be unique it must contain at least one of instance unique placeholders: {instance.short_id} {instance.index} combination of {instance.zone_id} and {instance.index_in_zone} Example: my-instance-{instance.index} If not set, default is used: {instance_group.id}-{instance.short_id} It may also contain another placeholders, see metadata doc for full list. - Network
Interfaces List<ComputeInstance Group Instance Network Interface> - Network specifications for the instance. This can be used multiple times for adding multiple interfaces. The structure is documented below.
- Status string
- The status of the instance.
- Status
Changed stringAt - Status
Message string - The status message of the instance.
- Zone
Id string - The ID of the availability zone where the instance resides.
- Fqdn string
- DNS record fqdn (must have dot at the end).
- Instance
Id string - The ID of the instance.
- Name string
- Name template of the instance.
In order to be unique it must contain at least one of instance unique placeholders: {instance.short_id} {instance.index} combination of {instance.zone_id} and {instance.index_in_zone} Example: my-instance-{instance.index} If not set, default is used: {instance_group.id}-{instance.short_id} It may also contain another placeholders, see metadata doc for full list. - Network
Interfaces []ComputeInstance Group Instance Network Interface - Network specifications for the instance. This can be used multiple times for adding multiple interfaces. The structure is documented below.
- Status string
- The status of the instance.
- Status
Changed stringAt - Status
Message string - The status message of the instance.
- Zone
Id string - The ID of the availability zone where the instance resides.
- fqdn String
- DNS record fqdn (must have dot at the end).
- instance
Id String - The ID of the instance.
- name String
- Name template of the instance.
In order to be unique it must contain at least one of instance unique placeholders: {instance.short_id} {instance.index} combination of {instance.zone_id} and {instance.index_in_zone} Example: my-instance-{instance.index} If not set, default is used: {instance_group.id}-{instance.short_id} It may also contain another placeholders, see metadata doc for full list. - network
Interfaces List<ComputeInstance Group Instance Network Interface> - Network specifications for the instance. This can be used multiple times for adding multiple interfaces. The structure is documented below.
- status String
- The status of the instance.
- status
Changed StringAt - status
Message String - The status message of the instance.
- zone
Id String - The ID of the availability zone where the instance resides.
- fqdn string
- DNS record fqdn (must have dot at the end).
- instance
Id string - The ID of the instance.
- name string
- Name template of the instance.
In order to be unique it must contain at least one of instance unique placeholders: {instance.short_id} {instance.index} combination of {instance.zone_id} and {instance.index_in_zone} Example: my-instance-{instance.index} If not set, default is used: {instance_group.id}-{instance.short_id} It may also contain another placeholders, see metadata doc for full list. - network
Interfaces ComputeInstance Group Instance Network Interface[] - Network specifications for the instance. This can be used multiple times for adding multiple interfaces. The structure is documented below.
- status string
- The status of the instance.
- status
Changed stringAt - status
Message string - The status message of the instance.
- zone
Id string - The ID of the availability zone where the instance resides.
- fqdn str
- DNS record fqdn (must have dot at the end).
- instance_
id str - The ID of the instance.
- name str
- Name template of the instance.
In order to be unique it must contain at least one of instance unique placeholders: {instance.short_id} {instance.index} combination of {instance.zone_id} and {instance.index_in_zone} Example: my-instance-{instance.index} If not set, default is used: {instance_group.id}-{instance.short_id} It may also contain another placeholders, see metadata doc for full list. - network_
interfaces Sequence[ComputeInstance Group Instance Network Interface] - Network specifications for the instance. This can be used multiple times for adding multiple interfaces. The structure is documented below.
- status str
- The status of the instance.
- status_
changed_ strat - status_
message str - The status message of the instance.
- zone_
id str - The ID of the availability zone where the instance resides.
- fqdn String
- DNS record fqdn (must have dot at the end).
- instance
Id String - The ID of the instance.
- name String
- Name template of the instance.
In order to be unique it must contain at least one of instance unique placeholders: {instance.short_id} {instance.index} combination of {instance.zone_id} and {instance.index_in_zone} Example: my-instance-{instance.index} If not set, default is used: {instance_group.id}-{instance.short_id} It may also contain another placeholders, see metadata doc for full list. - network
Interfaces List<Property Map> - Network specifications for the instance. This can be used multiple times for adding multiple interfaces. The structure is documented below.
- status String
- The status of the instance.
- status
Changed StringAt - status
Message String - The status message of the instance.
- zone
Id String - The ID of the availability zone where the instance resides.
ComputeInstanceGroupInstanceNetworkInterface, ComputeInstanceGroupInstanceNetworkInterfaceArgs
- Index int
- The index of the network interface as generated by the server.
- Ip
Address string - Manual set static IP address.
- Ipv4 bool
- True if IPv4 address allocated for the network interface.
- Ipv6 bool
- Ipv6Address string
- Manual set static IPv6 address.
- Mac
Address string - The MAC address assigned to the network interface.
- Nat bool
- Flag for using NAT.
- Nat
Ip stringAddress - A public address that can be used to access the internet over NAT. Use
variables
to set. - Nat
Ip stringVersion - The IP version for the public address.
- Subnet
Id string - The ID of the subnet to attach this interface to. The subnet must reside in the same zone where this instance was created.
- Index int
- The index of the network interface as generated by the server.
- Ip
Address string - Manual set static IP address.
- Ipv4 bool
- True if IPv4 address allocated for the network interface.
- Ipv6 bool
- Ipv6Address string
- Manual set static IPv6 address.
- Mac
Address string - The MAC address assigned to the network interface.
- Nat bool
- Flag for using NAT.
- Nat
Ip stringAddress - A public address that can be used to access the internet over NAT. Use
variables
to set. - Nat
Ip stringVersion - The IP version for the public address.
- Subnet
Id string - The ID of the subnet to attach this interface to. The subnet must reside in the same zone where this instance was created.
- index Integer
- The index of the network interface as generated by the server.
- ip
Address String - Manual set static IP address.
- ipv4 Boolean
- True if IPv4 address allocated for the network interface.
- ipv6 Boolean
- ipv6Address String
- Manual set static IPv6 address.
- mac
Address String - The MAC address assigned to the network interface.
- nat Boolean
- Flag for using NAT.
- nat
Ip StringAddress - A public address that can be used to access the internet over NAT. Use
variables
to set. - nat
Ip StringVersion - The IP version for the public address.
- subnet
Id String - The ID of the subnet to attach this interface to. The subnet must reside in the same zone where this instance was created.
- index number
- The index of the network interface as generated by the server.
- ip
Address string - Manual set static IP address.
- ipv4 boolean
- True if IPv4 address allocated for the network interface.
- ipv6 boolean
- ipv6Address string
- Manual set static IPv6 address.
- mac
Address string - The MAC address assigned to the network interface.
- nat boolean
- Flag for using NAT.
- nat
Ip stringAddress - A public address that can be used to access the internet over NAT. Use
variables
to set. - nat
Ip stringVersion - The IP version for the public address.
- subnet
Id string - The ID of the subnet to attach this interface to. The subnet must reside in the same zone where this instance was created.
- index int
- The index of the network interface as generated by the server.
- ip_
address str - Manual set static IP address.
- ipv4 bool
- True if IPv4 address allocated for the network interface.
- ipv6 bool
- ipv6_
address str - Manual set static IPv6 address.
- mac_
address str - The MAC address assigned to the network interface.
- nat bool
- Flag for using NAT.
- nat_
ip_ straddress - A public address that can be used to access the internet over NAT. Use
variables
to set. - nat_
ip_ strversion - The IP version for the public address.
- subnet_
id str - The ID of the subnet to attach this interface to. The subnet must reside in the same zone where this instance was created.
- index Number
- The index of the network interface as generated by the server.
- ip
Address String - Manual set static IP address.
- ipv4 Boolean
- True if IPv4 address allocated for the network interface.
- ipv6 Boolean
- ipv6Address String
- Manual set static IPv6 address.
- mac
Address String - The MAC address assigned to the network interface.
- nat Boolean
- Flag for using NAT.
- nat
Ip StringAddress - A public address that can be used to access the internet over NAT. Use
variables
to set. - nat
Ip StringVersion - The IP version for the public address.
- subnet
Id String - The ID of the subnet to attach this interface to. The subnet must reside in the same zone where this instance was created.
ComputeInstanceGroupInstanceTemplate, ComputeInstanceGroupInstanceTemplateArgs
- Boot
Disk ComputeInstance Group Instance Template Boot Disk - Boot disk specifications for the instance. The structure is documented below.
- Network
Interfaces List<ComputeInstance Group Instance Template Network Interface> - Network specifications for the instance. This can be used multiple times for adding multiple interfaces. The structure is documented below.
- Resources
Compute
Instance Group Instance Template Resources - Compute resource specifications for the instance. The structure is documented below.
- Description string
- A description of the boot disk.
- Hostname string
- Hostname template for the instance.
This field is used to generate the FQDN value of instance. The hostname must be unique within the network and region. If not specified, the hostname will be equal to id of the instance and FQDN will be<id>.auto.internal
. Otherwise FQDN will be<hostname>.<region_id>.internal
. In order to be unique it must contain at least on of instance unique placeholders: {instance.short_id} {instance.index} combination of {instance.zone_id} and {instance.index_in_zone} Example: my-instance-{instance.index} If not set,name
value will be used It may also contain another placeholders, see metadata doc for full list. - Labels Dictionary<string, string>
- A map of labels of metric.
- Metadata Dictionary<string, string>
- A set of metadata key/value pairs to make available from within the instance.
- Name string
- Name template of the instance.
In order to be unique it must contain at least one of instance unique placeholders: {instance.short_id} {instance.index} combination of {instance.zone_id} and {instance.index_in_zone} Example: my-instance-{instance.index} If not set, default is used: {instance_group.id}-{instance.short_id} It may also contain another placeholders, see metadata doc for full list. - Network
Settings List<ComputeInstance Group Instance Template Network Setting> - Network acceleration type for instance. The structure is documented below.
- Placement
Policy ComputeInstance Group Instance Template Placement Policy - The placement policy configuration. The structure is documented below.
- Platform
Id string - The ID of the hardware platform configuration for the instance. The default is 'standard-v1'.
- Scheduling
Policy ComputeInstance Group Instance Template Scheduling Policy - The scheduling policy configuration. The structure is documented below.
- Secondary
Disks List<ComputeInstance Group Instance Template Secondary Disk> - A list of disks to attach to the instance. The structure is documented below.
- Service
Account stringId - The ID of the service account authorized for this instance.
- Boot
Disk ComputeInstance Group Instance Template Boot Disk - Boot disk specifications for the instance. The structure is documented below.
- Network
Interfaces []ComputeInstance Group Instance Template Network Interface - Network specifications for the instance. This can be used multiple times for adding multiple interfaces. The structure is documented below.
- Resources
Compute
Instance Group Instance Template Resources - Compute resource specifications for the instance. The structure is documented below.
- Description string
- A description of the boot disk.
- Hostname string
- Hostname template for the instance.
This field is used to generate the FQDN value of instance. The hostname must be unique within the network and region. If not specified, the hostname will be equal to id of the instance and FQDN will be<id>.auto.internal
. Otherwise FQDN will be<hostname>.<region_id>.internal
. In order to be unique it must contain at least on of instance unique placeholders: {instance.short_id} {instance.index} combination of {instance.zone_id} and {instance.index_in_zone} Example: my-instance-{instance.index} If not set,name
value will be used It may also contain another placeholders, see metadata doc for full list. - Labels map[string]string
- A map of labels of metric.
- Metadata map[string]string
- A set of metadata key/value pairs to make available from within the instance.
- Name string
- Name template of the instance.
In order to be unique it must contain at least one of instance unique placeholders: {instance.short_id} {instance.index} combination of {instance.zone_id} and {instance.index_in_zone} Example: my-instance-{instance.index} If not set, default is used: {instance_group.id}-{instance.short_id} It may also contain another placeholders, see metadata doc for full list. - Network
Settings []ComputeInstance Group Instance Template Network Setting - Network acceleration type for instance. The structure is documented below.
- Placement
Policy ComputeInstance Group Instance Template Placement Policy - The placement policy configuration. The structure is documented below.
- Platform
Id string - The ID of the hardware platform configuration for the instance. The default is 'standard-v1'.
- Scheduling
Policy ComputeInstance Group Instance Template Scheduling Policy - The scheduling policy configuration. The structure is documented below.
- Secondary
Disks []ComputeInstance Group Instance Template Secondary Disk - A list of disks to attach to the instance. The structure is documented below.
- Service
Account stringId - The ID of the service account authorized for this instance.
- boot
Disk ComputeInstance Group Instance Template Boot Disk - Boot disk specifications for the instance. The structure is documented below.
- network
Interfaces List<ComputeInstance Group Instance Template Network Interface> - Network specifications for the instance. This can be used multiple times for adding multiple interfaces. The structure is documented below.
- resources
Compute
Instance Group Instance Template Resources - Compute resource specifications for the instance. The structure is documented below.
- description String
- A description of the boot disk.
- hostname String
- Hostname template for the instance.
This field is used to generate the FQDN value of instance. The hostname must be unique within the network and region. If not specified, the hostname will be equal to id of the instance and FQDN will be<id>.auto.internal
. Otherwise FQDN will be<hostname>.<region_id>.internal
. In order to be unique it must contain at least on of instance unique placeholders: {instance.short_id} {instance.index} combination of {instance.zone_id} and {instance.index_in_zone} Example: my-instance-{instance.index} If not set,name
value will be used It may also contain another placeholders, see metadata doc for full list. - labels Map<String,String>
- A map of labels of metric.
- metadata Map<String,String>
- A set of metadata key/value pairs to make available from within the instance.
- name String
- Name template of the instance.
In order to be unique it must contain at least one of instance unique placeholders: {instance.short_id} {instance.index} combination of {instance.zone_id} and {instance.index_in_zone} Example: my-instance-{instance.index} If not set, default is used: {instance_group.id}-{instance.short_id} It may also contain another placeholders, see metadata doc for full list. - network
Settings List<ComputeInstance Group Instance Template Network Setting> - Network acceleration type for instance. The structure is documented below.
- placement
Policy ComputeInstance Group Instance Template Placement Policy - The placement policy configuration. The structure is documented below.
- platform
Id String - The ID of the hardware platform configuration for the instance. The default is 'standard-v1'.
- scheduling
Policy ComputeInstance Group Instance Template Scheduling Policy - The scheduling policy configuration. The structure is documented below.
- secondary
Disks List<ComputeInstance Group Instance Template Secondary Disk> - A list of disks to attach to the instance. The structure is documented below.
- service
Account StringId - The ID of the service account authorized for this instance.
- boot
Disk ComputeInstance Group Instance Template Boot Disk - Boot disk specifications for the instance. The structure is documented below.
- network
Interfaces ComputeInstance Group Instance Template Network Interface[] - Network specifications for the instance. This can be used multiple times for adding multiple interfaces. The structure is documented below.
- resources
Compute
Instance Group Instance Template Resources - Compute resource specifications for the instance. The structure is documented below.
- description string
- A description of the boot disk.
- hostname string
- Hostname template for the instance.
This field is used to generate the FQDN value of instance. The hostname must be unique within the network and region. If not specified, the hostname will be equal to id of the instance and FQDN will be<id>.auto.internal
. Otherwise FQDN will be<hostname>.<region_id>.internal
. In order to be unique it must contain at least on of instance unique placeholders: {instance.short_id} {instance.index} combination of {instance.zone_id} and {instance.index_in_zone} Example: my-instance-{instance.index} If not set,name
value will be used It may also contain another placeholders, see metadata doc for full list. - labels {[key: string]: string}
- A map of labels of metric.
- metadata {[key: string]: string}
- A set of metadata key/value pairs to make available from within the instance.
- name string
- Name template of the instance.
In order to be unique it must contain at least one of instance unique placeholders: {instance.short_id} {instance.index} combination of {instance.zone_id} and {instance.index_in_zone} Example: my-instance-{instance.index} If not set, default is used: {instance_group.id}-{instance.short_id} It may also contain another placeholders, see metadata doc for full list. - network
Settings ComputeInstance Group Instance Template Network Setting[] - Network acceleration type for instance. The structure is documented below.
- placement
Policy ComputeInstance Group Instance Template Placement Policy - The placement policy configuration. The structure is documented below.
- platform
Id string - The ID of the hardware platform configuration for the instance. The default is 'standard-v1'.
- scheduling
Policy ComputeInstance Group Instance Template Scheduling Policy - The scheduling policy configuration. The structure is documented below.
- secondary
Disks ComputeInstance Group Instance Template Secondary Disk[] - A list of disks to attach to the instance. The structure is documented below.
- service
Account stringId - The ID of the service account authorized for this instance.
- boot_
disk ComputeInstance Group Instance Template Boot Disk - Boot disk specifications for the instance. The structure is documented below.
- network_
interfaces Sequence[ComputeInstance Group Instance Template Network Interface] - Network specifications for the instance. This can be used multiple times for adding multiple interfaces. The structure is documented below.
- resources
Compute
Instance Group Instance Template Resources - Compute resource specifications for the instance. The structure is documented below.
- description str
- A description of the boot disk.
- hostname str
- Hostname template for the instance.
This field is used to generate the FQDN value of instance. The hostname must be unique within the network and region. If not specified, the hostname will be equal to id of the instance and FQDN will be<id>.auto.internal
. Otherwise FQDN will be<hostname>.<region_id>.internal
. In order to be unique it must contain at least on of instance unique placeholders: {instance.short_id} {instance.index} combination of {instance.zone_id} and {instance.index_in_zone} Example: my-instance-{instance.index} If not set,name
value will be used It may also contain another placeholders, see metadata doc for full list. - labels Mapping[str, str]
- A map of labels of metric.
- metadata Mapping[str, str]
- A set of metadata key/value pairs to make available from within the instance.
- name str
- Name template of the instance.
In order to be unique it must contain at least one of instance unique placeholders: {instance.short_id} {instance.index} combination of {instance.zone_id} and {instance.index_in_zone} Example: my-instance-{instance.index} If not set, default is used: {instance_group.id}-{instance.short_id} It may also contain another placeholders, see metadata doc for full list. - network_
settings Sequence[ComputeInstance Group Instance Template Network Setting] - Network acceleration type for instance. The structure is documented below.
- placement_
policy ComputeInstance Group Instance Template Placement Policy - The placement policy configuration. The structure is documented below.
- platform_
id str - The ID of the hardware platform configuration for the instance. The default is 'standard-v1'.
- scheduling_
policy ComputeInstance Group Instance Template Scheduling Policy - The scheduling policy configuration. The structure is documented below.
- secondary_
disks Sequence[ComputeInstance Group Instance Template Secondary Disk] - A list of disks to attach to the instance. The structure is documented below.
- service_
account_ strid - The ID of the service account authorized for this instance.
- boot
Disk Property Map - Boot disk specifications for the instance. The structure is documented below.
- network
Interfaces List<Property Map> - Network specifications for the instance. This can be used multiple times for adding multiple interfaces. The structure is documented below.
- resources Property Map
- Compute resource specifications for the instance. The structure is documented below.
- description String
- A description of the boot disk.
- hostname String
- Hostname template for the instance.
This field is used to generate the FQDN value of instance. The hostname must be unique within the network and region. If not specified, the hostname will be equal to id of the instance and FQDN will be<id>.auto.internal
. Otherwise FQDN will be<hostname>.<region_id>.internal
. In order to be unique it must contain at least on of instance unique placeholders: {instance.short_id} {instance.index} combination of {instance.zone_id} and {instance.index_in_zone} Example: my-instance-{instance.index} If not set,name
value will be used It may also contain another placeholders, see metadata doc for full list. - labels Map<String>
- A map of labels of metric.
- metadata Map<String>
- A set of metadata key/value pairs to make available from within the instance.
- name String
- Name template of the instance.
In order to be unique it must contain at least one of instance unique placeholders: {instance.short_id} {instance.index} combination of {instance.zone_id} and {instance.index_in_zone} Example: my-instance-{instance.index} If not set, default is used: {instance_group.id}-{instance.short_id} It may also contain another placeholders, see metadata doc for full list. - network
Settings List<Property Map> - Network acceleration type for instance. The structure is documented below.
- placement
Policy Property Map - The placement policy configuration. The structure is documented below.
- platform
Id String - The ID of the hardware platform configuration for the instance. The default is 'standard-v1'.
- scheduling
Policy Property Map - The scheduling policy configuration. The structure is documented below.
- secondary
Disks List<Property Map> - A list of disks to attach to the instance. The structure is documented below.
- service
Account StringId - The ID of the service account authorized for this instance.
ComputeInstanceGroupInstanceTemplateBootDisk, ComputeInstanceGroupInstanceTemplateBootDiskArgs
- Device
Name string - This value can be used to reference the device under
/dev/disk/by-id/
. - Disk
Id string - ID of the existing disk. To set use variables.
- Initialize
Params ComputeInstance Group Instance Template Boot Disk Initialize Params - Parameters for creating a disk alongside the instance. The structure is documented below.
- Mode string
- The access mode to the disk resource. By default a disk is attached in
READ_WRITE
mode.
- Device
Name string - This value can be used to reference the device under
/dev/disk/by-id/
. - Disk
Id string - ID of the existing disk. To set use variables.
- Initialize
Params ComputeInstance Group Instance Template Boot Disk Initialize Params - Parameters for creating a disk alongside the instance. The structure is documented below.
- Mode string
- The access mode to the disk resource. By default a disk is attached in
READ_WRITE
mode.
- device
Name String - This value can be used to reference the device under
/dev/disk/by-id/
. - disk
Id String - ID of the existing disk. To set use variables.
- initialize
Params ComputeInstance Group Instance Template Boot Disk Initialize Params - Parameters for creating a disk alongside the instance. The structure is documented below.
- mode String
- The access mode to the disk resource. By default a disk is attached in
READ_WRITE
mode.
- device
Name string - This value can be used to reference the device under
/dev/disk/by-id/
. - disk
Id string - ID of the existing disk. To set use variables.
- initialize
Params ComputeInstance Group Instance Template Boot Disk Initialize Params - Parameters for creating a disk alongside the instance. The structure is documented below.
- mode string
- The access mode to the disk resource. By default a disk is attached in
READ_WRITE
mode.
- device_
name str - This value can be used to reference the device under
/dev/disk/by-id/
. - disk_
id str - ID of the existing disk. To set use variables.
- initialize_
params ComputeInstance Group Instance Template Boot Disk Initialize Params - Parameters for creating a disk alongside the instance. The structure is documented below.
- mode str
- The access mode to the disk resource. By default a disk is attached in
READ_WRITE
mode.
- device
Name String - This value can be used to reference the device under
/dev/disk/by-id/
. - disk
Id String - ID of the existing disk. To set use variables.
- initialize
Params Property Map - Parameters for creating a disk alongside the instance. The structure is documented below.
- mode String
- The access mode to the disk resource. By default a disk is attached in
READ_WRITE
mode.
ComputeInstanceGroupInstanceTemplateBootDiskInitializeParams, ComputeInstanceGroupInstanceTemplateBootDiskInitializeParamsArgs
- Description string
- A description of the boot disk.
- Image
Id string - The disk image to initialize this disk from.
- Size int
- The number of instances in the instance group.
- Snapshot
Id string - The snapshot to initialize this disk from.
- Type string
- Network acceleration type. By default a network is in
STANDARD
mode.
- Description string
- A description of the boot disk.
- Image
Id string - The disk image to initialize this disk from.
- Size int
- The number of instances in the instance group.
- Snapshot
Id string - The snapshot to initialize this disk from.
- Type string
- Network acceleration type. By default a network is in
STANDARD
mode.
- description String
- A description of the boot disk.
- image
Id String - The disk image to initialize this disk from.
- size Integer
- The number of instances in the instance group.
- snapshot
Id String - The snapshot to initialize this disk from.
- type String
- Network acceleration type. By default a network is in
STANDARD
mode.
- description string
- A description of the boot disk.
- image
Id string - The disk image to initialize this disk from.
- size number
- The number of instances in the instance group.
- snapshot
Id string - The snapshot to initialize this disk from.
- type string
- Network acceleration type. By default a network is in
STANDARD
mode.
- description str
- A description of the boot disk.
- image_
id str - The disk image to initialize this disk from.
- size int
- The number of instances in the instance group.
- snapshot_
id str - The snapshot to initialize this disk from.
- type str
- Network acceleration type. By default a network is in
STANDARD
mode.
- description String
- A description of the boot disk.
- image
Id String - The disk image to initialize this disk from.
- size Number
- The number of instances in the instance group.
- snapshot
Id String - The snapshot to initialize this disk from.
- type String
- Network acceleration type. By default a network is in
STANDARD
mode.
ComputeInstanceGroupInstanceTemplateNetworkInterface, ComputeInstanceGroupInstanceTemplateNetworkInterfaceArgs
- Dns
Records List<ComputeInstance Group Instance Template Network Interface Dns Record> - List of dns records. The structure is documented below.
- Ip
Address string - Manual set static IP address.
- Ipv4 bool
- True if IPv4 address allocated for the network interface.
- Ipv6 bool
- Ipv6Address string
- Manual set static IPv6 address.
- Ipv6Dns
Records List<ComputeInstance Group Instance Template Network Interface Ipv6Dns Record> - List of ipv6 dns records. The structure is documented below.
- Nat bool
- Flag for using NAT.
- Nat
Dns List<ComputeRecords Instance Group Instance Template Network Interface Nat Dns Record> - List of nat dns records. The structure is documented below.
- Nat
Ip stringAddress - A public address that can be used to access the internet over NAT. Use
variables
to set. - Network
Id string - The ID of the network.
- Security
Group List<string>Ids - Security group ids for network interface.
- Subnet
Ids List<string> - The ID of the subnets to attach this interface to.
- Dns
Records []ComputeInstance Group Instance Template Network Interface Dns Record - List of dns records. The structure is documented below.
- Ip
Address string - Manual set static IP address.
- Ipv4 bool
- True if IPv4 address allocated for the network interface.
- Ipv6 bool
- Ipv6Address string
- Manual set static IPv6 address.
- Ipv6Dns
Records []ComputeInstance Group Instance Template Network Interface Ipv6Dns Record - List of ipv6 dns records. The structure is documented below.
- Nat bool
- Flag for using NAT.
- Nat
Dns []ComputeRecords Instance Group Instance Template Network Interface Nat Dns Record - List of nat dns records. The structure is documented below.
- Nat
Ip stringAddress - A public address that can be used to access the internet over NAT. Use
variables
to set. - Network
Id string - The ID of the network.
- Security
Group []stringIds - Security group ids for network interface.
- Subnet
Ids []string - The ID of the subnets to attach this interface to.
- dns
Records List<ComputeInstance Group Instance Template Network Interface Dns Record> - List of dns records. The structure is documented below.
- ip
Address String - Manual set static IP address.
- ipv4 Boolean
- True if IPv4 address allocated for the network interface.
- ipv6 Boolean
- ipv6Address String
- Manual set static IPv6 address.
- ipv6Dns
Records List<ComputeInstance Group Instance Template Network Interface Ipv6Dns Record> - List of ipv6 dns records. The structure is documented below.
- nat Boolean
- Flag for using NAT.
- nat
Dns List<ComputeRecords Instance Group Instance Template Network Interface Nat Dns Record> - List of nat dns records. The structure is documented below.
- nat
Ip StringAddress - A public address that can be used to access the internet over NAT. Use
variables
to set. - network
Id String - The ID of the network.
- security
Group List<String>Ids - Security group ids for network interface.
- subnet
Ids List<String> - The ID of the subnets to attach this interface to.
- dns
Records ComputeInstance Group Instance Template Network Interface Dns Record[] - List of dns records. The structure is documented below.
- ip
Address string - Manual set static IP address.
- ipv4 boolean
- True if IPv4 address allocated for the network interface.
- ipv6 boolean
- ipv6Address string
- Manual set static IPv6 address.
- ipv6Dns
Records ComputeInstance Group Instance Template Network Interface Ipv6Dns Record[] - List of ipv6 dns records. The structure is documented below.
- nat boolean
- Flag for using NAT.
- nat
Dns ComputeRecords Instance Group Instance Template Network Interface Nat Dns Record[] - List of nat dns records. The structure is documented below.
- nat
Ip stringAddress - A public address that can be used to access the internet over NAT. Use
variables
to set. - network
Id string - The ID of the network.
- security
Group string[]Ids - Security group ids for network interface.
- subnet
Ids string[] - The ID of the subnets to attach this interface to.
- dns_
records Sequence[ComputeInstance Group Instance Template Network Interface Dns Record] - List of dns records. The structure is documented below.
- ip_
address str - Manual set static IP address.
- ipv4 bool
- True if IPv4 address allocated for the network interface.
- ipv6 bool
- ipv6_
address str - Manual set static IPv6 address.
- ipv6_
dns_ Sequence[Computerecords Instance Group Instance Template Network Interface Ipv6Dns Record] - List of ipv6 dns records. The structure is documented below.
- nat bool
- Flag for using NAT.
- nat_
dns_ Sequence[Computerecords Instance Group Instance Template Network Interface Nat Dns Record] - List of nat dns records. The structure is documented below.
- nat_
ip_ straddress - A public address that can be used to access the internet over NAT. Use
variables
to set. - network_
id str - The ID of the network.
- security_
group_ Sequence[str]ids - Security group ids for network interface.
- subnet_
ids Sequence[str] - The ID of the subnets to attach this interface to.
- dns
Records List<Property Map> - List of dns records. The structure is documented below.
- ip
Address String - Manual set static IP address.
- ipv4 Boolean
- True if IPv4 address allocated for the network interface.
- ipv6 Boolean
- ipv6Address String
- Manual set static IPv6 address.
- ipv6Dns
Records List<Property Map> - List of ipv6 dns records. The structure is documented below.
- nat Boolean
- Flag for using NAT.
- nat
Dns List<Property Map>Records - List of nat dns records. The structure is documented below.
- nat
Ip StringAddress - A public address that can be used to access the internet over NAT. Use
variables
to set. - network
Id String - The ID of the network.
- security
Group List<String>Ids - Security group ids for network interface.
- subnet
Ids List<String> - The ID of the subnets to attach this interface to.
ComputeInstanceGroupInstanceTemplateNetworkInterfaceDnsRecord, ComputeInstanceGroupInstanceTemplateNetworkInterfaceDnsRecordArgs
- fqdn str
- DNS record fqdn (must have dot at the end).
- dns_
zone_ strid - DNS zone id (if not set, private zone used).
- ptr bool
- When set to true, also create PTR DNS record.
- ttl int
- DNS record TTL.
ComputeInstanceGroupInstanceTemplateNetworkInterfaceIpv6DnsRecord, ComputeInstanceGroupInstanceTemplateNetworkInterfaceIpv6DnsRecordArgs
- fqdn str
- DNS record fqdn (must have dot at the end).
- dns_
zone_ strid - DNS zone id (if not set, private zone used).
- ptr bool
- When set to true, also create PTR DNS record.
- ttl int
- DNS record TTL.
ComputeInstanceGroupInstanceTemplateNetworkInterfaceNatDnsRecord, ComputeInstanceGroupInstanceTemplateNetworkInterfaceNatDnsRecordArgs
- fqdn str
- DNS record fqdn (must have dot at the end).
- dns_
zone_ strid - DNS zone id (if not set, private zone used).
- ptr bool
- When set to true, also create PTR DNS record.
- ttl int
- DNS record TTL.
ComputeInstanceGroupInstanceTemplateNetworkSetting, ComputeInstanceGroupInstanceTemplateNetworkSettingArgs
- Type string
- Network acceleration type. By default a network is in
STANDARD
mode.
- Type string
- Network acceleration type. By default a network is in
STANDARD
mode.
- type String
- Network acceleration type. By default a network is in
STANDARD
mode.
- type string
- Network acceleration type. By default a network is in
STANDARD
mode.
- type str
- Network acceleration type. By default a network is in
STANDARD
mode.
- type String
- Network acceleration type. By default a network is in
STANDARD
mode.
ComputeInstanceGroupInstanceTemplatePlacementPolicy, ComputeInstanceGroupInstanceTemplatePlacementPolicyArgs
- Placement
Group stringId - Specifies the id of the Placement Group to assign to the instances.
- Placement
Group stringId - Specifies the id of the Placement Group to assign to the instances.
- placement
Group StringId - Specifies the id of the Placement Group to assign to the instances.
- placement
Group stringId - Specifies the id of the Placement Group to assign to the instances.
- placement_
group_ strid - Specifies the id of the Placement Group to assign to the instances.
- placement
Group StringId - Specifies the id of the Placement Group to assign to the instances.
ComputeInstanceGroupInstanceTemplateResources, ComputeInstanceGroupInstanceTemplateResourcesArgs
- Cores int
- The number of CPU cores for the instance.
- Memory double
- The memory size in GB.
- Core
Fraction int - If provided, specifies baseline core performance as a percent.
- Gpus int
- Cores int
- The number of CPU cores for the instance.
- Memory float64
- The memory size in GB.
- Core
Fraction int - If provided, specifies baseline core performance as a percent.
- Gpus int
- cores Integer
- The number of CPU cores for the instance.
- memory Double
- The memory size in GB.
- core
Fraction Integer - If provided, specifies baseline core performance as a percent.
- gpus Integer
- cores number
- The number of CPU cores for the instance.
- memory number
- The memory size in GB.
- core
Fraction number - If provided, specifies baseline core performance as a percent.
- gpus number
- cores int
- The number of CPU cores for the instance.
- memory float
- The memory size in GB.
- core_
fraction int - If provided, specifies baseline core performance as a percent.
- gpus int
- cores Number
- The number of CPU cores for the instance.
- memory Number
- The memory size in GB.
- core
Fraction Number - If provided, specifies baseline core performance as a percent.
- gpus Number
ComputeInstanceGroupInstanceTemplateSchedulingPolicy, ComputeInstanceGroupInstanceTemplateSchedulingPolicyArgs
- Preemptible bool
- Specifies if the instance is preemptible. Defaults to false.
- Preemptible bool
- Specifies if the instance is preemptible. Defaults to false.
- preemptible Boolean
- Specifies if the instance is preemptible. Defaults to false.
- preemptible boolean
- Specifies if the instance is preemptible. Defaults to false.
- preemptible bool
- Specifies if the instance is preemptible. Defaults to false.
- preemptible Boolean
- Specifies if the instance is preemptible. Defaults to false.
ComputeInstanceGroupInstanceTemplateSecondaryDisk, ComputeInstanceGroupInstanceTemplateSecondaryDiskArgs
- Device
Name string - This value can be used to reference the device under
/dev/disk/by-id/
. - Disk
Id string - ID of the existing disk. To set use variables.
- Initialize
Params ComputeInstance Group Instance Template Secondary Disk Initialize Params - Parameters for creating a disk alongside the instance. The structure is documented below.
- Mode string
- The access mode to the disk resource. By default a disk is attached in
READ_WRITE
mode.
- Device
Name string - This value can be used to reference the device under
/dev/disk/by-id/
. - Disk
Id string - ID of the existing disk. To set use variables.
- Initialize
Params ComputeInstance Group Instance Template Secondary Disk Initialize Params - Parameters for creating a disk alongside the instance. The structure is documented below.
- Mode string
- The access mode to the disk resource. By default a disk is attached in
READ_WRITE
mode.
- device
Name String - This value can be used to reference the device under
/dev/disk/by-id/
. - disk
Id String - ID of the existing disk. To set use variables.
- initialize
Params ComputeInstance Group Instance Template Secondary Disk Initialize Params - Parameters for creating a disk alongside the instance. The structure is documented below.
- mode String
- The access mode to the disk resource. By default a disk is attached in
READ_WRITE
mode.
- device
Name string - This value can be used to reference the device under
/dev/disk/by-id/
. - disk
Id string - ID of the existing disk. To set use variables.
- initialize
Params ComputeInstance Group Instance Template Secondary Disk Initialize Params - Parameters for creating a disk alongside the instance. The structure is documented below.
- mode string
- The access mode to the disk resource. By default a disk is attached in
READ_WRITE
mode.
- device_
name str - This value can be used to reference the device under
/dev/disk/by-id/
. - disk_
id str - ID of the existing disk. To set use variables.
- initialize_
params ComputeInstance Group Instance Template Secondary Disk Initialize Params - Parameters for creating a disk alongside the instance. The structure is documented below.
- mode str
- The access mode to the disk resource. By default a disk is attached in
READ_WRITE
mode.
- device
Name String - This value can be used to reference the device under
/dev/disk/by-id/
. - disk
Id String - ID of the existing disk. To set use variables.
- initialize
Params Property Map - Parameters for creating a disk alongside the instance. The structure is documented below.
- mode String
- The access mode to the disk resource. By default a disk is attached in
READ_WRITE
mode.
ComputeInstanceGroupInstanceTemplateSecondaryDiskInitializeParams, ComputeInstanceGroupInstanceTemplateSecondaryDiskInitializeParamsArgs
- Description string
- A description of the boot disk.
- Image
Id string - The disk image to initialize this disk from.
- Size int
- The number of instances in the instance group.
- Snapshot
Id string - The snapshot to initialize this disk from.
- Type string
- Network acceleration type. By default a network is in
STANDARD
mode.
- Description string
- A description of the boot disk.
- Image
Id string - The disk image to initialize this disk from.
- Size int
- The number of instances in the instance group.
- Snapshot
Id string - The snapshot to initialize this disk from.
- Type string
- Network acceleration type. By default a network is in
STANDARD
mode.
- description String
- A description of the boot disk.
- image
Id String - The disk image to initialize this disk from.
- size Integer
- The number of instances in the instance group.
- snapshot
Id String - The snapshot to initialize this disk from.
- type String
- Network acceleration type. By default a network is in
STANDARD
mode.
- description string
- A description of the boot disk.
- image
Id string - The disk image to initialize this disk from.
- size number
- The number of instances in the instance group.
- snapshot
Id string - The snapshot to initialize this disk from.
- type string
- Network acceleration type. By default a network is in
STANDARD
mode.
- description str
- A description of the boot disk.
- image_
id str - The disk image to initialize this disk from.
- size int
- The number of instances in the instance group.
- snapshot_
id str - The snapshot to initialize this disk from.
- type str
- Network acceleration type. By default a network is in
STANDARD
mode.
- description String
- A description of the boot disk.
- image
Id String - The disk image to initialize this disk from.
- size Number
- The number of instances in the instance group.
- snapshot
Id String - The snapshot to initialize this disk from.
- type String
- Network acceleration type. By default a network is in
STANDARD
mode.
ComputeInstanceGroupLoadBalancer, ComputeInstanceGroupLoadBalancerArgs
- Max
Opening intTraffic Duration - Timeout for waiting for the VM to be checked by the load balancer. If the timeout is exceeded, the VM will be turned off based on the deployment policy. Specified in seconds.
- Status
Message string - The status message of the instance.
- Target
Group stringDescription - A description of the target group.
- Target
Group stringId - Target
Group Dictionary<string, string>Labels - A set of key/value label pairs.
- Target
Group stringName - The name of the target group.
- Max
Opening intTraffic Duration - Timeout for waiting for the VM to be checked by the load balancer. If the timeout is exceeded, the VM will be turned off based on the deployment policy. Specified in seconds.
- Status
Message string - The status message of the instance.
- Target
Group stringDescription - A description of the target group.
- Target
Group stringId - Target
Group map[string]stringLabels - A set of key/value label pairs.
- Target
Group stringName - The name of the target group.
- max
Opening IntegerTraffic Duration - Timeout for waiting for the VM to be checked by the load balancer. If the timeout is exceeded, the VM will be turned off based on the deployment policy. Specified in seconds.
- status
Message String - The status message of the instance.
- target
Group StringDescription - A description of the target group.
- target
Group StringId - target
Group Map<String,String>Labels - A set of key/value label pairs.
- target
Group StringName - The name of the target group.
- max
Opening numberTraffic Duration - Timeout for waiting for the VM to be checked by the load balancer. If the timeout is exceeded, the VM will be turned off based on the deployment policy. Specified in seconds.
- status
Message string - The status message of the instance.
- target
Group stringDescription - A description of the target group.
- target
Group stringId - target
Group {[key: string]: string}Labels - A set of key/value label pairs.
- target
Group stringName - The name of the target group.
- max_
opening_ inttraffic_ duration - Timeout for waiting for the VM to be checked by the load balancer. If the timeout is exceeded, the VM will be turned off based on the deployment policy. Specified in seconds.
- status_
message str - The status message of the instance.
- target_
group_ strdescription - A description of the target group.
- target_
group_ strid - target_
group_ Mapping[str, str]labels - A set of key/value label pairs.
- target_
group_ strname - The name of the target group.
- max
Opening NumberTraffic Duration - Timeout for waiting for the VM to be checked by the load balancer. If the timeout is exceeded, the VM will be turned off based on the deployment policy. Specified in seconds.
- status
Message String - The status message of the instance.
- target
Group StringDescription - A description of the target group.
- target
Group StringId - target
Group Map<String>Labels - A set of key/value label pairs.
- target
Group StringName - The name of the target group.
ComputeInstanceGroupScalePolicy, ComputeInstanceGroupScalePolicyArgs
- Auto
Scale ComputeInstance Group Scale Policy Auto Scale - The auto scaling policy of the instance group. The structure is documented below.
- Fixed
Scale ComputeInstance Group Scale Policy Fixed Scale - The fixed scaling policy of the instance group. The structure is documented below.
- Test
Auto ComputeScale Instance Group Scale Policy Test Auto Scale - The test auto scaling policy of the instance group. Use it to test how the auto scale works. The structure is documented below.
- Auto
Scale ComputeInstance Group Scale Policy Auto Scale - The auto scaling policy of the instance group. The structure is documented below.
- Fixed
Scale ComputeInstance Group Scale Policy Fixed Scale - The fixed scaling policy of the instance group. The structure is documented below.
- Test
Auto ComputeScale Instance Group Scale Policy Test Auto Scale - The test auto scaling policy of the instance group. Use it to test how the auto scale works. The structure is documented below.
- auto
Scale ComputeInstance Group Scale Policy Auto Scale - The auto scaling policy of the instance group. The structure is documented below.
- fixed
Scale ComputeInstance Group Scale Policy Fixed Scale - The fixed scaling policy of the instance group. The structure is documented below.
- test
Auto ComputeScale Instance Group Scale Policy Test Auto Scale - The test auto scaling policy of the instance group. Use it to test how the auto scale works. The structure is documented below.
- auto
Scale ComputeInstance Group Scale Policy Auto Scale - The auto scaling policy of the instance group. The structure is documented below.
- fixed
Scale ComputeInstance Group Scale Policy Fixed Scale - The fixed scaling policy of the instance group. The structure is documented below.
- test
Auto ComputeScale Instance Group Scale Policy Test Auto Scale - The test auto scaling policy of the instance group. Use it to test how the auto scale works. The structure is documented below.
- auto_
scale ComputeInstance Group Scale Policy Auto Scale - The auto scaling policy of the instance group. The structure is documented below.
- fixed_
scale ComputeInstance Group Scale Policy Fixed Scale - The fixed scaling policy of the instance group. The structure is documented below.
- test_
auto_ Computescale Instance Group Scale Policy Test Auto Scale - The test auto scaling policy of the instance group. Use it to test how the auto scale works. The structure is documented below.
- auto
Scale Property Map - The auto scaling policy of the instance group. The structure is documented below.
- fixed
Scale Property Map - The fixed scaling policy of the instance group. The structure is documented below.
- test
Auto Property MapScale - The test auto scaling policy of the instance group. Use it to test how the auto scale works. The structure is documented below.
ComputeInstanceGroupScalePolicyAutoScale, ComputeInstanceGroupScalePolicyAutoScaleArgs
- Initial
Size int - The initial number of instances in the instance group.
- Measurement
Duration int - The amount of time, in seconds, that metrics are averaged for.
If the average value at the end of the interval is higher than the
cpu_utilization_target
, the instance group will increase the number of virtual machines in the group. - Cpu
Utilization doubleTarget - Target CPU load level.
- Custom
Rules List<ComputeInstance Group Scale Policy Auto Scale Custom Rule> - A list of custom rules. The structure is documented below.
- Max
Size int - The maximum number of virtual machines in the group.
- Min
Zone intSize - The minimum number of virtual machines in a single availability zone.
- Stabilization
Duration int - The minimum time interval, in seconds, to monitor the load before
an instance group can reduce the number of virtual machines in the group. During this time, the group
will not decrease even if the average load falls below the value of
cpu_utilization_target
. - Warmup
Duration int - The warm-up time of the virtual machine, in seconds. During this time, traffic is fed to the virtual machine, but load metrics are not taken into account.
- Initial
Size int - The initial number of instances in the instance group.
- Measurement
Duration int - The amount of time, in seconds, that metrics are averaged for.
If the average value at the end of the interval is higher than the
cpu_utilization_target
, the instance group will increase the number of virtual machines in the group. - Cpu
Utilization float64Target - Target CPU load level.
- Custom
Rules []ComputeInstance Group Scale Policy Auto Scale Custom Rule - A list of custom rules. The structure is documented below.
- Max
Size int - The maximum number of virtual machines in the group.
- Min
Zone intSize - The minimum number of virtual machines in a single availability zone.
- Stabilization
Duration int - The minimum time interval, in seconds, to monitor the load before
an instance group can reduce the number of virtual machines in the group. During this time, the group
will not decrease even if the average load falls below the value of
cpu_utilization_target
. - Warmup
Duration int - The warm-up time of the virtual machine, in seconds. During this time, traffic is fed to the virtual machine, but load metrics are not taken into account.
- initial
Size Integer - The initial number of instances in the instance group.
- measurement
Duration Integer - The amount of time, in seconds, that metrics are averaged for.
If the average value at the end of the interval is higher than the
cpu_utilization_target
, the instance group will increase the number of virtual machines in the group. - cpu
Utilization DoubleTarget - Target CPU load level.
- custom
Rules List<ComputeInstance Group Scale Policy Auto Scale Custom Rule> - A list of custom rules. The structure is documented below.
- max
Size Integer - The maximum number of virtual machines in the group.
- min
Zone IntegerSize - The minimum number of virtual machines in a single availability zone.
- stabilization
Duration Integer - The minimum time interval, in seconds, to monitor the load before
an instance group can reduce the number of virtual machines in the group. During this time, the group
will not decrease even if the average load falls below the value of
cpu_utilization_target
. - warmup
Duration Integer - The warm-up time of the virtual machine, in seconds. During this time, traffic is fed to the virtual machine, but load metrics are not taken into account.
- initial
Size number - The initial number of instances in the instance group.
- measurement
Duration number - The amount of time, in seconds, that metrics are averaged for.
If the average value at the end of the interval is higher than the
cpu_utilization_target
, the instance group will increase the number of virtual machines in the group. - cpu
Utilization numberTarget - Target CPU load level.
- custom
Rules ComputeInstance Group Scale Policy Auto Scale Custom Rule[] - A list of custom rules. The structure is documented below.
- max
Size number - The maximum number of virtual machines in the group.
- min
Zone numberSize - The minimum number of virtual machines in a single availability zone.
- stabilization
Duration number - The minimum time interval, in seconds, to monitor the load before
an instance group can reduce the number of virtual machines in the group. During this time, the group
will not decrease even if the average load falls below the value of
cpu_utilization_target
. - warmup
Duration number - The warm-up time of the virtual machine, in seconds. During this time, traffic is fed to the virtual machine, but load metrics are not taken into account.
- initial_
size int - The initial number of instances in the instance group.
- measurement_
duration int - The amount of time, in seconds, that metrics are averaged for.
If the average value at the end of the interval is higher than the
cpu_utilization_target
, the instance group will increase the number of virtual machines in the group. - cpu_
utilization_ floattarget - Target CPU load level.
- custom_
rules Sequence[ComputeInstance Group Scale Policy Auto Scale Custom Rule] - A list of custom rules. The structure is documented below.
- max_
size int - The maximum number of virtual machines in the group.
- min_
zone_ intsize - The minimum number of virtual machines in a single availability zone.
- stabilization_
duration int - The minimum time interval, in seconds, to monitor the load before
an instance group can reduce the number of virtual machines in the group. During this time, the group
will not decrease even if the average load falls below the value of
cpu_utilization_target
. - warmup_
duration int - The warm-up time of the virtual machine, in seconds. During this time, traffic is fed to the virtual machine, but load metrics are not taken into account.
- initial
Size Number - The initial number of instances in the instance group.
- measurement
Duration Number - The amount of time, in seconds, that metrics are averaged for.
If the average value at the end of the interval is higher than the
cpu_utilization_target
, the instance group will increase the number of virtual machines in the group. - cpu
Utilization NumberTarget - Target CPU load level.
- custom
Rules List<Property Map> - A list of custom rules. The structure is documented below.
- max
Size Number - The maximum number of virtual machines in the group.
- min
Zone NumberSize - The minimum number of virtual machines in a single availability zone.
- stabilization
Duration Number - The minimum time interval, in seconds, to monitor the load before
an instance group can reduce the number of virtual machines in the group. During this time, the group
will not decrease even if the average load falls below the value of
cpu_utilization_target
. - warmup
Duration Number - The warm-up time of the virtual machine, in seconds. During this time, traffic is fed to the virtual machine, but load metrics are not taken into account.
ComputeInstanceGroupScalePolicyAutoScaleCustomRule, ComputeInstanceGroupScalePolicyAutoScaleCustomRuleArgs
- Metric
Name string - The name of metric.
- Metric
Type string - Metric type,
GAUGE
orCOUNTER
. - Rule
Type string - Rule type:
UTILIZATION
- This type means that the metric applies to one instance. First, Instance Groups calculates the average metric value for each instance, then averages the values for instances in one availability zone. This type of metric must have theinstance_id
label.WORKLOAD
- This type means that the metric applies to instances in one availability zone. This type of metric must have thezone_id
label. - Target double
- Target metric value level.
- Folder
Id string - Folder ID of custom metric in Yandex Monitoring that should be used for scaling.
- Labels Dictionary<string, string>
- A map of labels of metric.
- Service string
- Service of custom metric in Yandex Monitoring that should be used for scaling.
- Metric
Name string - The name of metric.
- Metric
Type string - Metric type,
GAUGE
orCOUNTER
. - Rule
Type string - Rule type:
UTILIZATION
- This type means that the metric applies to one instance. First, Instance Groups calculates the average metric value for each instance, then averages the values for instances in one availability zone. This type of metric must have theinstance_id
label.WORKLOAD
- This type means that the metric applies to instances in one availability zone. This type of metric must have thezone_id
label. - Target float64
- Target metric value level.
- Folder
Id string - Folder ID of custom metric in Yandex Monitoring that should be used for scaling.
- Labels map[string]string
- A map of labels of metric.
- Service string
- Service of custom metric in Yandex Monitoring that should be used for scaling.
- metric
Name String - The name of metric.
- metric
Type String - Metric type,
GAUGE
orCOUNTER
. - rule
Type String - Rule type:
UTILIZATION
- This type means that the metric applies to one instance. First, Instance Groups calculates the average metric value for each instance, then averages the values for instances in one availability zone. This type of metric must have theinstance_id
label.WORKLOAD
- This type means that the metric applies to instances in one availability zone. This type of metric must have thezone_id
label. - target Double
- Target metric value level.
- folder
Id String - Folder ID of custom metric in Yandex Monitoring that should be used for scaling.
- labels Map<String,String>
- A map of labels of metric.
- service String
- Service of custom metric in Yandex Monitoring that should be used for scaling.
- metric
Name string - The name of metric.
- metric
Type string - Metric type,
GAUGE
orCOUNTER
. - rule
Type string - Rule type:
UTILIZATION
- This type means that the metric applies to one instance. First, Instance Groups calculates the average metric value for each instance, then averages the values for instances in one availability zone. This type of metric must have theinstance_id
label.WORKLOAD
- This type means that the metric applies to instances in one availability zone. This type of metric must have thezone_id
label. - target number
- Target metric value level.
- folder
Id string - Folder ID of custom metric in Yandex Monitoring that should be used for scaling.
- labels {[key: string]: string}
- A map of labels of metric.
- service string
- Service of custom metric in Yandex Monitoring that should be used for scaling.
- metric_
name str - The name of metric.
- metric_
type str - Metric type,
GAUGE
orCOUNTER
. - rule_
type str - Rule type:
UTILIZATION
- This type means that the metric applies to one instance. First, Instance Groups calculates the average metric value for each instance, then averages the values for instances in one availability zone. This type of metric must have theinstance_id
label.WORKLOAD
- This type means that the metric applies to instances in one availability zone. This type of metric must have thezone_id
label. - target float
- Target metric value level.
- folder_
id str - Folder ID of custom metric in Yandex Monitoring that should be used for scaling.
- labels Mapping[str, str]
- A map of labels of metric.
- service str
- Service of custom metric in Yandex Monitoring that should be used for scaling.
- metric
Name String - The name of metric.
- metric
Type String - Metric type,
GAUGE
orCOUNTER
. - rule
Type String - Rule type:
UTILIZATION
- This type means that the metric applies to one instance. First, Instance Groups calculates the average metric value for each instance, then averages the values for instances in one availability zone. This type of metric must have theinstance_id
label.WORKLOAD
- This type means that the metric applies to instances in one availability zone. This type of metric must have thezone_id
label. - target Number
- Target metric value level.
- folder
Id String - Folder ID of custom metric in Yandex Monitoring that should be used for scaling.
- labels Map<String>
- A map of labels of metric.
- service String
- Service of custom metric in Yandex Monitoring that should be used for scaling.
ComputeInstanceGroupScalePolicyFixedScale, ComputeInstanceGroupScalePolicyFixedScaleArgs
- Size int
- The number of instances in the instance group.
- Size int
- The number of instances in the instance group.
- size Integer
- The number of instances in the instance group.
- size number
- The number of instances in the instance group.
- size int
- The number of instances in the instance group.
- size Number
- The number of instances in the instance group.
ComputeInstanceGroupScalePolicyTestAutoScale, ComputeInstanceGroupScalePolicyTestAutoScaleArgs
- Initial
Size int - The initial number of instances in the instance group.
- Measurement
Duration int - The amount of time, in seconds, that metrics are averaged for.
If the average value at the end of the interval is higher than the
cpu_utilization_target
, the instance group will increase the number of virtual machines in the group. - Cpu
Utilization doubleTarget - Target CPU load level.
- Custom
Rules List<ComputeInstance Group Scale Policy Test Auto Scale Custom Rule> - A list of custom rules. The structure is documented below.
- Max
Size int - The maximum number of virtual machines in the group.
- Min
Zone intSize - The minimum number of virtual machines in a single availability zone.
- Stabilization
Duration int - The minimum time interval, in seconds, to monitor the load before
an instance group can reduce the number of virtual machines in the group. During this time, the group
will not decrease even if the average load falls below the value of
cpu_utilization_target
. - Warmup
Duration int - The warm-up time of the virtual machine, in seconds. During this time, traffic is fed to the virtual machine, but load metrics are not taken into account.
- Initial
Size int - The initial number of instances in the instance group.
- Measurement
Duration int - The amount of time, in seconds, that metrics are averaged for.
If the average value at the end of the interval is higher than the
cpu_utilization_target
, the instance group will increase the number of virtual machines in the group. - Cpu
Utilization float64Target - Target CPU load level.
- Custom
Rules []ComputeInstance Group Scale Policy Test Auto Scale Custom Rule - A list of custom rules. The structure is documented below.
- Max
Size int - The maximum number of virtual machines in the group.
- Min
Zone intSize - The minimum number of virtual machines in a single availability zone.
- Stabilization
Duration int - The minimum time interval, in seconds, to monitor the load before
an instance group can reduce the number of virtual machines in the group. During this time, the group
will not decrease even if the average load falls below the value of
cpu_utilization_target
. - Warmup
Duration int - The warm-up time of the virtual machine, in seconds. During this time, traffic is fed to the virtual machine, but load metrics are not taken into account.
- initial
Size Integer - The initial number of instances in the instance group.
- measurement
Duration Integer - The amount of time, in seconds, that metrics are averaged for.
If the average value at the end of the interval is higher than the
cpu_utilization_target
, the instance group will increase the number of virtual machines in the group. - cpu
Utilization DoubleTarget - Target CPU load level.
- custom
Rules List<ComputeInstance Group Scale Policy Test Auto Scale Custom Rule> - A list of custom rules. The structure is documented below.
- max
Size Integer - The maximum number of virtual machines in the group.
- min
Zone IntegerSize - The minimum number of virtual machines in a single availability zone.
- stabilization
Duration Integer - The minimum time interval, in seconds, to monitor the load before
an instance group can reduce the number of virtual machines in the group. During this time, the group
will not decrease even if the average load falls below the value of
cpu_utilization_target
. - warmup
Duration Integer - The warm-up time of the virtual machine, in seconds. During this time, traffic is fed to the virtual machine, but load metrics are not taken into account.
- initial
Size number - The initial number of instances in the instance group.
- measurement
Duration number - The amount of time, in seconds, that metrics are averaged for.
If the average value at the end of the interval is higher than the
cpu_utilization_target
, the instance group will increase the number of virtual machines in the group. - cpu
Utilization numberTarget - Target CPU load level.
- custom
Rules ComputeInstance Group Scale Policy Test Auto Scale Custom Rule[] - A list of custom rules. The structure is documented below.
- max
Size number - The maximum number of virtual machines in the group.
- min
Zone numberSize - The minimum number of virtual machines in a single availability zone.
- stabilization
Duration number - The minimum time interval, in seconds, to monitor the load before
an instance group can reduce the number of virtual machines in the group. During this time, the group
will not decrease even if the average load falls below the value of
cpu_utilization_target
. - warmup
Duration number - The warm-up time of the virtual machine, in seconds. During this time, traffic is fed to the virtual machine, but load metrics are not taken into account.
- initial_
size int - The initial number of instances in the instance group.
- measurement_
duration int - The amount of time, in seconds, that metrics are averaged for.
If the average value at the end of the interval is higher than the
cpu_utilization_target
, the instance group will increase the number of virtual machines in the group. - cpu_
utilization_ floattarget - Target CPU load level.
- custom_
rules Sequence[ComputeInstance Group Scale Policy Test Auto Scale Custom Rule] - A list of custom rules. The structure is documented below.
- max_
size int - The maximum number of virtual machines in the group.
- min_
zone_ intsize - The minimum number of virtual machines in a single availability zone.
- stabilization_
duration int - The minimum time interval, in seconds, to monitor the load before
an instance group can reduce the number of virtual machines in the group. During this time, the group
will not decrease even if the average load falls below the value of
cpu_utilization_target
. - warmup_
duration int - The warm-up time of the virtual machine, in seconds. During this time, traffic is fed to the virtual machine, but load metrics are not taken into account.
- initial
Size Number - The initial number of instances in the instance group.
- measurement
Duration Number - The amount of time, in seconds, that metrics are averaged for.
If the average value at the end of the interval is higher than the
cpu_utilization_target
, the instance group will increase the number of virtual machines in the group. - cpu
Utilization NumberTarget - Target CPU load level.
- custom
Rules List<Property Map> - A list of custom rules. The structure is documented below.
- max
Size Number - The maximum number of virtual machines in the group.
- min
Zone NumberSize - The minimum number of virtual machines in a single availability zone.
- stabilization
Duration Number - The minimum time interval, in seconds, to monitor the load before
an instance group can reduce the number of virtual machines in the group. During this time, the group
will not decrease even if the average load falls below the value of
cpu_utilization_target
. - warmup
Duration Number - The warm-up time of the virtual machine, in seconds. During this time, traffic is fed to the virtual machine, but load metrics are not taken into account.
ComputeInstanceGroupScalePolicyTestAutoScaleCustomRule, ComputeInstanceGroupScalePolicyTestAutoScaleCustomRuleArgs
- Metric
Name string - The name of metric.
- Metric
Type string - Metric type,
GAUGE
orCOUNTER
. - Rule
Type string - Rule type:
UTILIZATION
- This type means that the metric applies to one instance. First, Instance Groups calculates the average metric value for each instance, then averages the values for instances in one availability zone. This type of metric must have theinstance_id
label.WORKLOAD
- This type means that the metric applies to instances in one availability zone. This type of metric must have thezone_id
label. - Target double
- Target metric value level.
- Folder
Id string - Folder ID of custom metric in Yandex Monitoring that should be used for scaling.
- Labels Dictionary<string, string>
- A map of labels of metric.
- Service string
- Service of custom metric in Yandex Monitoring that should be used for scaling.
- Metric
Name string - The name of metric.
- Metric
Type string - Metric type,
GAUGE
orCOUNTER
. - Rule
Type string - Rule type:
UTILIZATION
- This type means that the metric applies to one instance. First, Instance Groups calculates the average metric value for each instance, then averages the values for instances in one availability zone. This type of metric must have theinstance_id
label.WORKLOAD
- This type means that the metric applies to instances in one availability zone. This type of metric must have thezone_id
label. - Target float64
- Target metric value level.
- Folder
Id string - Folder ID of custom metric in Yandex Monitoring that should be used for scaling.
- Labels map[string]string
- A map of labels of metric.
- Service string
- Service of custom metric in Yandex Monitoring that should be used for scaling.
- metric
Name String - The name of metric.
- metric
Type String - Metric type,
GAUGE
orCOUNTER
. - rule
Type String - Rule type:
UTILIZATION
- This type means that the metric applies to one instance. First, Instance Groups calculates the average metric value for each instance, then averages the values for instances in one availability zone. This type of metric must have theinstance_id
label.WORKLOAD
- This type means that the metric applies to instances in one availability zone. This type of metric must have thezone_id
label. - target Double
- Target metric value level.
- folder
Id String - Folder ID of custom metric in Yandex Monitoring that should be used for scaling.
- labels Map<String,String>
- A map of labels of metric.
- service String
- Service of custom metric in Yandex Monitoring that should be used for scaling.
- metric
Name string - The name of metric.
- metric
Type string - Metric type,
GAUGE
orCOUNTER
. - rule
Type string - Rule type:
UTILIZATION
- This type means that the metric applies to one instance. First, Instance Groups calculates the average metric value for each instance, then averages the values for instances in one availability zone. This type of metric must have theinstance_id
label.WORKLOAD
- This type means that the metric applies to instances in one availability zone. This type of metric must have thezone_id
label. - target number
- Target metric value level.
- folder
Id string - Folder ID of custom metric in Yandex Monitoring that should be used for scaling.
- labels {[key: string]: string}
- A map of labels of metric.
- service string
- Service of custom metric in Yandex Monitoring that should be used for scaling.
- metric_
name str - The name of metric.
- metric_
type str - Metric type,
GAUGE
orCOUNTER
. - rule_
type str - Rule type:
UTILIZATION
- This type means that the metric applies to one instance. First, Instance Groups calculates the average metric value for each instance, then averages the values for instances in one availability zone. This type of metric must have theinstance_id
label.WORKLOAD
- This type means that the metric applies to instances in one availability zone. This type of metric must have thezone_id
label. - target float
- Target metric value level.
- folder_
id str - Folder ID of custom metric in Yandex Monitoring that should be used for scaling.
- labels Mapping[str, str]
- A map of labels of metric.
- service str
- Service of custom metric in Yandex Monitoring that should be used for scaling.
- metric
Name String - The name of metric.
- metric
Type String - Metric type,
GAUGE
orCOUNTER
. - rule
Type String - Rule type:
UTILIZATION
- This type means that the metric applies to one instance. First, Instance Groups calculates the average metric value for each instance, then averages the values for instances in one availability zone. This type of metric must have theinstance_id
label.WORKLOAD
- This type means that the metric applies to instances in one availability zone. This type of metric must have thezone_id
label. - target Number
- Target metric value level.
- folder
Id String - Folder ID of custom metric in Yandex Monitoring that should be used for scaling.
- labels Map<String>
- A map of labels of metric.
- service String
- Service of custom metric in Yandex Monitoring that should be used for scaling.
Package Details
- Repository
- Yandex pulumi/pulumi-yandex
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
yandex
Terraform Provider.