volcengine.autoscaling.ScalingGroup
Explore with Pulumi AI
Provides a resource to manage scaling group
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
import * as volcengine from "@volcengine/pulumi";
const fooZones = volcengine.ecs.Zones({});
const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
    vpcName: "acc-test-vpc",
    cidrBlock: "172.16.0.0/16",
});
const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
    subnetName: "acc-test-subnet",
    cidrBlock: "172.16.0.0/24",
    zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
    vpcId: fooVpc.id,
});
const fooScalingGroup: volcengine.autoscaling.ScalingGroup[] = [];
for (const range = {value: 0}; range.value < 3; range.value++) {
    fooScalingGroup.push(new volcengine.autoscaling.ScalingGroup(`fooScalingGroup-${range.value}`, {
        scalingGroupName: `acc-test-scaling-group-${range.value}`,
        subnetIds: [fooSubnet.id],
        multiAzPolicy: "BALANCE",
        desireInstanceNumber: 0,
        minInstanceNumber: 0,
        maxInstanceNumber: 10,
        instanceTerminatePolicy: "OldestInstance",
        defaultCooldown: 30,
        tags: [
            {
                key: "k2",
                value: "v2",
            },
            {
                key: "k1",
                value: "v1",
            },
        ],
    }));
}
import pulumi
import pulumi_volcengine as volcengine
foo_zones = volcengine.ecs.zones()
foo_vpc = volcengine.vpc.Vpc("fooVpc",
    vpc_name="acc-test-vpc",
    cidr_block="172.16.0.0/16")
foo_subnet = volcengine.vpc.Subnet("fooSubnet",
    subnet_name="acc-test-subnet",
    cidr_block="172.16.0.0/24",
    zone_id=foo_zones.zones[0].id,
    vpc_id=foo_vpc.id)
foo_scaling_group = []
for range in [{"value": i} for i in range(0, 3)]:
    foo_scaling_group.append(volcengine.autoscaling.ScalingGroup(f"fooScalingGroup-{range['value']}",
        scaling_group_name=f"acc-test-scaling-group-{range['value']}",
        subnet_ids=[foo_subnet.id],
        multi_az_policy="BALANCE",
        desire_instance_number=0,
        min_instance_number=0,
        max_instance_number=10,
        instance_terminate_policy="OldestInstance",
        default_cooldown=30,
        tags=[
            volcengine.autoscaling.ScalingGroupTagArgs(
                key="k2",
                value="v2",
            ),
            volcengine.autoscaling.ScalingGroupTagArgs(
                key="k1",
                value="v1",
            ),
        ]))
package main
import (
	"fmt"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/autoscaling"
	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/ecs"
	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vpc"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		fooZones, err := ecs.Zones(ctx, nil, nil)
		if err != nil {
			return err
		}
		fooVpc, err := vpc.NewVpc(ctx, "fooVpc", &vpc.VpcArgs{
			VpcName:   pulumi.String("acc-test-vpc"),
			CidrBlock: pulumi.String("172.16.0.0/16"),
		})
		if err != nil {
			return err
		}
		fooSubnet, err := vpc.NewSubnet(ctx, "fooSubnet", &vpc.SubnetArgs{
			SubnetName: pulumi.String("acc-test-subnet"),
			CidrBlock:  pulumi.String("172.16.0.0/24"),
			ZoneId:     pulumi.String(fooZones.Zones[0].Id),
			VpcId:      fooVpc.ID(),
		})
		if err != nil {
			return err
		}
		var fooScalingGroup []*autoscaling.ScalingGroup
		for index := 0; index < 3; index++ {
			key0 := index
			val0 := index
			__res, err := autoscaling.NewScalingGroup(ctx, fmt.Sprintf("fooScalingGroup-%v", key0), &autoscaling.ScalingGroupArgs{
				ScalingGroupName: pulumi.String(fmt.Sprintf("acc-test-scaling-group-%v", val0)),
				SubnetIds: pulumi.StringArray{
					fooSubnet.ID(),
				},
				MultiAzPolicy:           pulumi.String("BALANCE"),
				DesireInstanceNumber:    pulumi.Int(0),
				MinInstanceNumber:       pulumi.Int(0),
				MaxInstanceNumber:       pulumi.Int(10),
				InstanceTerminatePolicy: pulumi.String("OldestInstance"),
				DefaultCooldown:         pulumi.Int(30),
				Tags: autoscaling.ScalingGroupTagArray{
					&autoscaling.ScalingGroupTagArgs{
						Key:   pulumi.String("k2"),
						Value: pulumi.String("v2"),
					},
					&autoscaling.ScalingGroupTagArgs{
						Key:   pulumi.String("k1"),
						Value: pulumi.String("v1"),
					},
				},
			})
			if err != nil {
				return err
			}
			fooScalingGroup = append(fooScalingGroup, __res)
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() => 
{
    var fooZones = Volcengine.Ecs.Zones.Invoke();
    var fooVpc = new Volcengine.Vpc.Vpc("fooVpc", new()
    {
        VpcName = "acc-test-vpc",
        CidrBlock = "172.16.0.0/16",
    });
    var fooSubnet = new Volcengine.Vpc.Subnet("fooSubnet", new()
    {
        SubnetName = "acc-test-subnet",
        CidrBlock = "172.16.0.0/24",
        ZoneId = fooZones.Apply(zonesResult => zonesResult.Zones[0]?.Id),
        VpcId = fooVpc.Id,
    });
    var fooScalingGroup = new List<Volcengine.Autoscaling.ScalingGroup>();
    for (var rangeIndex = 0; rangeIndex < 3; rangeIndex++)
    {
        var range = new { Value = rangeIndex };
        fooScalingGroup.Add(new Volcengine.Autoscaling.ScalingGroup($"fooScalingGroup-{range.Value}", new()
        {
            ScalingGroupName = $"acc-test-scaling-group-{range.Value}",
            SubnetIds = new[]
            {
                fooSubnet.Id,
            },
            MultiAzPolicy = "BALANCE",
            DesireInstanceNumber = 0,
            MinInstanceNumber = 0,
            MaxInstanceNumber = 10,
            InstanceTerminatePolicy = "OldestInstance",
            DefaultCooldown = 30,
            Tags = new[]
            {
                new Volcengine.Autoscaling.Inputs.ScalingGroupTagArgs
                {
                    Key = "k2",
                    Value = "v2",
                },
                new Volcengine.Autoscaling.Inputs.ScalingGroupTagArgs
                {
                    Key = "k1",
                    Value = "v1",
                },
            },
        }));
    }
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.ecs.EcsFunctions;
import com.pulumi.volcengine.ecs.inputs.ZonesArgs;
import com.pulumi.volcengine.vpc.Vpc;
import com.pulumi.volcengine.vpc.VpcArgs;
import com.pulumi.volcengine.vpc.Subnet;
import com.pulumi.volcengine.vpc.SubnetArgs;
import com.pulumi.volcengine.autoscaling.ScalingGroup;
import com.pulumi.volcengine.autoscaling.ScalingGroupArgs;
import com.pulumi.volcengine.autoscaling.inputs.ScalingGroupTagArgs;
import com.pulumi.codegen.internal.KeyedValue;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var fooZones = EcsFunctions.Zones();
        var fooVpc = new Vpc("fooVpc", VpcArgs.builder()        
            .vpcName("acc-test-vpc")
            .cidrBlock("172.16.0.0/16")
            .build());
        var fooSubnet = new Subnet("fooSubnet", SubnetArgs.builder()        
            .subnetName("acc-test-subnet")
            .cidrBlock("172.16.0.0/24")
            .zoneId(fooZones.applyValue(zonesResult -> zonesResult.zones()[0].id()))
            .vpcId(fooVpc.id())
            .build());
        for (var i = 0; i < 3; i++) {
            new ScalingGroup("fooScalingGroup-" + i, ScalingGroupArgs.builder()            
                .scalingGroupName(String.format("acc-test-scaling-group-%s", range.value()))
                .subnetIds(fooSubnet.id())
                .multiAzPolicy("BALANCE")
                .desireInstanceNumber(0)
                .minInstanceNumber(0)
                .maxInstanceNumber(10)
                .instanceTerminatePolicy("OldestInstance")
                .defaultCooldown(30)
                .tags(                
                    ScalingGroupTagArgs.builder()
                        .key("k2")
                        .value("v2")
                        .build(),
                    ScalingGroupTagArgs.builder()
                        .key("k1")
                        .value("v1")
                        .build())
                .build());
        
}
    }
}
resources:
  fooVpc:
    type: volcengine:vpc:Vpc
    properties:
      vpcName: acc-test-vpc
      cidrBlock: 172.16.0.0/16
  fooSubnet:
    type: volcengine:vpc:Subnet
    properties:
      subnetName: acc-test-subnet
      cidrBlock: 172.16.0.0/24
      zoneId: ${fooZones.zones[0].id}
      vpcId: ${fooVpc.id}
  fooScalingGroup:
    type: volcengine:autoscaling:ScalingGroup
    properties:
      scalingGroupName: acc-test-scaling-group-${range.value}
      subnetIds:
        - ${fooSubnet.id}
      multiAzPolicy: BALANCE
      desireInstanceNumber: 0
      minInstanceNumber: 0
      maxInstanceNumber: 10
      instanceTerminatePolicy: OldestInstance
      defaultCooldown: 30
      tags:
        - key: k2
          value: v2
        - key: k1
          value: v1
    options: {}
variables:
  fooZones:
    fn::invoke:
      Function: volcengine:ecs:Zones
      Arguments: {}
Create ScalingGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ScalingGroup(name: string, args: ScalingGroupArgs, opts?: CustomResourceOptions);@overload
def ScalingGroup(resource_name: str,
                 args: ScalingGroupArgs,
                 opts: Optional[ResourceOptions] = None)
@overload
def ScalingGroup(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 max_instance_number: Optional[int] = None,
                 subnet_ids: Optional[Sequence[str]] = None,
                 scaling_group_name: Optional[str] = None,
                 min_instance_number: Optional[int] = None,
                 launch_template_id: Optional[str] = None,
                 launch_template_overrides: Optional[Sequence[ScalingGroupLaunchTemplateOverrideArgs]] = None,
                 launch_template_version: Optional[str] = None,
                 db_instance_ids: Optional[Sequence[str]] = None,
                 instance_terminate_policy: Optional[str] = None,
                 multi_az_policy: Optional[str] = None,
                 project_name: Optional[str] = None,
                 desire_instance_number: Optional[int] = None,
                 scaling_mode: Optional[str] = None,
                 server_group_attributes: Optional[Sequence[ScalingGroupServerGroupAttributeArgs]] = None,
                 default_cooldown: Optional[int] = None,
                 tags: Optional[Sequence[ScalingGroupTagArgs]] = None)func NewScalingGroup(ctx *Context, name string, args ScalingGroupArgs, opts ...ResourceOption) (*ScalingGroup, error)public ScalingGroup(string name, ScalingGroupArgs args, CustomResourceOptions? opts = null)
public ScalingGroup(String name, ScalingGroupArgs args)
public ScalingGroup(String name, ScalingGroupArgs args, CustomResourceOptions options)
type: volcengine:autoscaling:ScalingGroup
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 ScalingGroupArgs
- 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 ScalingGroupArgs
- 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 ScalingGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ScalingGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ScalingGroupArgs
- 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 scalingGroupResource = new Volcengine.Autoscaling.ScalingGroup("scalingGroupResource", new()
{
    MaxInstanceNumber = 0,
    SubnetIds = new[]
    {
        "string",
    },
    ScalingGroupName = "string",
    MinInstanceNumber = 0,
    LaunchTemplateId = "string",
    LaunchTemplateOverrides = new[]
    {
        new Volcengine.Autoscaling.Inputs.ScalingGroupLaunchTemplateOverrideArgs
        {
            InstanceType = "string",
        },
    },
    LaunchTemplateVersion = "string",
    DbInstanceIds = new[]
    {
        "string",
    },
    InstanceTerminatePolicy = "string",
    MultiAzPolicy = "string",
    ProjectName = "string",
    DesireInstanceNumber = 0,
    ScalingMode = "string",
    ServerGroupAttributes = new[]
    {
        new Volcengine.Autoscaling.Inputs.ScalingGroupServerGroupAttributeArgs
        {
            Port = 0,
            ServerGroupId = "string",
            Weight = 0,
            LoadBalancerId = "string",
        },
    },
    DefaultCooldown = 0,
    Tags = new[]
    {
        new Volcengine.Autoscaling.Inputs.ScalingGroupTagArgs
        {
            Key = "string",
            Value = "string",
        },
    },
});
example, err := autoscaling.NewScalingGroup(ctx, "scalingGroupResource", &autoscaling.ScalingGroupArgs{
	MaxInstanceNumber: pulumi.Int(0),
	SubnetIds: pulumi.StringArray{
		pulumi.String("string"),
	},
	ScalingGroupName:  pulumi.String("string"),
	MinInstanceNumber: pulumi.Int(0),
	LaunchTemplateId:  pulumi.String("string"),
	LaunchTemplateOverrides: autoscaling.ScalingGroupLaunchTemplateOverrideArray{
		&autoscaling.ScalingGroupLaunchTemplateOverrideArgs{
			InstanceType: pulumi.String("string"),
		},
	},
	LaunchTemplateVersion: pulumi.String("string"),
	DbInstanceIds: pulumi.StringArray{
		pulumi.String("string"),
	},
	InstanceTerminatePolicy: pulumi.String("string"),
	MultiAzPolicy:           pulumi.String("string"),
	ProjectName:             pulumi.String("string"),
	DesireInstanceNumber:    pulumi.Int(0),
	ScalingMode:             pulumi.String("string"),
	ServerGroupAttributes: autoscaling.ScalingGroupServerGroupAttributeArray{
		&autoscaling.ScalingGroupServerGroupAttributeArgs{
			Port:           pulumi.Int(0),
			ServerGroupId:  pulumi.String("string"),
			Weight:         pulumi.Int(0),
			LoadBalancerId: pulumi.String("string"),
		},
	},
	DefaultCooldown: pulumi.Int(0),
	Tags: autoscaling.ScalingGroupTagArray{
		&autoscaling.ScalingGroupTagArgs{
			Key:   pulumi.String("string"),
			Value: pulumi.String("string"),
		},
	},
})
var scalingGroupResource = new ScalingGroup("scalingGroupResource", ScalingGroupArgs.builder()
    .maxInstanceNumber(0)
    .subnetIds("string")
    .scalingGroupName("string")
    .minInstanceNumber(0)
    .launchTemplateId("string")
    .launchTemplateOverrides(ScalingGroupLaunchTemplateOverrideArgs.builder()
        .instanceType("string")
        .build())
    .launchTemplateVersion("string")
    .dbInstanceIds("string")
    .instanceTerminatePolicy("string")
    .multiAzPolicy("string")
    .projectName("string")
    .desireInstanceNumber(0)
    .scalingMode("string")
    .serverGroupAttributes(ScalingGroupServerGroupAttributeArgs.builder()
        .port(0)
        .serverGroupId("string")
        .weight(0)
        .loadBalancerId("string")
        .build())
    .defaultCooldown(0)
    .tags(ScalingGroupTagArgs.builder()
        .key("string")
        .value("string")
        .build())
    .build());
scaling_group_resource = volcengine.autoscaling.ScalingGroup("scalingGroupResource",
    max_instance_number=0,
    subnet_ids=["string"],
    scaling_group_name="string",
    min_instance_number=0,
    launch_template_id="string",
    launch_template_overrides=[{
        "instance_type": "string",
    }],
    launch_template_version="string",
    db_instance_ids=["string"],
    instance_terminate_policy="string",
    multi_az_policy="string",
    project_name="string",
    desire_instance_number=0,
    scaling_mode="string",
    server_group_attributes=[{
        "port": 0,
        "server_group_id": "string",
        "weight": 0,
        "load_balancer_id": "string",
    }],
    default_cooldown=0,
    tags=[{
        "key": "string",
        "value": "string",
    }])
const scalingGroupResource = new volcengine.autoscaling.ScalingGroup("scalingGroupResource", {
    maxInstanceNumber: 0,
    subnetIds: ["string"],
    scalingGroupName: "string",
    minInstanceNumber: 0,
    launchTemplateId: "string",
    launchTemplateOverrides: [{
        instanceType: "string",
    }],
    launchTemplateVersion: "string",
    dbInstanceIds: ["string"],
    instanceTerminatePolicy: "string",
    multiAzPolicy: "string",
    projectName: "string",
    desireInstanceNumber: 0,
    scalingMode: "string",
    serverGroupAttributes: [{
        port: 0,
        serverGroupId: "string",
        weight: 0,
        loadBalancerId: "string",
    }],
    defaultCooldown: 0,
    tags: [{
        key: "string",
        value: "string",
    }],
});
type: volcengine:autoscaling:ScalingGroup
properties:
    dbInstanceIds:
        - string
    defaultCooldown: 0
    desireInstanceNumber: 0
    instanceTerminatePolicy: string
    launchTemplateId: string
    launchTemplateOverrides:
        - instanceType: string
    launchTemplateVersion: string
    maxInstanceNumber: 0
    minInstanceNumber: 0
    multiAzPolicy: string
    projectName: string
    scalingGroupName: string
    scalingMode: string
    serverGroupAttributes:
        - loadBalancerId: string
          port: 0
          serverGroupId: string
          weight: 0
    subnetIds:
        - string
    tags:
        - key: string
          value: string
ScalingGroup 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 ScalingGroup resource accepts the following input properties:
- MaxInstance intNumber 
- The max instance number of the scaling group. Value range: 0 ~ 100.
- MinInstance intNumber 
- The min instance number of the scaling group. Value range: 0 ~ 100.
- ScalingGroup stringName 
- The name of the scaling group.
- SubnetIds List<string>
- The list of the subnet id to which the ENI is connected.
- DbInstance List<string>Ids 
- ID of the RDS database instance.
- DefaultCooldown int
- The default cooldown interval of the scaling group. Value range: 5 ~ 86400, unit: second. Default value: 300.
- DesireInstance intNumber 
- The desire instance number of the scaling group.
- InstanceTerminate stringPolicy 
- The instance terminate policy of the scaling group. Valid values: OldestInstance, NewestInstance, OldestScalingConfigurationWithOldestInstance, OldestScalingConfigurationWithNewestInstance. Default value: OldestScalingConfigurationWithOldestInstance.
- LaunchTemplate stringId 
- The ID of the launch template bound to the scaling group. The launch template and scaling configuration cannot take effect at the same time.
- LaunchTemplate List<ScalingOverrides Group Launch Template Override> 
- Specify instance specifications.
- LaunchTemplate stringVersion 
- The version of the launch template bound to the scaling group. Valid values are the version number, Latest, or Default.
- MultiAz stringPolicy 
- The multi az policy of the scaling group. Valid values: PRIORITY, BALANCE. Default value: PRIORITY.
- ProjectName string
- The ProjectName of the scaling group.
- ScalingMode string
- Example recycling mode for the elastic group, with values: release (default): Release mode. recycle: Shutdown recycling mode.
- ServerGroup List<ScalingAttributes Group Server Group Attribute> 
- The load balancer server group attributes of the scaling group.
- 
List<ScalingGroup Tag> 
- Tags.
- MaxInstance intNumber 
- The max instance number of the scaling group. Value range: 0 ~ 100.
- MinInstance intNumber 
- The min instance number of the scaling group. Value range: 0 ~ 100.
- ScalingGroup stringName 
- The name of the scaling group.
- SubnetIds []string
- The list of the subnet id to which the ENI is connected.
- DbInstance []stringIds 
- ID of the RDS database instance.
- DefaultCooldown int
- The default cooldown interval of the scaling group. Value range: 5 ~ 86400, unit: second. Default value: 300.
- DesireInstance intNumber 
- The desire instance number of the scaling group.
- InstanceTerminate stringPolicy 
- The instance terminate policy of the scaling group. Valid values: OldestInstance, NewestInstance, OldestScalingConfigurationWithOldestInstance, OldestScalingConfigurationWithNewestInstance. Default value: OldestScalingConfigurationWithOldestInstance.
- LaunchTemplate stringId 
- The ID of the launch template bound to the scaling group. The launch template and scaling configuration cannot take effect at the same time.
- LaunchTemplate []ScalingOverrides Group Launch Template Override Args 
- Specify instance specifications.
- LaunchTemplate stringVersion 
- The version of the launch template bound to the scaling group. Valid values are the version number, Latest, or Default.
- MultiAz stringPolicy 
- The multi az policy of the scaling group. Valid values: PRIORITY, BALANCE. Default value: PRIORITY.
- ProjectName string
- The ProjectName of the scaling group.
- ScalingMode string
- Example recycling mode for the elastic group, with values: release (default): Release mode. recycle: Shutdown recycling mode.
- ServerGroup []ScalingAttributes Group Server Group Attribute Args 
- The load balancer server group attributes of the scaling group.
- 
[]ScalingGroup Tag Args 
- Tags.
- maxInstance IntegerNumber 
- The max instance number of the scaling group. Value range: 0 ~ 100.
- minInstance IntegerNumber 
- The min instance number of the scaling group. Value range: 0 ~ 100.
- scalingGroup StringName 
- The name of the scaling group.
- subnetIds List<String>
- The list of the subnet id to which the ENI is connected.
- dbInstance List<String>Ids 
- ID of the RDS database instance.
- defaultCooldown Integer
- The default cooldown interval of the scaling group. Value range: 5 ~ 86400, unit: second. Default value: 300.
- desireInstance IntegerNumber 
- The desire instance number of the scaling group.
- instanceTerminate StringPolicy 
- The instance terminate policy of the scaling group. Valid values: OldestInstance, NewestInstance, OldestScalingConfigurationWithOldestInstance, OldestScalingConfigurationWithNewestInstance. Default value: OldestScalingConfigurationWithOldestInstance.
- launchTemplate StringId 
- The ID of the launch template bound to the scaling group. The launch template and scaling configuration cannot take effect at the same time.
- launchTemplate List<ScalingOverrides Group Launch Template Override> 
- Specify instance specifications.
- launchTemplate StringVersion 
- The version of the launch template bound to the scaling group. Valid values are the version number, Latest, or Default.
- multiAz StringPolicy 
- The multi az policy of the scaling group. Valid values: PRIORITY, BALANCE. Default value: PRIORITY.
- projectName String
- The ProjectName of the scaling group.
- scalingMode String
- Example recycling mode for the elastic group, with values: release (default): Release mode. recycle: Shutdown recycling mode.
- serverGroup List<ScalingAttributes Group Server Group Attribute> 
- The load balancer server group attributes of the scaling group.
- 
List<ScalingGroup Tag> 
- Tags.
- maxInstance numberNumber 
- The max instance number of the scaling group. Value range: 0 ~ 100.
- minInstance numberNumber 
- The min instance number of the scaling group. Value range: 0 ~ 100.
- scalingGroup stringName 
- The name of the scaling group.
- subnetIds string[]
- The list of the subnet id to which the ENI is connected.
- dbInstance string[]Ids 
- ID of the RDS database instance.
- defaultCooldown number
- The default cooldown interval of the scaling group. Value range: 5 ~ 86400, unit: second. Default value: 300.
- desireInstance numberNumber 
- The desire instance number of the scaling group.
- instanceTerminate stringPolicy 
- The instance terminate policy of the scaling group. Valid values: OldestInstance, NewestInstance, OldestScalingConfigurationWithOldestInstance, OldestScalingConfigurationWithNewestInstance. Default value: OldestScalingConfigurationWithOldestInstance.
- launchTemplate stringId 
- The ID of the launch template bound to the scaling group. The launch template and scaling configuration cannot take effect at the same time.
- launchTemplate ScalingOverrides Group Launch Template Override[] 
- Specify instance specifications.
- launchTemplate stringVersion 
- The version of the launch template bound to the scaling group. Valid values are the version number, Latest, or Default.
- multiAz stringPolicy 
- The multi az policy of the scaling group. Valid values: PRIORITY, BALANCE. Default value: PRIORITY.
- projectName string
- The ProjectName of the scaling group.
- scalingMode string
- Example recycling mode for the elastic group, with values: release (default): Release mode. recycle: Shutdown recycling mode.
- serverGroup ScalingAttributes Group Server Group Attribute[] 
- The load balancer server group attributes of the scaling group.
- 
ScalingGroup Tag[] 
- Tags.
- max_instance_ intnumber 
- The max instance number of the scaling group. Value range: 0 ~ 100.
- min_instance_ intnumber 
- The min instance number of the scaling group. Value range: 0 ~ 100.
- scaling_group_ strname 
- The name of the scaling group.
- subnet_ids Sequence[str]
- The list of the subnet id to which the ENI is connected.
- db_instance_ Sequence[str]ids 
- ID of the RDS database instance.
- default_cooldown int
- The default cooldown interval of the scaling group. Value range: 5 ~ 86400, unit: second. Default value: 300.
- desire_instance_ intnumber 
- The desire instance number of the scaling group.
- instance_terminate_ strpolicy 
- The instance terminate policy of the scaling group. Valid values: OldestInstance, NewestInstance, OldestScalingConfigurationWithOldestInstance, OldestScalingConfigurationWithNewestInstance. Default value: OldestScalingConfigurationWithOldestInstance.
- launch_template_ strid 
- The ID of the launch template bound to the scaling group. The launch template and scaling configuration cannot take effect at the same time.
- launch_template_ Sequence[Scalingoverrides Group Launch Template Override Args] 
- Specify instance specifications.
- launch_template_ strversion 
- The version of the launch template bound to the scaling group. Valid values are the version number, Latest, or Default.
- multi_az_ strpolicy 
- The multi az policy of the scaling group. Valid values: PRIORITY, BALANCE. Default value: PRIORITY.
- project_name str
- The ProjectName of the scaling group.
- scaling_mode str
- Example recycling mode for the elastic group, with values: release (default): Release mode. recycle: Shutdown recycling mode.
- server_group_ Sequence[Scalingattributes Group Server Group Attribute Args] 
- The load balancer server group attributes of the scaling group.
- 
Sequence[ScalingGroup Tag Args] 
- Tags.
- maxInstance NumberNumber 
- The max instance number of the scaling group. Value range: 0 ~ 100.
- minInstance NumberNumber 
- The min instance number of the scaling group. Value range: 0 ~ 100.
- scalingGroup StringName 
- The name of the scaling group.
- subnetIds List<String>
- The list of the subnet id to which the ENI is connected.
- dbInstance List<String>Ids 
- ID of the RDS database instance.
- defaultCooldown Number
- The default cooldown interval of the scaling group. Value range: 5 ~ 86400, unit: second. Default value: 300.
- desireInstance NumberNumber 
- The desire instance number of the scaling group.
- instanceTerminate StringPolicy 
- The instance terminate policy of the scaling group. Valid values: OldestInstance, NewestInstance, OldestScalingConfigurationWithOldestInstance, OldestScalingConfigurationWithNewestInstance. Default value: OldestScalingConfigurationWithOldestInstance.
- launchTemplate StringId 
- The ID of the launch template bound to the scaling group. The launch template and scaling configuration cannot take effect at the same time.
- launchTemplate List<Property Map>Overrides 
- Specify instance specifications.
- launchTemplate StringVersion 
- The version of the launch template bound to the scaling group. Valid values are the version number, Latest, or Default.
- multiAz StringPolicy 
- The multi az policy of the scaling group. Valid values: PRIORITY, BALANCE. Default value: PRIORITY.
- projectName String
- The ProjectName of the scaling group.
- scalingMode String
- Example recycling mode for the elastic group, with values: release (default): Release mode. recycle: Shutdown recycling mode.
- serverGroup List<Property Map>Attributes 
- The load balancer server group attributes of the scaling group.
- List<Property Map>
- Tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the ScalingGroup resource produces the following output properties:
- ActiveScaling stringConfiguration Id 
- The scaling configuration id which used by the scaling group.
- CreatedAt string
- The create time of the scaling group.
- HealthCheck stringType 
- The health check type of the scaling group.
- Id string
- The provider-assigned unique ID for this managed resource.
- LifecycleState string
- The lifecycle state of the scaling group.
- LoadBalancer intHealth Check Grace Period 
- Grace period for health check of CLB instance in elastic group.
- ScalingGroup stringId 
- The id of the scaling group.
- StoppedInstance intCount 
- The number of stopped instances.
- TotalInstance intCount 
- The total instance count of the scaling group.
- UpdatedAt string
- The create time of the scaling group.
- VpcId string
- The VPC id of the scaling group.
- ActiveScaling stringConfiguration Id 
- The scaling configuration id which used by the scaling group.
- CreatedAt string
- The create time of the scaling group.
- HealthCheck stringType 
- The health check type of the scaling group.
- Id string
- The provider-assigned unique ID for this managed resource.
- LifecycleState string
- The lifecycle state of the scaling group.
- LoadBalancer intHealth Check Grace Period 
- Grace period for health check of CLB instance in elastic group.
- ScalingGroup stringId 
- The id of the scaling group.
- StoppedInstance intCount 
- The number of stopped instances.
- TotalInstance intCount 
- The total instance count of the scaling group.
- UpdatedAt string
- The create time of the scaling group.
- VpcId string
- The VPC id of the scaling group.
- activeScaling StringConfiguration Id 
- The scaling configuration id which used by the scaling group.
- createdAt String
- The create time of the scaling group.
- healthCheck StringType 
- The health check type of the scaling group.
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycleState String
- The lifecycle state of the scaling group.
- loadBalancer IntegerHealth Check Grace Period 
- Grace period for health check of CLB instance in elastic group.
- scalingGroup StringId 
- The id of the scaling group.
- stoppedInstance IntegerCount 
- The number of stopped instances.
- totalInstance IntegerCount 
- The total instance count of the scaling group.
- updatedAt String
- The create time of the scaling group.
- vpcId String
- The VPC id of the scaling group.
- activeScaling stringConfiguration Id 
- The scaling configuration id which used by the scaling group.
- createdAt string
- The create time of the scaling group.
- healthCheck stringType 
- The health check type of the scaling group.
- id string
- The provider-assigned unique ID for this managed resource.
- lifecycleState string
- The lifecycle state of the scaling group.
- loadBalancer numberHealth Check Grace Period 
- Grace period for health check of CLB instance in elastic group.
- scalingGroup stringId 
- The id of the scaling group.
- stoppedInstance numberCount 
- The number of stopped instances.
- totalInstance numberCount 
- The total instance count of the scaling group.
- updatedAt string
- The create time of the scaling group.
- vpcId string
- The VPC id of the scaling group.
- active_scaling_ strconfiguration_ id 
- The scaling configuration id which used by the scaling group.
- created_at str
- The create time of the scaling group.
- health_check_ strtype 
- The health check type of the scaling group.
- id str
- The provider-assigned unique ID for this managed resource.
- lifecycle_state str
- The lifecycle state of the scaling group.
- load_balancer_ inthealth_ check_ grace_ period 
- Grace period for health check of CLB instance in elastic group.
- scaling_group_ strid 
- The id of the scaling group.
- stopped_instance_ intcount 
- The number of stopped instances.
- total_instance_ intcount 
- The total instance count of the scaling group.
- updated_at str
- The create time of the scaling group.
- vpc_id str
- The VPC id of the scaling group.
- activeScaling StringConfiguration Id 
- The scaling configuration id which used by the scaling group.
- createdAt String
- The create time of the scaling group.
- healthCheck StringType 
- The health check type of the scaling group.
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycleState String
- The lifecycle state of the scaling group.
- loadBalancer NumberHealth Check Grace Period 
- Grace period for health check of CLB instance in elastic group.
- scalingGroup StringId 
- The id of the scaling group.
- stoppedInstance NumberCount 
- The number of stopped instances.
- totalInstance NumberCount 
- The total instance count of the scaling group.
- updatedAt String
- The create time of the scaling group.
- vpcId String
- The VPC id of the scaling group.
Look up Existing ScalingGroup Resource
Get an existing ScalingGroup 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?: ScalingGroupState, opts?: CustomResourceOptions): ScalingGroup@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        active_scaling_configuration_id: Optional[str] = None,
        created_at: Optional[str] = None,
        db_instance_ids: Optional[Sequence[str]] = None,
        default_cooldown: Optional[int] = None,
        desire_instance_number: Optional[int] = None,
        health_check_type: Optional[str] = None,
        instance_terminate_policy: Optional[str] = None,
        launch_template_id: Optional[str] = None,
        launch_template_overrides: Optional[Sequence[ScalingGroupLaunchTemplateOverrideArgs]] = None,
        launch_template_version: Optional[str] = None,
        lifecycle_state: Optional[str] = None,
        load_balancer_health_check_grace_period: Optional[int] = None,
        max_instance_number: Optional[int] = None,
        min_instance_number: Optional[int] = None,
        multi_az_policy: Optional[str] = None,
        project_name: Optional[str] = None,
        scaling_group_id: Optional[str] = None,
        scaling_group_name: Optional[str] = None,
        scaling_mode: Optional[str] = None,
        server_group_attributes: Optional[Sequence[ScalingGroupServerGroupAttributeArgs]] = None,
        stopped_instance_count: Optional[int] = None,
        subnet_ids: Optional[Sequence[str]] = None,
        tags: Optional[Sequence[ScalingGroupTagArgs]] = None,
        total_instance_count: Optional[int] = None,
        updated_at: Optional[str] = None,
        vpc_id: Optional[str] = None) -> ScalingGroupfunc GetScalingGroup(ctx *Context, name string, id IDInput, state *ScalingGroupState, opts ...ResourceOption) (*ScalingGroup, error)public static ScalingGroup Get(string name, Input<string> id, ScalingGroupState? state, CustomResourceOptions? opts = null)public static ScalingGroup get(String name, Output<String> id, ScalingGroupState state, CustomResourceOptions options)resources:  _:    type: volcengine:autoscaling:ScalingGroup    get:      id: ${id}- 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.
- ActiveScaling stringConfiguration Id 
- The scaling configuration id which used by the scaling group.
- CreatedAt string
- The create time of the scaling group.
- DbInstance List<string>Ids 
- ID of the RDS database instance.
- DefaultCooldown int
- The default cooldown interval of the scaling group. Value range: 5 ~ 86400, unit: second. Default value: 300.
- DesireInstance intNumber 
- The desire instance number of the scaling group.
- HealthCheck stringType 
- The health check type of the scaling group.
- InstanceTerminate stringPolicy 
- The instance terminate policy of the scaling group. Valid values: OldestInstance, NewestInstance, OldestScalingConfigurationWithOldestInstance, OldestScalingConfigurationWithNewestInstance. Default value: OldestScalingConfigurationWithOldestInstance.
- LaunchTemplate stringId 
- The ID of the launch template bound to the scaling group. The launch template and scaling configuration cannot take effect at the same time.
- LaunchTemplate List<ScalingOverrides Group Launch Template Override> 
- Specify instance specifications.
- LaunchTemplate stringVersion 
- The version of the launch template bound to the scaling group. Valid values are the version number, Latest, or Default.
- LifecycleState string
- The lifecycle state of the scaling group.
- LoadBalancer intHealth Check Grace Period 
- Grace period for health check of CLB instance in elastic group.
- MaxInstance intNumber 
- The max instance number of the scaling group. Value range: 0 ~ 100.
- MinInstance intNumber 
- The min instance number of the scaling group. Value range: 0 ~ 100.
- MultiAz stringPolicy 
- The multi az policy of the scaling group. Valid values: PRIORITY, BALANCE. Default value: PRIORITY.
- ProjectName string
- The ProjectName of the scaling group.
- ScalingGroup stringId 
- The id of the scaling group.
- ScalingGroup stringName 
- The name of the scaling group.
- ScalingMode string
- Example recycling mode for the elastic group, with values: release (default): Release mode. recycle: Shutdown recycling mode.
- ServerGroup List<ScalingAttributes Group Server Group Attribute> 
- The load balancer server group attributes of the scaling group.
- StoppedInstance intCount 
- The number of stopped instances.
- SubnetIds List<string>
- The list of the subnet id to which the ENI is connected.
- 
List<ScalingGroup Tag> 
- Tags.
- TotalInstance intCount 
- The total instance count of the scaling group.
- UpdatedAt string
- The create time of the scaling group.
- VpcId string
- The VPC id of the scaling group.
- ActiveScaling stringConfiguration Id 
- The scaling configuration id which used by the scaling group.
- CreatedAt string
- The create time of the scaling group.
- DbInstance []stringIds 
- ID of the RDS database instance.
- DefaultCooldown int
- The default cooldown interval of the scaling group. Value range: 5 ~ 86400, unit: second. Default value: 300.
- DesireInstance intNumber 
- The desire instance number of the scaling group.
- HealthCheck stringType 
- The health check type of the scaling group.
- InstanceTerminate stringPolicy 
- The instance terminate policy of the scaling group. Valid values: OldestInstance, NewestInstance, OldestScalingConfigurationWithOldestInstance, OldestScalingConfigurationWithNewestInstance. Default value: OldestScalingConfigurationWithOldestInstance.
- LaunchTemplate stringId 
- The ID of the launch template bound to the scaling group. The launch template and scaling configuration cannot take effect at the same time.
- LaunchTemplate []ScalingOverrides Group Launch Template Override Args 
- Specify instance specifications.
- LaunchTemplate stringVersion 
- The version of the launch template bound to the scaling group. Valid values are the version number, Latest, or Default.
- LifecycleState string
- The lifecycle state of the scaling group.
- LoadBalancer intHealth Check Grace Period 
- Grace period for health check of CLB instance in elastic group.
- MaxInstance intNumber 
- The max instance number of the scaling group. Value range: 0 ~ 100.
- MinInstance intNumber 
- The min instance number of the scaling group. Value range: 0 ~ 100.
- MultiAz stringPolicy 
- The multi az policy of the scaling group. Valid values: PRIORITY, BALANCE. Default value: PRIORITY.
- ProjectName string
- The ProjectName of the scaling group.
- ScalingGroup stringId 
- The id of the scaling group.
- ScalingGroup stringName 
- The name of the scaling group.
- ScalingMode string
- Example recycling mode for the elastic group, with values: release (default): Release mode. recycle: Shutdown recycling mode.
- ServerGroup []ScalingAttributes Group Server Group Attribute Args 
- The load balancer server group attributes of the scaling group.
- StoppedInstance intCount 
- The number of stopped instances.
- SubnetIds []string
- The list of the subnet id to which the ENI is connected.
- 
[]ScalingGroup Tag Args 
- Tags.
- TotalInstance intCount 
- The total instance count of the scaling group.
- UpdatedAt string
- The create time of the scaling group.
- VpcId string
- The VPC id of the scaling group.
- activeScaling StringConfiguration Id 
- The scaling configuration id which used by the scaling group.
- createdAt String
- The create time of the scaling group.
- dbInstance List<String>Ids 
- ID of the RDS database instance.
- defaultCooldown Integer
- The default cooldown interval of the scaling group. Value range: 5 ~ 86400, unit: second. Default value: 300.
- desireInstance IntegerNumber 
- The desire instance number of the scaling group.
- healthCheck StringType 
- The health check type of the scaling group.
- instanceTerminate StringPolicy 
- The instance terminate policy of the scaling group. Valid values: OldestInstance, NewestInstance, OldestScalingConfigurationWithOldestInstance, OldestScalingConfigurationWithNewestInstance. Default value: OldestScalingConfigurationWithOldestInstance.
- launchTemplate StringId 
- The ID of the launch template bound to the scaling group. The launch template and scaling configuration cannot take effect at the same time.
- launchTemplate List<ScalingOverrides Group Launch Template Override> 
- Specify instance specifications.
- launchTemplate StringVersion 
- The version of the launch template bound to the scaling group. Valid values are the version number, Latest, or Default.
- lifecycleState String
- The lifecycle state of the scaling group.
- loadBalancer IntegerHealth Check Grace Period 
- Grace period for health check of CLB instance in elastic group.
- maxInstance IntegerNumber 
- The max instance number of the scaling group. Value range: 0 ~ 100.
- minInstance IntegerNumber 
- The min instance number of the scaling group. Value range: 0 ~ 100.
- multiAz StringPolicy 
- The multi az policy of the scaling group. Valid values: PRIORITY, BALANCE. Default value: PRIORITY.
- projectName String
- The ProjectName of the scaling group.
- scalingGroup StringId 
- The id of the scaling group.
- scalingGroup StringName 
- The name of the scaling group.
- scalingMode String
- Example recycling mode for the elastic group, with values: release (default): Release mode. recycle: Shutdown recycling mode.
- serverGroup List<ScalingAttributes Group Server Group Attribute> 
- The load balancer server group attributes of the scaling group.
- stoppedInstance IntegerCount 
- The number of stopped instances.
- subnetIds List<String>
- The list of the subnet id to which the ENI is connected.
- 
List<ScalingGroup Tag> 
- Tags.
- totalInstance IntegerCount 
- The total instance count of the scaling group.
- updatedAt String
- The create time of the scaling group.
- vpcId String
- The VPC id of the scaling group.
- activeScaling stringConfiguration Id 
- The scaling configuration id which used by the scaling group.
- createdAt string
- The create time of the scaling group.
- dbInstance string[]Ids 
- ID of the RDS database instance.
- defaultCooldown number
- The default cooldown interval of the scaling group. Value range: 5 ~ 86400, unit: second. Default value: 300.
- desireInstance numberNumber 
- The desire instance number of the scaling group.
- healthCheck stringType 
- The health check type of the scaling group.
- instanceTerminate stringPolicy 
- The instance terminate policy of the scaling group. Valid values: OldestInstance, NewestInstance, OldestScalingConfigurationWithOldestInstance, OldestScalingConfigurationWithNewestInstance. Default value: OldestScalingConfigurationWithOldestInstance.
- launchTemplate stringId 
- The ID of the launch template bound to the scaling group. The launch template and scaling configuration cannot take effect at the same time.
- launchTemplate ScalingOverrides Group Launch Template Override[] 
- Specify instance specifications.
- launchTemplate stringVersion 
- The version of the launch template bound to the scaling group. Valid values are the version number, Latest, or Default.
- lifecycleState string
- The lifecycle state of the scaling group.
- loadBalancer numberHealth Check Grace Period 
- Grace period for health check of CLB instance in elastic group.
- maxInstance numberNumber 
- The max instance number of the scaling group. Value range: 0 ~ 100.
- minInstance numberNumber 
- The min instance number of the scaling group. Value range: 0 ~ 100.
- multiAz stringPolicy 
- The multi az policy of the scaling group. Valid values: PRIORITY, BALANCE. Default value: PRIORITY.
- projectName string
- The ProjectName of the scaling group.
- scalingGroup stringId 
- The id of the scaling group.
- scalingGroup stringName 
- The name of the scaling group.
- scalingMode string
- Example recycling mode for the elastic group, with values: release (default): Release mode. recycle: Shutdown recycling mode.
- serverGroup ScalingAttributes Group Server Group Attribute[] 
- The load balancer server group attributes of the scaling group.
- stoppedInstance numberCount 
- The number of stopped instances.
- subnetIds string[]
- The list of the subnet id to which the ENI is connected.
- 
ScalingGroup Tag[] 
- Tags.
- totalInstance numberCount 
- The total instance count of the scaling group.
- updatedAt string
- The create time of the scaling group.
- vpcId string
- The VPC id of the scaling group.
- active_scaling_ strconfiguration_ id 
- The scaling configuration id which used by the scaling group.
- created_at str
- The create time of the scaling group.
- db_instance_ Sequence[str]ids 
- ID of the RDS database instance.
- default_cooldown int
- The default cooldown interval of the scaling group. Value range: 5 ~ 86400, unit: second. Default value: 300.
- desire_instance_ intnumber 
- The desire instance number of the scaling group.
- health_check_ strtype 
- The health check type of the scaling group.
- instance_terminate_ strpolicy 
- The instance terminate policy of the scaling group. Valid values: OldestInstance, NewestInstance, OldestScalingConfigurationWithOldestInstance, OldestScalingConfigurationWithNewestInstance. Default value: OldestScalingConfigurationWithOldestInstance.
- launch_template_ strid 
- The ID of the launch template bound to the scaling group. The launch template and scaling configuration cannot take effect at the same time.
- launch_template_ Sequence[Scalingoverrides Group Launch Template Override Args] 
- Specify instance specifications.
- launch_template_ strversion 
- The version of the launch template bound to the scaling group. Valid values are the version number, Latest, or Default.
- lifecycle_state str
- The lifecycle state of the scaling group.
- load_balancer_ inthealth_ check_ grace_ period 
- Grace period for health check of CLB instance in elastic group.
- max_instance_ intnumber 
- The max instance number of the scaling group. Value range: 0 ~ 100.
- min_instance_ intnumber 
- The min instance number of the scaling group. Value range: 0 ~ 100.
- multi_az_ strpolicy 
- The multi az policy of the scaling group. Valid values: PRIORITY, BALANCE. Default value: PRIORITY.
- project_name str
- The ProjectName of the scaling group.
- scaling_group_ strid 
- The id of the scaling group.
- scaling_group_ strname 
- The name of the scaling group.
- scaling_mode str
- Example recycling mode for the elastic group, with values: release (default): Release mode. recycle: Shutdown recycling mode.
- server_group_ Sequence[Scalingattributes Group Server Group Attribute Args] 
- The load balancer server group attributes of the scaling group.
- stopped_instance_ intcount 
- The number of stopped instances.
- subnet_ids Sequence[str]
- The list of the subnet id to which the ENI is connected.
- 
Sequence[ScalingGroup Tag Args] 
- Tags.
- total_instance_ intcount 
- The total instance count of the scaling group.
- updated_at str
- The create time of the scaling group.
- vpc_id str
- The VPC id of the scaling group.
- activeScaling StringConfiguration Id 
- The scaling configuration id which used by the scaling group.
- createdAt String
- The create time of the scaling group.
- dbInstance List<String>Ids 
- ID of the RDS database instance.
- defaultCooldown Number
- The default cooldown interval of the scaling group. Value range: 5 ~ 86400, unit: second. Default value: 300.
- desireInstance NumberNumber 
- The desire instance number of the scaling group.
- healthCheck StringType 
- The health check type of the scaling group.
- instanceTerminate StringPolicy 
- The instance terminate policy of the scaling group. Valid values: OldestInstance, NewestInstance, OldestScalingConfigurationWithOldestInstance, OldestScalingConfigurationWithNewestInstance. Default value: OldestScalingConfigurationWithOldestInstance.
- launchTemplate StringId 
- The ID of the launch template bound to the scaling group. The launch template and scaling configuration cannot take effect at the same time.
- launchTemplate List<Property Map>Overrides 
- Specify instance specifications.
- launchTemplate StringVersion 
- The version of the launch template bound to the scaling group. Valid values are the version number, Latest, or Default.
- lifecycleState String
- The lifecycle state of the scaling group.
- loadBalancer NumberHealth Check Grace Period 
- Grace period for health check of CLB instance in elastic group.
- maxInstance NumberNumber 
- The max instance number of the scaling group. Value range: 0 ~ 100.
- minInstance NumberNumber 
- The min instance number of the scaling group. Value range: 0 ~ 100.
- multiAz StringPolicy 
- The multi az policy of the scaling group. Valid values: PRIORITY, BALANCE. Default value: PRIORITY.
- projectName String
- The ProjectName of the scaling group.
- scalingGroup StringId 
- The id of the scaling group.
- scalingGroup StringName 
- The name of the scaling group.
- scalingMode String
- Example recycling mode for the elastic group, with values: release (default): Release mode. recycle: Shutdown recycling mode.
- serverGroup List<Property Map>Attributes 
- The load balancer server group attributes of the scaling group.
- stoppedInstance NumberCount 
- The number of stopped instances.
- subnetIds List<String>
- The list of the subnet id to which the ENI is connected.
- List<Property Map>
- Tags.
- totalInstance NumberCount 
- The total instance count of the scaling group.
- updatedAt String
- The create time of the scaling group.
- vpcId String
- The VPC id of the scaling group.
Supporting Types
ScalingGroupLaunchTemplateOverride, ScalingGroupLaunchTemplateOverrideArgs          
- InstanceType string
- The instance type.
- InstanceType string
- The instance type.
- instanceType String
- The instance type.
- instanceType string
- The instance type.
- instance_type str
- The instance type.
- instanceType String
- The instance type.
ScalingGroupServerGroupAttribute, ScalingGroupServerGroupAttributeArgs          
- Port int
- The port receiving request of the server group. Value range: 1 ~ 65535.
- ServerGroup stringId 
- The id of the server group.
- Weight int
- The weight of the instance. Value range: 0 ~ 100.
- LoadBalancer stringId 
- The load balancer id.
- Port int
- The port receiving request of the server group. Value range: 1 ~ 65535.
- ServerGroup stringId 
- The id of the server group.
- Weight int
- The weight of the instance. Value range: 0 ~ 100.
- LoadBalancer stringId 
- The load balancer id.
- port Integer
- The port receiving request of the server group. Value range: 1 ~ 65535.
- serverGroup StringId 
- The id of the server group.
- weight Integer
- The weight of the instance. Value range: 0 ~ 100.
- loadBalancer StringId 
- The load balancer id.
- port number
- The port receiving request of the server group. Value range: 1 ~ 65535.
- serverGroup stringId 
- The id of the server group.
- weight number
- The weight of the instance. Value range: 0 ~ 100.
- loadBalancer stringId 
- The load balancer id.
- port int
- The port receiving request of the server group. Value range: 1 ~ 65535.
- server_group_ strid 
- The id of the server group.
- weight int
- The weight of the instance. Value range: 0 ~ 100.
- load_balancer_ strid 
- The load balancer id.
- port Number
- The port receiving request of the server group. Value range: 1 ~ 65535.
- serverGroup StringId 
- The id of the server group.
- weight Number
- The weight of the instance. Value range: 0 ~ 100.
- loadBalancer StringId 
- The load balancer id.
ScalingGroupTag, ScalingGroupTagArgs      
Import
ScalingGroup can be imported using the id, e.g.
$ pulumi import volcengine:autoscaling/scalingGroup:ScalingGroup default scg-mizl7m1kqccg5smt1bdpijuj
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the volcengineTerraform Provider.