alicloud.ess.ScalingConfiguration
Explore with Pulumi AI
Provides a ESS scaling configuration resource.
NOTE: Several instance types have outdated in some regions and availability zones, such as
ecs.t1.*
,ecs.s2.*
,ecs.n1.*
and so on. If you want to keep them, you should setis_outdated
to true. For more about the upgraded instance type, refer toalicloud.ecs.getInstanceTypes
datasource.
NOTE: Available since v1.39.0.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
import * as random from "@pulumi/random";
const config = new pulumi.Config();
const name = config.get("name") || "terraform-example";
const defaultInteger = new random.index.Integer("default", {
min: 10000,
max: 99999,
});
const myName = `${name}-${defaultInteger.result}`;
const default = alicloud.getZones({
availableDiskCategory: "cloud_efficiency",
availableResourceCreation: "VSwitch",
});
const defaultGetInstanceTypes = _default.then(_default => alicloud.ecs.getInstanceTypes({
availabilityZone: _default.zones?.[0]?.id,
cpuCoreCount: 2,
memorySize: 4,
}));
const defaultGetImages = alicloud.ecs.getImages({
nameRegex: "^ubuntu_18.*64",
mostRecent: true,
owners: "system",
});
const defaultNetwork = new alicloud.vpc.Network("default", {
vpcName: myName,
cidrBlock: "172.16.0.0/16",
});
const defaultSwitch = new alicloud.vpc.Switch("default", {
vpcId: defaultNetwork.id,
cidrBlock: "172.16.0.0/24",
zoneId: _default.then(_default => _default.zones?.[0]?.id),
vswitchName: myName,
});
const defaultSecurityGroup = new alicloud.ecs.SecurityGroup("default", {
name: myName,
vpcId: defaultNetwork.id,
});
const defaultSecurityGroupRule = new alicloud.ecs.SecurityGroupRule("default", {
type: "ingress",
ipProtocol: "tcp",
nicType: "intranet",
policy: "accept",
portRange: "22/22",
priority: 1,
securityGroupId: defaultSecurityGroup.id,
cidrIp: "172.16.0.0/24",
});
const defaultScalingGroup = new alicloud.ess.ScalingGroup("default", {
minSize: 1,
maxSize: 1,
scalingGroupName: myName,
removalPolicies: [
"OldestInstance",
"NewestInstance",
],
vswitchIds: [defaultSwitch.id],
});
const defaultScalingConfiguration = new alicloud.ess.ScalingConfiguration("default", {
scalingGroupId: defaultScalingGroup.id,
imageId: defaultGetImages.then(defaultGetImages => defaultGetImages.images?.[0]?.id),
instanceType: defaultGetInstanceTypes.then(defaultGetInstanceTypes => defaultGetInstanceTypes.instanceTypes?.[0]?.id),
securityGroupId: defaultSecurityGroup.id,
forceDelete: true,
active: true,
});
import pulumi
import pulumi_alicloud as alicloud
import pulumi_random as random
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "terraform-example"
default_integer = random.index.Integer("default",
min=10000,
max=99999)
my_name = f"{name}-{default_integer['result']}"
default = alicloud.get_zones(available_disk_category="cloud_efficiency",
available_resource_creation="VSwitch")
default_get_instance_types = alicloud.ecs.get_instance_types(availability_zone=default.zones[0].id,
cpu_core_count=2,
memory_size=4)
default_get_images = alicloud.ecs.get_images(name_regex="^ubuntu_18.*64",
most_recent=True,
owners="system")
default_network = alicloud.vpc.Network("default",
vpc_name=my_name,
cidr_block="172.16.0.0/16")
default_switch = alicloud.vpc.Switch("default",
vpc_id=default_network.id,
cidr_block="172.16.0.0/24",
zone_id=default.zones[0].id,
vswitch_name=my_name)
default_security_group = alicloud.ecs.SecurityGroup("default",
name=my_name,
vpc_id=default_network.id)
default_security_group_rule = alicloud.ecs.SecurityGroupRule("default",
type="ingress",
ip_protocol="tcp",
nic_type="intranet",
policy="accept",
port_range="22/22",
priority=1,
security_group_id=default_security_group.id,
cidr_ip="172.16.0.0/24")
default_scaling_group = alicloud.ess.ScalingGroup("default",
min_size=1,
max_size=1,
scaling_group_name=my_name,
removal_policies=[
"OldestInstance",
"NewestInstance",
],
vswitch_ids=[default_switch.id])
default_scaling_configuration = alicloud.ess.ScalingConfiguration("default",
scaling_group_id=default_scaling_group.id,
image_id=default_get_images.images[0].id,
instance_type=default_get_instance_types.instance_types[0].id,
security_group_id=default_security_group.id,
force_delete=True,
active=True)
package main
import (
"fmt"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ess"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"github.com/pulumi/pulumi-random/sdk/v4/go/random"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := "terraform-example"
if param := cfg.Get("name"); param != "" {
name = param
}
defaultInteger, err := random.NewInteger(ctx, "default", &random.IntegerArgs{
Min: 10000,
Max: 99999,
})
if err != nil {
return err
}
myName := fmt.Sprintf("%v-%v", name, defaultInteger.Result)
_default, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
AvailableDiskCategory: pulumi.StringRef("cloud_efficiency"),
AvailableResourceCreation: pulumi.StringRef("VSwitch"),
}, nil)
if err != nil {
return err
}
defaultGetInstanceTypes, err := ecs.GetInstanceTypes(ctx, &ecs.GetInstanceTypesArgs{
AvailabilityZone: pulumi.StringRef(_default.Zones[0].Id),
CpuCoreCount: pulumi.IntRef(2),
MemorySize: pulumi.Float64Ref(4),
}, nil)
if err != nil {
return err
}
defaultGetImages, err := ecs.GetImages(ctx, &ecs.GetImagesArgs{
NameRegex: pulumi.StringRef("^ubuntu_18.*64"),
MostRecent: pulumi.BoolRef(true),
Owners: pulumi.StringRef("system"),
}, nil)
if err != nil {
return err
}
defaultNetwork, err := vpc.NewNetwork(ctx, "default", &vpc.NetworkArgs{
VpcName: pulumi.String(myName),
CidrBlock: pulumi.String("172.16.0.0/16"),
})
if err != nil {
return err
}
defaultSwitch, err := vpc.NewSwitch(ctx, "default", &vpc.SwitchArgs{
VpcId: defaultNetwork.ID(),
CidrBlock: pulumi.String("172.16.0.0/24"),
ZoneId: pulumi.String(_default.Zones[0].Id),
VswitchName: pulumi.String(myName),
})
if err != nil {
return err
}
defaultSecurityGroup, err := ecs.NewSecurityGroup(ctx, "default", &ecs.SecurityGroupArgs{
Name: pulumi.String(myName),
VpcId: defaultNetwork.ID(),
})
if err != nil {
return err
}
_, err = ecs.NewSecurityGroupRule(ctx, "default", &ecs.SecurityGroupRuleArgs{
Type: pulumi.String("ingress"),
IpProtocol: pulumi.String("tcp"),
NicType: pulumi.String("intranet"),
Policy: pulumi.String("accept"),
PortRange: pulumi.String("22/22"),
Priority: pulumi.Int(1),
SecurityGroupId: defaultSecurityGroup.ID(),
CidrIp: pulumi.String("172.16.0.0/24"),
})
if err != nil {
return err
}
defaultScalingGroup, err := ess.NewScalingGroup(ctx, "default", &ess.ScalingGroupArgs{
MinSize: pulumi.Int(1),
MaxSize: pulumi.Int(1),
ScalingGroupName: pulumi.String(myName),
RemovalPolicies: pulumi.StringArray{
pulumi.String("OldestInstance"),
pulumi.String("NewestInstance"),
},
VswitchIds: pulumi.StringArray{
defaultSwitch.ID(),
},
})
if err != nil {
return err
}
_, err = ess.NewScalingConfiguration(ctx, "default", &ess.ScalingConfigurationArgs{
ScalingGroupId: defaultScalingGroup.ID(),
ImageId: pulumi.String(defaultGetImages.Images[0].Id),
InstanceType: pulumi.String(defaultGetInstanceTypes.InstanceTypes[0].Id),
SecurityGroupId: defaultSecurityGroup.ID(),
ForceDelete: pulumi.Bool(true),
Active: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
using Random = Pulumi.Random;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "terraform-example";
var defaultInteger = new Random.Index.Integer("default", new()
{
Min = 10000,
Max = 99999,
});
var myName = $"{name}-{defaultInteger.Result}";
var @default = AliCloud.GetZones.Invoke(new()
{
AvailableDiskCategory = "cloud_efficiency",
AvailableResourceCreation = "VSwitch",
});
var defaultGetInstanceTypes = AliCloud.Ecs.GetInstanceTypes.Invoke(new()
{
AvailabilityZone = @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
CpuCoreCount = 2,
MemorySize = 4,
});
var defaultGetImages = AliCloud.Ecs.GetImages.Invoke(new()
{
NameRegex = "^ubuntu_18.*64",
MostRecent = true,
Owners = "system",
});
var defaultNetwork = new AliCloud.Vpc.Network("default", new()
{
VpcName = myName,
CidrBlock = "172.16.0.0/16",
});
var defaultSwitch = new AliCloud.Vpc.Switch("default", new()
{
VpcId = defaultNetwork.Id,
CidrBlock = "172.16.0.0/24",
ZoneId = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)),
VswitchName = myName,
});
var defaultSecurityGroup = new AliCloud.Ecs.SecurityGroup("default", new()
{
Name = myName,
VpcId = defaultNetwork.Id,
});
var defaultSecurityGroupRule = new AliCloud.Ecs.SecurityGroupRule("default", new()
{
Type = "ingress",
IpProtocol = "tcp",
NicType = "intranet",
Policy = "accept",
PortRange = "22/22",
Priority = 1,
SecurityGroupId = defaultSecurityGroup.Id,
CidrIp = "172.16.0.0/24",
});
var defaultScalingGroup = new AliCloud.Ess.ScalingGroup("default", new()
{
MinSize = 1,
MaxSize = 1,
ScalingGroupName = myName,
RemovalPolicies = new[]
{
"OldestInstance",
"NewestInstance",
},
VswitchIds = new[]
{
defaultSwitch.Id,
},
});
var defaultScalingConfiguration = new AliCloud.Ess.ScalingConfiguration("default", new()
{
ScalingGroupId = defaultScalingGroup.Id,
ImageId = defaultGetImages.Apply(getImagesResult => getImagesResult.Images[0]?.Id),
InstanceType = defaultGetInstanceTypes.Apply(getInstanceTypesResult => getInstanceTypesResult.InstanceTypes[0]?.Id),
SecurityGroupId = defaultSecurityGroup.Id,
ForceDelete = true,
Active = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.random.integer;
import com.pulumi.random.IntegerArgs;
import com.pulumi.alicloud.AlicloudFunctions;
import com.pulumi.alicloud.inputs.GetZonesArgs;
import com.pulumi.alicloud.ecs.EcsFunctions;
import com.pulumi.alicloud.ecs.inputs.GetInstanceTypesArgs;
import com.pulumi.alicloud.ecs.inputs.GetImagesArgs;
import com.pulumi.alicloud.vpc.Network;
import com.pulumi.alicloud.vpc.NetworkArgs;
import com.pulumi.alicloud.vpc.Switch;
import com.pulumi.alicloud.vpc.SwitchArgs;
import com.pulumi.alicloud.ecs.SecurityGroup;
import com.pulumi.alicloud.ecs.SecurityGroupArgs;
import com.pulumi.alicloud.ecs.SecurityGroupRule;
import com.pulumi.alicloud.ecs.SecurityGroupRuleArgs;
import com.pulumi.alicloud.ess.ScalingGroup;
import com.pulumi.alicloud.ess.ScalingGroupArgs;
import com.pulumi.alicloud.ess.ScalingConfiguration;
import com.pulumi.alicloud.ess.ScalingConfigurationArgs;
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 config = ctx.config();
final var name = config.get("name").orElse("terraform-example");
var defaultInteger = new Integer("defaultInteger", IntegerArgs.builder()
.min(10000)
.max(99999)
.build());
final var myName = String.format("%s-%s", name,defaultInteger.result());
final var default = AlicloudFunctions.getZones(GetZonesArgs.builder()
.availableDiskCategory("cloud_efficiency")
.availableResourceCreation("VSwitch")
.build());
final var defaultGetInstanceTypes = EcsFunctions.getInstanceTypes(GetInstanceTypesArgs.builder()
.availabilityZone(default_.zones()[0].id())
.cpuCoreCount(2)
.memorySize(4)
.build());
final var defaultGetImages = EcsFunctions.getImages(GetImagesArgs.builder()
.nameRegex("^ubuntu_18.*64")
.mostRecent(true)
.owners("system")
.build());
var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
.vpcName(myName)
.cidrBlock("172.16.0.0/16")
.build());
var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()
.vpcId(defaultNetwork.id())
.cidrBlock("172.16.0.0/24")
.zoneId(default_.zones()[0].id())
.vswitchName(myName)
.build());
var defaultSecurityGroup = new SecurityGroup("defaultSecurityGroup", SecurityGroupArgs.builder()
.name(myName)
.vpcId(defaultNetwork.id())
.build());
var defaultSecurityGroupRule = new SecurityGroupRule("defaultSecurityGroupRule", SecurityGroupRuleArgs.builder()
.type("ingress")
.ipProtocol("tcp")
.nicType("intranet")
.policy("accept")
.portRange("22/22")
.priority(1)
.securityGroupId(defaultSecurityGroup.id())
.cidrIp("172.16.0.0/24")
.build());
var defaultScalingGroup = new ScalingGroup("defaultScalingGroup", ScalingGroupArgs.builder()
.minSize(1)
.maxSize(1)
.scalingGroupName(myName)
.removalPolicies(
"OldestInstance",
"NewestInstance")
.vswitchIds(defaultSwitch.id())
.build());
var defaultScalingConfiguration = new ScalingConfiguration("defaultScalingConfiguration", ScalingConfigurationArgs.builder()
.scalingGroupId(defaultScalingGroup.id())
.imageId(defaultGetImages.applyValue(getImagesResult -> getImagesResult.images()[0].id()))
.instanceType(defaultGetInstanceTypes.applyValue(getInstanceTypesResult -> getInstanceTypesResult.instanceTypes()[0].id()))
.securityGroupId(defaultSecurityGroup.id())
.forceDelete(true)
.active(true)
.build());
}
}
configuration:
name:
type: string
default: terraform-example
resources:
defaultInteger:
type: random:integer
name: default
properties:
min: 10000
max: 99999
defaultNetwork:
type: alicloud:vpc:Network
name: default
properties:
vpcName: ${myName}
cidrBlock: 172.16.0.0/16
defaultSwitch:
type: alicloud:vpc:Switch
name: default
properties:
vpcId: ${defaultNetwork.id}
cidrBlock: 172.16.0.0/24
zoneId: ${default.zones[0].id}
vswitchName: ${myName}
defaultSecurityGroup:
type: alicloud:ecs:SecurityGroup
name: default
properties:
name: ${myName}
vpcId: ${defaultNetwork.id}
defaultSecurityGroupRule:
type: alicloud:ecs:SecurityGroupRule
name: default
properties:
type: ingress
ipProtocol: tcp
nicType: intranet
policy: accept
portRange: 22/22
priority: 1
securityGroupId: ${defaultSecurityGroup.id}
cidrIp: 172.16.0.0/24
defaultScalingGroup:
type: alicloud:ess:ScalingGroup
name: default
properties:
minSize: 1
maxSize: 1
scalingGroupName: ${myName}
removalPolicies:
- OldestInstance
- NewestInstance
vswitchIds:
- ${defaultSwitch.id}
defaultScalingConfiguration:
type: alicloud:ess:ScalingConfiguration
name: default
properties:
scalingGroupId: ${defaultScalingGroup.id}
imageId: ${defaultGetImages.images[0].id}
instanceType: ${defaultGetInstanceTypes.instanceTypes[0].id}
securityGroupId: ${defaultSecurityGroup.id}
forceDelete: true
active: true
variables:
myName: ${name}-${defaultInteger.result}
default:
fn::invoke:
Function: alicloud:getZones
Arguments:
availableDiskCategory: cloud_efficiency
availableResourceCreation: VSwitch
defaultGetInstanceTypes:
fn::invoke:
Function: alicloud:ecs:getInstanceTypes
Arguments:
availabilityZone: ${default.zones[0].id}
cpuCoreCount: 2
memorySize: 4
defaultGetImages:
fn::invoke:
Function: alicloud:ecs:getImages
Arguments:
nameRegex: ^ubuntu_18.*64
mostRecent: true
owners: system
Module Support
You can use to the existing autoscaling module to create a configuration, scaling group and lifecycle hook one-click.
Create ScalingConfiguration Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ScalingConfiguration(name: string, args: ScalingConfigurationArgs, opts?: CustomResourceOptions);
@overload
def ScalingConfiguration(resource_name: str,
args: ScalingConfigurationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ScalingConfiguration(resource_name: str,
opts: Optional[ResourceOptions] = None,
scaling_group_id: Optional[str] = None,
kms_encrypted_password: Optional[str] = None,
instance_ids: Optional[Sequence[str]] = None,
password: Optional[str] = None,
force_delete: Optional[bool] = None,
host_name: Optional[str] = None,
image_id: Optional[str] = None,
image_name: Optional[str] = None,
override: Optional[bool] = None,
instance_name: Optional[str] = None,
instance_pattern_infos: Optional[Sequence[ScalingConfigurationInstancePatternInfoArgs]] = None,
instance_type: Optional[str] = None,
instance_type_overrides: Optional[Sequence[ScalingConfigurationInstanceTypeOverrideArgs]] = None,
kms_encryption_context: Optional[Mapping[str, str]] = None,
internet_charge_type: Optional[str] = None,
internet_max_bandwidth_in: Optional[int] = None,
internet_max_bandwidth_out: Optional[int] = None,
io_optimized: Optional[str] = None,
is_outdated: Optional[bool] = None,
key_name: Optional[str] = None,
active: Optional[bool] = None,
instance_types: Optional[Sequence[str]] = None,
data_disks: Optional[Sequence[ScalingConfigurationDataDiskArgs]] = None,
enable: Optional[bool] = None,
password_inherit: Optional[bool] = None,
resource_group_id: Optional[str] = None,
role_name: Optional[str] = None,
scaling_configuration_name: Optional[str] = None,
credit_specification: Optional[str] = None,
security_group_id: Optional[str] = None,
security_group_ids: Optional[Sequence[str]] = None,
spot_price_limits: Optional[Sequence[ScalingConfigurationSpotPriceLimitArgs]] = None,
spot_strategy: Optional[str] = None,
substitute: Optional[str] = None,
system_disk_auto_snapshot_policy_id: Optional[str] = None,
system_disk_category: Optional[str] = None,
system_disk_description: Optional[str] = None,
system_disk_encrypted: Optional[bool] = None,
system_disk_name: Optional[str] = None,
system_disk_performance_level: Optional[str] = None,
system_disk_size: Optional[int] = None,
tags: Optional[Mapping[str, str]] = None,
user_data: Optional[str] = None)
func NewScalingConfiguration(ctx *Context, name string, args ScalingConfigurationArgs, opts ...ResourceOption) (*ScalingConfiguration, error)
public ScalingConfiguration(string name, ScalingConfigurationArgs args, CustomResourceOptions? opts = null)
public ScalingConfiguration(String name, ScalingConfigurationArgs args)
public ScalingConfiguration(String name, ScalingConfigurationArgs args, CustomResourceOptions options)
type: alicloud:ess:ScalingConfiguration
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 ScalingConfigurationArgs
- 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 ScalingConfigurationArgs
- 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 ScalingConfigurationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ScalingConfigurationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ScalingConfigurationArgs
- 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 scalingConfigurationResource = new AliCloud.Ess.ScalingConfiguration("scalingConfigurationResource", new()
{
ScalingGroupId = "string",
KmsEncryptedPassword = "string",
Password = "string",
ForceDelete = false,
HostName = "string",
ImageId = "string",
ImageName = "string",
Override = false,
InstanceName = "string",
InstancePatternInfos = new[]
{
new AliCloud.Ess.Inputs.ScalingConfigurationInstancePatternInfoArgs
{
Architectures = new[]
{
"string",
},
BurstablePerformance = "string",
Cores = 0,
ExcludedInstanceTypes = new[]
{
"string",
},
InstanceFamilyLevel = "string",
MaxPrice = 0,
Memory = 0,
},
},
InstanceType = "string",
InstanceTypeOverrides = new[]
{
new AliCloud.Ess.Inputs.ScalingConfigurationInstanceTypeOverrideArgs
{
InstanceType = "string",
WeightedCapacity = 0,
},
},
KmsEncryptionContext =
{
{ "string", "string" },
},
InternetChargeType = "string",
InternetMaxBandwidthIn = 0,
InternetMaxBandwidthOut = 0,
IsOutdated = false,
KeyName = "string",
Active = false,
InstanceTypes = new[]
{
"string",
},
DataDisks = new[]
{
new AliCloud.Ess.Inputs.ScalingConfigurationDataDiskArgs
{
AutoSnapshotPolicyId = "string",
Category = "string",
DeleteWithInstance = false,
Description = "string",
Encrypted = false,
KmsKeyId = "string",
Name = "string",
PerformanceLevel = "string",
Size = 0,
SnapshotId = "string",
},
},
Enable = false,
PasswordInherit = false,
ResourceGroupId = "string",
RoleName = "string",
ScalingConfigurationName = "string",
CreditSpecification = "string",
SecurityGroupId = "string",
SecurityGroupIds = new[]
{
"string",
},
SpotPriceLimits = new[]
{
new AliCloud.Ess.Inputs.ScalingConfigurationSpotPriceLimitArgs
{
InstanceType = "string",
PriceLimit = 0,
},
},
SpotStrategy = "string",
Substitute = "string",
SystemDiskAutoSnapshotPolicyId = "string",
SystemDiskCategory = "string",
SystemDiskDescription = "string",
SystemDiskEncrypted = false,
SystemDiskName = "string",
SystemDiskPerformanceLevel = "string",
SystemDiskSize = 0,
Tags =
{
{ "string", "string" },
},
UserData = "string",
});
example, err := ess.NewScalingConfiguration(ctx, "scalingConfigurationResource", &ess.ScalingConfigurationArgs{
ScalingGroupId: pulumi.String("string"),
KmsEncryptedPassword: pulumi.String("string"),
Password: pulumi.String("string"),
ForceDelete: pulumi.Bool(false),
HostName: pulumi.String("string"),
ImageId: pulumi.String("string"),
ImageName: pulumi.String("string"),
Override: pulumi.Bool(false),
InstanceName: pulumi.String("string"),
InstancePatternInfos: ess.ScalingConfigurationInstancePatternInfoArray{
&ess.ScalingConfigurationInstancePatternInfoArgs{
Architectures: pulumi.StringArray{
pulumi.String("string"),
},
BurstablePerformance: pulumi.String("string"),
Cores: pulumi.Int(0),
ExcludedInstanceTypes: pulumi.StringArray{
pulumi.String("string"),
},
InstanceFamilyLevel: pulumi.String("string"),
MaxPrice: pulumi.Float64(0),
Memory: pulumi.Float64(0),
},
},
InstanceType: pulumi.String("string"),
InstanceTypeOverrides: ess.ScalingConfigurationInstanceTypeOverrideArray{
&ess.ScalingConfigurationInstanceTypeOverrideArgs{
InstanceType: pulumi.String("string"),
WeightedCapacity: pulumi.Int(0),
},
},
KmsEncryptionContext: pulumi.StringMap{
"string": pulumi.String("string"),
},
InternetChargeType: pulumi.String("string"),
InternetMaxBandwidthIn: pulumi.Int(0),
InternetMaxBandwidthOut: pulumi.Int(0),
IsOutdated: pulumi.Bool(false),
KeyName: pulumi.String("string"),
Active: pulumi.Bool(false),
InstanceTypes: pulumi.StringArray{
pulumi.String("string"),
},
DataDisks: ess.ScalingConfigurationDataDiskArray{
&ess.ScalingConfigurationDataDiskArgs{
AutoSnapshotPolicyId: pulumi.String("string"),
Category: pulumi.String("string"),
DeleteWithInstance: pulumi.Bool(false),
Description: pulumi.String("string"),
Encrypted: pulumi.Bool(false),
KmsKeyId: pulumi.String("string"),
Name: pulumi.String("string"),
PerformanceLevel: pulumi.String("string"),
Size: pulumi.Int(0),
SnapshotId: pulumi.String("string"),
},
},
Enable: pulumi.Bool(false),
PasswordInherit: pulumi.Bool(false),
ResourceGroupId: pulumi.String("string"),
RoleName: pulumi.String("string"),
ScalingConfigurationName: pulumi.String("string"),
CreditSpecification: pulumi.String("string"),
SecurityGroupId: pulumi.String("string"),
SecurityGroupIds: pulumi.StringArray{
pulumi.String("string"),
},
SpotPriceLimits: ess.ScalingConfigurationSpotPriceLimitArray{
&ess.ScalingConfigurationSpotPriceLimitArgs{
InstanceType: pulumi.String("string"),
PriceLimit: pulumi.Float64(0),
},
},
SpotStrategy: pulumi.String("string"),
Substitute: pulumi.String("string"),
SystemDiskAutoSnapshotPolicyId: pulumi.String("string"),
SystemDiskCategory: pulumi.String("string"),
SystemDiskDescription: pulumi.String("string"),
SystemDiskEncrypted: pulumi.Bool(false),
SystemDiskName: pulumi.String("string"),
SystemDiskPerformanceLevel: pulumi.String("string"),
SystemDiskSize: pulumi.Int(0),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
UserData: pulumi.String("string"),
})
var scalingConfigurationResource = new ScalingConfiguration("scalingConfigurationResource", ScalingConfigurationArgs.builder()
.scalingGroupId("string")
.kmsEncryptedPassword("string")
.password("string")
.forceDelete(false)
.hostName("string")
.imageId("string")
.imageName("string")
.override(false)
.instanceName("string")
.instancePatternInfos(ScalingConfigurationInstancePatternInfoArgs.builder()
.architectures("string")
.burstablePerformance("string")
.cores(0)
.excludedInstanceTypes("string")
.instanceFamilyLevel("string")
.maxPrice(0)
.memory(0)
.build())
.instanceType("string")
.instanceTypeOverrides(ScalingConfigurationInstanceTypeOverrideArgs.builder()
.instanceType("string")
.weightedCapacity(0)
.build())
.kmsEncryptionContext(Map.of("string", "string"))
.internetChargeType("string")
.internetMaxBandwidthIn(0)
.internetMaxBandwidthOut(0)
.isOutdated(false)
.keyName("string")
.active(false)
.instanceTypes("string")
.dataDisks(ScalingConfigurationDataDiskArgs.builder()
.autoSnapshotPolicyId("string")
.category("string")
.deleteWithInstance(false)
.description("string")
.encrypted(false)
.kmsKeyId("string")
.name("string")
.performanceLevel("string")
.size(0)
.snapshotId("string")
.build())
.enable(false)
.passwordInherit(false)
.resourceGroupId("string")
.roleName("string")
.scalingConfigurationName("string")
.creditSpecification("string")
.securityGroupId("string")
.securityGroupIds("string")
.spotPriceLimits(ScalingConfigurationSpotPriceLimitArgs.builder()
.instanceType("string")
.priceLimit(0)
.build())
.spotStrategy("string")
.substitute("string")
.systemDiskAutoSnapshotPolicyId("string")
.systemDiskCategory("string")
.systemDiskDescription("string")
.systemDiskEncrypted(false)
.systemDiskName("string")
.systemDiskPerformanceLevel("string")
.systemDiskSize(0)
.tags(Map.of("string", "string"))
.userData("string")
.build());
scaling_configuration_resource = alicloud.ess.ScalingConfiguration("scalingConfigurationResource",
scaling_group_id="string",
kms_encrypted_password="string",
password="string",
force_delete=False,
host_name="string",
image_id="string",
image_name="string",
override=False,
instance_name="string",
instance_pattern_infos=[alicloud.ess.ScalingConfigurationInstancePatternInfoArgs(
architectures=["string"],
burstable_performance="string",
cores=0,
excluded_instance_types=["string"],
instance_family_level="string",
max_price=0,
memory=0,
)],
instance_type="string",
instance_type_overrides=[alicloud.ess.ScalingConfigurationInstanceTypeOverrideArgs(
instance_type="string",
weighted_capacity=0,
)],
kms_encryption_context={
"string": "string",
},
internet_charge_type="string",
internet_max_bandwidth_in=0,
internet_max_bandwidth_out=0,
is_outdated=False,
key_name="string",
active=False,
instance_types=["string"],
data_disks=[alicloud.ess.ScalingConfigurationDataDiskArgs(
auto_snapshot_policy_id="string",
category="string",
delete_with_instance=False,
description="string",
encrypted=False,
kms_key_id="string",
name="string",
performance_level="string",
size=0,
snapshot_id="string",
)],
enable=False,
password_inherit=False,
resource_group_id="string",
role_name="string",
scaling_configuration_name="string",
credit_specification="string",
security_group_id="string",
security_group_ids=["string"],
spot_price_limits=[alicloud.ess.ScalingConfigurationSpotPriceLimitArgs(
instance_type="string",
price_limit=0,
)],
spot_strategy="string",
substitute="string",
system_disk_auto_snapshot_policy_id="string",
system_disk_category="string",
system_disk_description="string",
system_disk_encrypted=False,
system_disk_name="string",
system_disk_performance_level="string",
system_disk_size=0,
tags={
"string": "string",
},
user_data="string")
const scalingConfigurationResource = new alicloud.ess.ScalingConfiguration("scalingConfigurationResource", {
scalingGroupId: "string",
kmsEncryptedPassword: "string",
password: "string",
forceDelete: false,
hostName: "string",
imageId: "string",
imageName: "string",
override: false,
instanceName: "string",
instancePatternInfos: [{
architectures: ["string"],
burstablePerformance: "string",
cores: 0,
excludedInstanceTypes: ["string"],
instanceFamilyLevel: "string",
maxPrice: 0,
memory: 0,
}],
instanceType: "string",
instanceTypeOverrides: [{
instanceType: "string",
weightedCapacity: 0,
}],
kmsEncryptionContext: {
string: "string",
},
internetChargeType: "string",
internetMaxBandwidthIn: 0,
internetMaxBandwidthOut: 0,
isOutdated: false,
keyName: "string",
active: false,
instanceTypes: ["string"],
dataDisks: [{
autoSnapshotPolicyId: "string",
category: "string",
deleteWithInstance: false,
description: "string",
encrypted: false,
kmsKeyId: "string",
name: "string",
performanceLevel: "string",
size: 0,
snapshotId: "string",
}],
enable: false,
passwordInherit: false,
resourceGroupId: "string",
roleName: "string",
scalingConfigurationName: "string",
creditSpecification: "string",
securityGroupId: "string",
securityGroupIds: ["string"],
spotPriceLimits: [{
instanceType: "string",
priceLimit: 0,
}],
spotStrategy: "string",
substitute: "string",
systemDiskAutoSnapshotPolicyId: "string",
systemDiskCategory: "string",
systemDiskDescription: "string",
systemDiskEncrypted: false,
systemDiskName: "string",
systemDiskPerformanceLevel: "string",
systemDiskSize: 0,
tags: {
string: "string",
},
userData: "string",
});
type: alicloud:ess:ScalingConfiguration
properties:
active: false
creditSpecification: string
dataDisks:
- autoSnapshotPolicyId: string
category: string
deleteWithInstance: false
description: string
encrypted: false
kmsKeyId: string
name: string
performanceLevel: string
size: 0
snapshotId: string
enable: false
forceDelete: false
hostName: string
imageId: string
imageName: string
instanceName: string
instancePatternInfos:
- architectures:
- string
burstablePerformance: string
cores: 0
excludedInstanceTypes:
- string
instanceFamilyLevel: string
maxPrice: 0
memory: 0
instanceType: string
instanceTypeOverrides:
- instanceType: string
weightedCapacity: 0
instanceTypes:
- string
internetChargeType: string
internetMaxBandwidthIn: 0
internetMaxBandwidthOut: 0
isOutdated: false
keyName: string
kmsEncryptedPassword: string
kmsEncryptionContext:
string: string
override: false
password: string
passwordInherit: false
resourceGroupId: string
roleName: string
scalingConfigurationName: string
scalingGroupId: string
securityGroupId: string
securityGroupIds:
- string
spotPriceLimits:
- instanceType: string
priceLimit: 0
spotStrategy: string
substitute: string
systemDiskAutoSnapshotPolicyId: string
systemDiskCategory: string
systemDiskDescription: string
systemDiskEncrypted: false
systemDiskName: string
systemDiskPerformanceLevel: string
systemDiskSize: 0
tags:
string: string
userData: string
ScalingConfiguration Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The ScalingConfiguration resource accepts the following input properties:
- Scaling
Group stringId - ID of the scaling group of a scaling configuration.
- Active bool
- Whether active current scaling configuration in the specified scaling group. Default to
false
. - Credit
Specification string - Performance mode of the t5 burstable instance. Valid values: 'Standard', 'Unlimited'.
- Data
Disks List<Pulumi.Ali Cloud. Ess. Inputs. Scaling Configuration Data Disk> - DataDisk mappings to attach to ecs instance. See
data_disk
below for details. - Enable bool
- Whether enable the specified scaling group(make it active) to which the current scaling configuration belongs.
- Force
Delete bool - The last scaling configuration will be deleted forcibly with deleting its scaling group. Default to false.
- Host
Name string - Hostname of an ECS instance.
- Image
Id string - ID of an image file, indicating the image resource selected when an instance is enabled.
- Image
Name string - Name of an image file, indicating the image resource selected when an instance is enabled.
- Instance
Ids List<string> - It has been deprecated from version 1.6.0. New resource
alicloud.ess.Attachment
replaces it. - Instance
Name string - Name of an ECS instance. Default to "ESS-Instance". It is valid from version 1.7.1.
- Instance
Pattern List<Pulumi.Infos Ali Cloud. Ess. Inputs. Scaling Configuration Instance Pattern Info> - intelligent configuration mode. In this mode, you only need to specify the number of vCPUs, memory size, instance family, and maximum price. The system selects an instance type that is provided at the lowest price based on your configurations to create ECS instances. This mode is available only for scaling groups that reside in virtual private clouds (VPCs). This mode helps reduce the failures of scale-out activities caused by insufficient inventory of instance types. See
instance_pattern_info
below for details. - Instance
Type string - Resource type of an ECS instance.
- Instance
Type List<Pulumi.Overrides Ali Cloud. Ess. Inputs. Scaling Configuration Instance Type Override> - specify the weight of instance type. See
instance_type_override
below for details. - Instance
Types List<string> - Resource types of an ECS instance.
- Internet
Charge stringType - Network billing type, Values: PayByBandwidth or PayByTraffic. Default to
PayByBandwidth
. - Internet
Max intBandwidth In - Maximum incoming bandwidth from the public network, measured in Mbps (Mega bit per second). The value range is [1,200].
- Internet
Max intBandwidth Out - Maximum outgoing bandwidth from the public network, measured in Mbps (Mega bit per second). The value range for PayByBandwidth is [0,1024].
- Io
Optimized string - It has been deprecated on instance resource. All the launched alicloud instances will be I/O optimized.
- Is
Outdated bool - Whether to use outdated instance type. Default to false.
- Key
Name string - The name of key pair that can login ECS instance successfully without password. If it is specified, the password would be invalid.
- Kms
Encrypted stringPassword - An KMS encrypts password used to a db account. If the
password
is filled in, this field will be ignored. - Kms
Encryption Dictionary<string, string>Context - An KMS encryption context used to decrypt
kms_encrypted_password
before creating or updating a db account withkms_encrypted_password
. See Encryption Context. It is valid whenkms_encrypted_password
is set. - Override bool
- Indicates whether to overwrite the existing data. Default to false.
- Password string
- The password of the ECS instance. The password must be 8 to 30 characters in length. It must contains at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include
() ~!@#$%^&*-_+=\|{}[]:;'<>,.?/
, The password of Windows-based instances cannot start with a forward slash (/). - Password
Inherit bool - Specifies whether to use the password that is predefined in the image. If the PasswordInherit parameter is set to true, the
password
andkms_encrypted_password
will be ignored. You must ensure that the selected image has a password configured. - Resource
Group stringId - ID of resource group.
- Role
Name string - Instance RAM role name. The name is provided and maintained by RAM. You can use
alicloud.ram.Role
to create a new one. - Scaling
Configuration stringName - Name shown for the scheduled task. which must contain 2-64 characters (English or Chinese), starting with numbers, English letters or Chinese characters, and can contain number, underscores
_
, hypens-
, and decimal point.
. If this parameter value is not specified, the default value is ScalingConfigurationId. - Security
Group stringId - ID of the security group used to create new instance. It is conflict with
security_group_ids
. - Security
Group List<string>Ids - List IDs of the security group used to create new instances. It is conflict with
security_group_id
. - Spot
Price List<Pulumi.Limits Ali Cloud. Ess. Inputs. Scaling Configuration Spot Price Limit> Sets the maximum price hourly for instance types. See
spot_price_limit
below for details.NOTE: Before enabling the scaling group, it must have a active scaling configuration.
NOTE: If the number of attached ECS instances by
instance_ids
is smaller than MinSize, the Auto Scaling Service will automatically create ECS Pay-As-You-Go instance to cater to MinSize. For example, MinSize=5 and 2 existing ECS instances has been attached to the scaling group. When the scaling group is enabled, it will create 3 instnaces automatically based on its current active scaling configuration.NOTE: Restrictions on attaching ECS instances:
- The attached ECS instances and the scaling group must have the same region and network type(
Classic
orVPC
). - The attached ECS instances and the instance with active scaling configurations must have the same instance type.
- The attached ECS instances must in the running state.
- The attached ECS instances has not been attached to other scaling groups.
- The attached ECS instances supports Subscription and Pay-As-You-Go payment methods.
NOTE: The last scaling configuration can't be set to inactive and deleted alone.
- The attached ECS instances and the scaling group must have the same region and network type(
- Spot
Strategy string - The spot strategy for a Pay-As-You-Go instance. Valid values:
NoSpot
,SpotAsPriceGo
,SpotWithPriceLimit
. - Substitute string
- The another scaling configuration which will be active automatically and replace current configuration when setting
active
to 'false'. It is invalid whenactive
is 'true'. - System
Disk stringAuto Snapshot Policy Id - The id of auto snapshot policy for system disk.
- System
Disk stringCategory - Category of the system disk. The parameter value options are
ephemeral_ssd
,cloud_efficiency
,cloud_ssd
,cloud_essd
andcloud
.cloud
only is used to some no I/O optimized instance. Default tocloud_efficiency
. - System
Disk stringDescription - The description of the system disk. The description must be 2 to 256 characters in length and cannot start with http:// or https://.
- System
Disk boolEncrypted - Whether to encrypt the system disk.
- System
Disk stringName - The name of the system disk. It must be 2 to 128 characters in length. It must start with a letter and cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), and hyphens (-). Default value: null.
- System
Disk stringPerformance Level - The performance level of the ESSD used as the system disk.
- System
Disk intSize - Size of system disk, in GiB. Optional values: cloud: 20-500, cloud_efficiency: 20-500, cloud_ssd: 20-500, ephemeral_ssd: 20-500 The default value is max{40, ImageSize}. If this parameter is set, the system disk size must be greater than or equal to max{40, ImageSize}.
- Dictionary<string, string>
- A mapping of tags to assign to the resource. It will be applied for ECS instances finally.
- Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "http://", or "https://". It cannot be a null string.
- Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "http://", or "https://" It can be a null string.
- User
Data string - User-defined data to customize the startup behaviors of the ECS instance and to pass data into the ECS instance.
- Scaling
Group stringId - ID of the scaling group of a scaling configuration.
- Active bool
- Whether active current scaling configuration in the specified scaling group. Default to
false
. - Credit
Specification string - Performance mode of the t5 burstable instance. Valid values: 'Standard', 'Unlimited'.
- Data
Disks []ScalingConfiguration Data Disk Args - DataDisk mappings to attach to ecs instance. See
data_disk
below for details. - Enable bool
- Whether enable the specified scaling group(make it active) to which the current scaling configuration belongs.
- Force
Delete bool - The last scaling configuration will be deleted forcibly with deleting its scaling group. Default to false.
- Host
Name string - Hostname of an ECS instance.
- Image
Id string - ID of an image file, indicating the image resource selected when an instance is enabled.
- Image
Name string - Name of an image file, indicating the image resource selected when an instance is enabled.
- Instance
Ids []string - It has been deprecated from version 1.6.0. New resource
alicloud.ess.Attachment
replaces it. - Instance
Name string - Name of an ECS instance. Default to "ESS-Instance". It is valid from version 1.7.1.
- Instance
Pattern []ScalingInfos Configuration Instance Pattern Info Args - intelligent configuration mode. In this mode, you only need to specify the number of vCPUs, memory size, instance family, and maximum price. The system selects an instance type that is provided at the lowest price based on your configurations to create ECS instances. This mode is available only for scaling groups that reside in virtual private clouds (VPCs). This mode helps reduce the failures of scale-out activities caused by insufficient inventory of instance types. See
instance_pattern_info
below for details. - Instance
Type string - Resource type of an ECS instance.
- Instance
Type []ScalingOverrides Configuration Instance Type Override Args - specify the weight of instance type. See
instance_type_override
below for details. - Instance
Types []string - Resource types of an ECS instance.
- Internet
Charge stringType - Network billing type, Values: PayByBandwidth or PayByTraffic. Default to
PayByBandwidth
. - Internet
Max intBandwidth In - Maximum incoming bandwidth from the public network, measured in Mbps (Mega bit per second). The value range is [1,200].
- Internet
Max intBandwidth Out - Maximum outgoing bandwidth from the public network, measured in Mbps (Mega bit per second). The value range for PayByBandwidth is [0,1024].
- Io
Optimized string - It has been deprecated on instance resource. All the launched alicloud instances will be I/O optimized.
- Is
Outdated bool - Whether to use outdated instance type. Default to false.
- Key
Name string - The name of key pair that can login ECS instance successfully without password. If it is specified, the password would be invalid.
- Kms
Encrypted stringPassword - An KMS encrypts password used to a db account. If the
password
is filled in, this field will be ignored. - Kms
Encryption map[string]stringContext - An KMS encryption context used to decrypt
kms_encrypted_password
before creating or updating a db account withkms_encrypted_password
. See Encryption Context. It is valid whenkms_encrypted_password
is set. - Override bool
- Indicates whether to overwrite the existing data. Default to false.
- Password string
- The password of the ECS instance. The password must be 8 to 30 characters in length. It must contains at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include
() ~!@#$%^&*-_+=\|{}[]:;'<>,.?/
, The password of Windows-based instances cannot start with a forward slash (/). - Password
Inherit bool - Specifies whether to use the password that is predefined in the image. If the PasswordInherit parameter is set to true, the
password
andkms_encrypted_password
will be ignored. You must ensure that the selected image has a password configured. - Resource
Group stringId - ID of resource group.
- Role
Name string - Instance RAM role name. The name is provided and maintained by RAM. You can use
alicloud.ram.Role
to create a new one. - Scaling
Configuration stringName - Name shown for the scheduled task. which must contain 2-64 characters (English or Chinese), starting with numbers, English letters or Chinese characters, and can contain number, underscores
_
, hypens-
, and decimal point.
. If this parameter value is not specified, the default value is ScalingConfigurationId. - Security
Group stringId - ID of the security group used to create new instance. It is conflict with
security_group_ids
. - Security
Group []stringIds - List IDs of the security group used to create new instances. It is conflict with
security_group_id
. - Spot
Price []ScalingLimits Configuration Spot Price Limit Args Sets the maximum price hourly for instance types. See
spot_price_limit
below for details.NOTE: Before enabling the scaling group, it must have a active scaling configuration.
NOTE: If the number of attached ECS instances by
instance_ids
is smaller than MinSize, the Auto Scaling Service will automatically create ECS Pay-As-You-Go instance to cater to MinSize. For example, MinSize=5 and 2 existing ECS instances has been attached to the scaling group. When the scaling group is enabled, it will create 3 instnaces automatically based on its current active scaling configuration.NOTE: Restrictions on attaching ECS instances:
- The attached ECS instances and the scaling group must have the same region and network type(
Classic
orVPC
). - The attached ECS instances and the instance with active scaling configurations must have the same instance type.
- The attached ECS instances must in the running state.
- The attached ECS instances has not been attached to other scaling groups.
- The attached ECS instances supports Subscription and Pay-As-You-Go payment methods.
NOTE: The last scaling configuration can't be set to inactive and deleted alone.
- The attached ECS instances and the scaling group must have the same region and network type(
- Spot
Strategy string - The spot strategy for a Pay-As-You-Go instance. Valid values:
NoSpot
,SpotAsPriceGo
,SpotWithPriceLimit
. - Substitute string
- The another scaling configuration which will be active automatically and replace current configuration when setting
active
to 'false'. It is invalid whenactive
is 'true'. - System
Disk stringAuto Snapshot Policy Id - The id of auto snapshot policy for system disk.
- System
Disk stringCategory - Category of the system disk. The parameter value options are
ephemeral_ssd
,cloud_efficiency
,cloud_ssd
,cloud_essd
andcloud
.cloud
only is used to some no I/O optimized instance. Default tocloud_efficiency
. - System
Disk stringDescription - The description of the system disk. The description must be 2 to 256 characters in length and cannot start with http:// or https://.
- System
Disk boolEncrypted - Whether to encrypt the system disk.
- System
Disk stringName - The name of the system disk. It must be 2 to 128 characters in length. It must start with a letter and cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), and hyphens (-). Default value: null.
- System
Disk stringPerformance Level - The performance level of the ESSD used as the system disk.
- System
Disk intSize - Size of system disk, in GiB. Optional values: cloud: 20-500, cloud_efficiency: 20-500, cloud_ssd: 20-500, ephemeral_ssd: 20-500 The default value is max{40, ImageSize}. If this parameter is set, the system disk size must be greater than or equal to max{40, ImageSize}.
- map[string]string
- A mapping of tags to assign to the resource. It will be applied for ECS instances finally.
- Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "http://", or "https://". It cannot be a null string.
- Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "http://", or "https://" It can be a null string.
- User
Data string - User-defined data to customize the startup behaviors of the ECS instance and to pass data into the ECS instance.
- scaling
Group StringId - ID of the scaling group of a scaling configuration.
- active Boolean
- Whether active current scaling configuration in the specified scaling group. Default to
false
. - credit
Specification String - Performance mode of the t5 burstable instance. Valid values: 'Standard', 'Unlimited'.
- data
Disks List<ScalingConfiguration Data Disk> - DataDisk mappings to attach to ecs instance. See
data_disk
below for details. - enable Boolean
- Whether enable the specified scaling group(make it active) to which the current scaling configuration belongs.
- force
Delete Boolean - The last scaling configuration will be deleted forcibly with deleting its scaling group. Default to false.
- host
Name String - Hostname of an ECS instance.
- image
Id String - ID of an image file, indicating the image resource selected when an instance is enabled.
- image
Name String - Name of an image file, indicating the image resource selected when an instance is enabled.
- instance
Ids List<String> - It has been deprecated from version 1.6.0. New resource
alicloud.ess.Attachment
replaces it. - instance
Name String - Name of an ECS instance. Default to "ESS-Instance". It is valid from version 1.7.1.
- instance
Pattern List<ScalingInfos Configuration Instance Pattern Info> - intelligent configuration mode. In this mode, you only need to specify the number of vCPUs, memory size, instance family, and maximum price. The system selects an instance type that is provided at the lowest price based on your configurations to create ECS instances. This mode is available only for scaling groups that reside in virtual private clouds (VPCs). This mode helps reduce the failures of scale-out activities caused by insufficient inventory of instance types. See
instance_pattern_info
below for details. - instance
Type String - Resource type of an ECS instance.
- instance
Type List<ScalingOverrides Configuration Instance Type Override> - specify the weight of instance type. See
instance_type_override
below for details. - instance
Types List<String> - Resource types of an ECS instance.
- internet
Charge StringType - Network billing type, Values: PayByBandwidth or PayByTraffic. Default to
PayByBandwidth
. - internet
Max IntegerBandwidth In - Maximum incoming bandwidth from the public network, measured in Mbps (Mega bit per second). The value range is [1,200].
- internet
Max IntegerBandwidth Out - Maximum outgoing bandwidth from the public network, measured in Mbps (Mega bit per second). The value range for PayByBandwidth is [0,1024].
- io
Optimized String - It has been deprecated on instance resource. All the launched alicloud instances will be I/O optimized.
- is
Outdated Boolean - Whether to use outdated instance type. Default to false.
- key
Name String - The name of key pair that can login ECS instance successfully without password. If it is specified, the password would be invalid.
- kms
Encrypted StringPassword - An KMS encrypts password used to a db account. If the
password
is filled in, this field will be ignored. - kms
Encryption Map<String,String>Context - An KMS encryption context used to decrypt
kms_encrypted_password
before creating or updating a db account withkms_encrypted_password
. See Encryption Context. It is valid whenkms_encrypted_password
is set. - override Boolean
- Indicates whether to overwrite the existing data. Default to false.
- password String
- The password of the ECS instance. The password must be 8 to 30 characters in length. It must contains at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include
() ~!@#$%^&*-_+=\|{}[]:;'<>,.?/
, The password of Windows-based instances cannot start with a forward slash (/). - password
Inherit Boolean - Specifies whether to use the password that is predefined in the image. If the PasswordInherit parameter is set to true, the
password
andkms_encrypted_password
will be ignored. You must ensure that the selected image has a password configured. - resource
Group StringId - ID of resource group.
- role
Name String - Instance RAM role name. The name is provided and maintained by RAM. You can use
alicloud.ram.Role
to create a new one. - scaling
Configuration StringName - Name shown for the scheduled task. which must contain 2-64 characters (English or Chinese), starting with numbers, English letters or Chinese characters, and can contain number, underscores
_
, hypens-
, and decimal point.
. If this parameter value is not specified, the default value is ScalingConfigurationId. - security
Group StringId - ID of the security group used to create new instance. It is conflict with
security_group_ids
. - security
Group List<String>Ids - List IDs of the security group used to create new instances. It is conflict with
security_group_id
. - spot
Price List<ScalingLimits Configuration Spot Price Limit> Sets the maximum price hourly for instance types. See
spot_price_limit
below for details.NOTE: Before enabling the scaling group, it must have a active scaling configuration.
NOTE: If the number of attached ECS instances by
instance_ids
is smaller than MinSize, the Auto Scaling Service will automatically create ECS Pay-As-You-Go instance to cater to MinSize. For example, MinSize=5 and 2 existing ECS instances has been attached to the scaling group. When the scaling group is enabled, it will create 3 instnaces automatically based on its current active scaling configuration.NOTE: Restrictions on attaching ECS instances:
- The attached ECS instances and the scaling group must have the same region and network type(
Classic
orVPC
). - The attached ECS instances and the instance with active scaling configurations must have the same instance type.
- The attached ECS instances must in the running state.
- The attached ECS instances has not been attached to other scaling groups.
- The attached ECS instances supports Subscription and Pay-As-You-Go payment methods.
NOTE: The last scaling configuration can't be set to inactive and deleted alone.
- The attached ECS instances and the scaling group must have the same region and network type(
- spot
Strategy String - The spot strategy for a Pay-As-You-Go instance. Valid values:
NoSpot
,SpotAsPriceGo
,SpotWithPriceLimit
. - substitute String
- The another scaling configuration which will be active automatically and replace current configuration when setting
active
to 'false'. It is invalid whenactive
is 'true'. - system
Disk StringAuto Snapshot Policy Id - The id of auto snapshot policy for system disk.
- system
Disk StringCategory - Category of the system disk. The parameter value options are
ephemeral_ssd
,cloud_efficiency
,cloud_ssd
,cloud_essd
andcloud
.cloud
only is used to some no I/O optimized instance. Default tocloud_efficiency
. - system
Disk StringDescription - The description of the system disk. The description must be 2 to 256 characters in length and cannot start with http:// or https://.
- system
Disk BooleanEncrypted - Whether to encrypt the system disk.
- system
Disk StringName - The name of the system disk. It must be 2 to 128 characters in length. It must start with a letter and cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), and hyphens (-). Default value: null.
- system
Disk StringPerformance Level - The performance level of the ESSD used as the system disk.
- system
Disk IntegerSize - Size of system disk, in GiB. Optional values: cloud: 20-500, cloud_efficiency: 20-500, cloud_ssd: 20-500, ephemeral_ssd: 20-500 The default value is max{40, ImageSize}. If this parameter is set, the system disk size must be greater than or equal to max{40, ImageSize}.
- Map<String,String>
- A mapping of tags to assign to the resource. It will be applied for ECS instances finally.
- Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "http://", or "https://". It cannot be a null string.
- Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "http://", or "https://" It can be a null string.
- user
Data String - User-defined data to customize the startup behaviors of the ECS instance and to pass data into the ECS instance.
- scaling
Group stringId - ID of the scaling group of a scaling configuration.
- active boolean
- Whether active current scaling configuration in the specified scaling group. Default to
false
. - credit
Specification string - Performance mode of the t5 burstable instance. Valid values: 'Standard', 'Unlimited'.
- data
Disks ScalingConfiguration Data Disk[] - DataDisk mappings to attach to ecs instance. See
data_disk
below for details. - enable boolean
- Whether enable the specified scaling group(make it active) to which the current scaling configuration belongs.
- force
Delete boolean - The last scaling configuration will be deleted forcibly with deleting its scaling group. Default to false.
- host
Name string - Hostname of an ECS instance.
- image
Id string - ID of an image file, indicating the image resource selected when an instance is enabled.
- image
Name string - Name of an image file, indicating the image resource selected when an instance is enabled.
- instance
Ids string[] - It has been deprecated from version 1.6.0. New resource
alicloud.ess.Attachment
replaces it. - instance
Name string - Name of an ECS instance. Default to "ESS-Instance". It is valid from version 1.7.1.
- instance
Pattern ScalingInfos Configuration Instance Pattern Info[] - intelligent configuration mode. In this mode, you only need to specify the number of vCPUs, memory size, instance family, and maximum price. The system selects an instance type that is provided at the lowest price based on your configurations to create ECS instances. This mode is available only for scaling groups that reside in virtual private clouds (VPCs). This mode helps reduce the failures of scale-out activities caused by insufficient inventory of instance types. See
instance_pattern_info
below for details. - instance
Type string - Resource type of an ECS instance.
- instance
Type ScalingOverrides Configuration Instance Type Override[] - specify the weight of instance type. See
instance_type_override
below for details. - instance
Types string[] - Resource types of an ECS instance.
- internet
Charge stringType - Network billing type, Values: PayByBandwidth or PayByTraffic. Default to
PayByBandwidth
. - internet
Max numberBandwidth In - Maximum incoming bandwidth from the public network, measured in Mbps (Mega bit per second). The value range is [1,200].
- internet
Max numberBandwidth Out - Maximum outgoing bandwidth from the public network, measured in Mbps (Mega bit per second). The value range for PayByBandwidth is [0,1024].
- io
Optimized string - It has been deprecated on instance resource. All the launched alicloud instances will be I/O optimized.
- is
Outdated boolean - Whether to use outdated instance type. Default to false.
- key
Name string - The name of key pair that can login ECS instance successfully without password. If it is specified, the password would be invalid.
- kms
Encrypted stringPassword - An KMS encrypts password used to a db account. If the
password
is filled in, this field will be ignored. - kms
Encryption {[key: string]: string}Context - An KMS encryption context used to decrypt
kms_encrypted_password
before creating or updating a db account withkms_encrypted_password
. See Encryption Context. It is valid whenkms_encrypted_password
is set. - override boolean
- Indicates whether to overwrite the existing data. Default to false.
- password string
- The password of the ECS instance. The password must be 8 to 30 characters in length. It must contains at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include
() ~!@#$%^&*-_+=\|{}[]:;'<>,.?/
, The password of Windows-based instances cannot start with a forward slash (/). - password
Inherit boolean - Specifies whether to use the password that is predefined in the image. If the PasswordInherit parameter is set to true, the
password
andkms_encrypted_password
will be ignored. You must ensure that the selected image has a password configured. - resource
Group stringId - ID of resource group.
- role
Name string - Instance RAM role name. The name is provided and maintained by RAM. You can use
alicloud.ram.Role
to create a new one. - scaling
Configuration stringName - Name shown for the scheduled task. which must contain 2-64 characters (English or Chinese), starting with numbers, English letters or Chinese characters, and can contain number, underscores
_
, hypens-
, and decimal point.
. If this parameter value is not specified, the default value is ScalingConfigurationId. - security
Group stringId - ID of the security group used to create new instance. It is conflict with
security_group_ids
. - security
Group string[]Ids - List IDs of the security group used to create new instances. It is conflict with
security_group_id
. - spot
Price ScalingLimits Configuration Spot Price Limit[] Sets the maximum price hourly for instance types. See
spot_price_limit
below for details.NOTE: Before enabling the scaling group, it must have a active scaling configuration.
NOTE: If the number of attached ECS instances by
instance_ids
is smaller than MinSize, the Auto Scaling Service will automatically create ECS Pay-As-You-Go instance to cater to MinSize. For example, MinSize=5 and 2 existing ECS instances has been attached to the scaling group. When the scaling group is enabled, it will create 3 instnaces automatically based on its current active scaling configuration.NOTE: Restrictions on attaching ECS instances:
- The attached ECS instances and the scaling group must have the same region and network type(
Classic
orVPC
). - The attached ECS instances and the instance with active scaling configurations must have the same instance type.
- The attached ECS instances must in the running state.
- The attached ECS instances has not been attached to other scaling groups.
- The attached ECS instances supports Subscription and Pay-As-You-Go payment methods.
NOTE: The last scaling configuration can't be set to inactive and deleted alone.
- The attached ECS instances and the scaling group must have the same region and network type(
- spot
Strategy string - The spot strategy for a Pay-As-You-Go instance. Valid values:
NoSpot
,SpotAsPriceGo
,SpotWithPriceLimit
. - substitute string
- The another scaling configuration which will be active automatically and replace current configuration when setting
active
to 'false'. It is invalid whenactive
is 'true'. - system
Disk stringAuto Snapshot Policy Id - The id of auto snapshot policy for system disk.
- system
Disk stringCategory - Category of the system disk. The parameter value options are
ephemeral_ssd
,cloud_efficiency
,cloud_ssd
,cloud_essd
andcloud
.cloud
only is used to some no I/O optimized instance. Default tocloud_efficiency
. - system
Disk stringDescription - The description of the system disk. The description must be 2 to 256 characters in length and cannot start with http:// or https://.
- system
Disk booleanEncrypted - Whether to encrypt the system disk.
- system
Disk stringName - The name of the system disk. It must be 2 to 128 characters in length. It must start with a letter and cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), and hyphens (-). Default value: null.
- system
Disk stringPerformance Level - The performance level of the ESSD used as the system disk.
- system
Disk numberSize - Size of system disk, in GiB. Optional values: cloud: 20-500, cloud_efficiency: 20-500, cloud_ssd: 20-500, ephemeral_ssd: 20-500 The default value is max{40, ImageSize}. If this parameter is set, the system disk size must be greater than or equal to max{40, ImageSize}.
- {[key: string]: string}
- A mapping of tags to assign to the resource. It will be applied for ECS instances finally.
- Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "http://", or "https://". It cannot be a null string.
- Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "http://", or "https://" It can be a null string.
- user
Data string - User-defined data to customize the startup behaviors of the ECS instance and to pass data into the ECS instance.
- scaling_
group_ strid - ID of the scaling group of a scaling configuration.
- active bool
- Whether active current scaling configuration in the specified scaling group. Default to
false
. - credit_
specification str - Performance mode of the t5 burstable instance. Valid values: 'Standard', 'Unlimited'.
- data_
disks Sequence[ScalingConfiguration Data Disk Args] - DataDisk mappings to attach to ecs instance. See
data_disk
below for details. - enable bool
- Whether enable the specified scaling group(make it active) to which the current scaling configuration belongs.
- force_
delete bool - The last scaling configuration will be deleted forcibly with deleting its scaling group. Default to false.
- host_
name str - Hostname of an ECS instance.
- image_
id str - ID of an image file, indicating the image resource selected when an instance is enabled.
- image_
name str - Name of an image file, indicating the image resource selected when an instance is enabled.
- instance_
ids Sequence[str] - It has been deprecated from version 1.6.0. New resource
alicloud.ess.Attachment
replaces it. - instance_
name str - Name of an ECS instance. Default to "ESS-Instance". It is valid from version 1.7.1.
- instance_
pattern_ Sequence[Scalinginfos Configuration Instance Pattern Info Args] - intelligent configuration mode. In this mode, you only need to specify the number of vCPUs, memory size, instance family, and maximum price. The system selects an instance type that is provided at the lowest price based on your configurations to create ECS instances. This mode is available only for scaling groups that reside in virtual private clouds (VPCs). This mode helps reduce the failures of scale-out activities caused by insufficient inventory of instance types. See
instance_pattern_info
below for details. - instance_
type str - Resource type of an ECS instance.
- instance_
type_ Sequence[Scalingoverrides Configuration Instance Type Override Args] - specify the weight of instance type. See
instance_type_override
below for details. - instance_
types Sequence[str] - Resource types of an ECS instance.
- internet_
charge_ strtype - Network billing type, Values: PayByBandwidth or PayByTraffic. Default to
PayByBandwidth
. - internet_
max_ intbandwidth_ in - Maximum incoming bandwidth from the public network, measured in Mbps (Mega bit per second). The value range is [1,200].
- internet_
max_ intbandwidth_ out - Maximum outgoing bandwidth from the public network, measured in Mbps (Mega bit per second). The value range for PayByBandwidth is [0,1024].
- io_
optimized str - It has been deprecated on instance resource. All the launched alicloud instances will be I/O optimized.
- is_
outdated bool - Whether to use outdated instance type. Default to false.
- key_
name str - The name of key pair that can login ECS instance successfully without password. If it is specified, the password would be invalid.
- kms_
encrypted_ strpassword - An KMS encrypts password used to a db account. If the
password
is filled in, this field will be ignored. - kms_
encryption_ Mapping[str, str]context - An KMS encryption context used to decrypt
kms_encrypted_password
before creating or updating a db account withkms_encrypted_password
. See Encryption Context. It is valid whenkms_encrypted_password
is set. - override bool
- Indicates whether to overwrite the existing data. Default to false.
- password str
- The password of the ECS instance. The password must be 8 to 30 characters in length. It must contains at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include
() ~!@#$%^&*-_+=\|{}[]:;'<>,.?/
, The password of Windows-based instances cannot start with a forward slash (/). - password_
inherit bool - Specifies whether to use the password that is predefined in the image. If the PasswordInherit parameter is set to true, the
password
andkms_encrypted_password
will be ignored. You must ensure that the selected image has a password configured. - resource_
group_ strid - ID of resource group.
- role_
name str - Instance RAM role name. The name is provided and maintained by RAM. You can use
alicloud.ram.Role
to create a new one. - scaling_
configuration_ strname - Name shown for the scheduled task. which must contain 2-64 characters (English or Chinese), starting with numbers, English letters or Chinese characters, and can contain number, underscores
_
, hypens-
, and decimal point.
. If this parameter value is not specified, the default value is ScalingConfigurationId. - security_
group_ strid - ID of the security group used to create new instance. It is conflict with
security_group_ids
. - security_
group_ Sequence[str]ids - List IDs of the security group used to create new instances. It is conflict with
security_group_id
. - spot_
price_ Sequence[Scalinglimits Configuration Spot Price Limit Args] Sets the maximum price hourly for instance types. See
spot_price_limit
below for details.NOTE: Before enabling the scaling group, it must have a active scaling configuration.
NOTE: If the number of attached ECS instances by
instance_ids
is smaller than MinSize, the Auto Scaling Service will automatically create ECS Pay-As-You-Go instance to cater to MinSize. For example, MinSize=5 and 2 existing ECS instances has been attached to the scaling group. When the scaling group is enabled, it will create 3 instnaces automatically based on its current active scaling configuration.NOTE: Restrictions on attaching ECS instances:
- The attached ECS instances and the scaling group must have the same region and network type(
Classic
orVPC
). - The attached ECS instances and the instance with active scaling configurations must have the same instance type.
- The attached ECS instances must in the running state.
- The attached ECS instances has not been attached to other scaling groups.
- The attached ECS instances supports Subscription and Pay-As-You-Go payment methods.
NOTE: The last scaling configuration can't be set to inactive and deleted alone.
- The attached ECS instances and the scaling group must have the same region and network type(
- spot_
strategy str - The spot strategy for a Pay-As-You-Go instance. Valid values:
NoSpot
,SpotAsPriceGo
,SpotWithPriceLimit
. - substitute str
- The another scaling configuration which will be active automatically and replace current configuration when setting
active
to 'false'. It is invalid whenactive
is 'true'. - system_
disk_ strauto_ snapshot_ policy_ id - The id of auto snapshot policy for system disk.
- system_
disk_ strcategory - Category of the system disk. The parameter value options are
ephemeral_ssd
,cloud_efficiency
,cloud_ssd
,cloud_essd
andcloud
.cloud
only is used to some no I/O optimized instance. Default tocloud_efficiency
. - system_
disk_ strdescription - The description of the system disk. The description must be 2 to 256 characters in length and cannot start with http:// or https://.
- system_
disk_ boolencrypted - Whether to encrypt the system disk.
- system_
disk_ strname - The name of the system disk. It must be 2 to 128 characters in length. It must start with a letter and cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), and hyphens (-). Default value: null.
- system_
disk_ strperformance_ level - The performance level of the ESSD used as the system disk.
- system_
disk_ intsize - Size of system disk, in GiB. Optional values: cloud: 20-500, cloud_efficiency: 20-500, cloud_ssd: 20-500, ephemeral_ssd: 20-500 The default value is max{40, ImageSize}. If this parameter is set, the system disk size must be greater than or equal to max{40, ImageSize}.
- Mapping[str, str]
- A mapping of tags to assign to the resource. It will be applied for ECS instances finally.
- Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "http://", or "https://". It cannot be a null string.
- Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "http://", or "https://" It can be a null string.
- user_
data str - User-defined data to customize the startup behaviors of the ECS instance and to pass data into the ECS instance.
- scaling
Group StringId - ID of the scaling group of a scaling configuration.
- active Boolean
- Whether active current scaling configuration in the specified scaling group. Default to
false
. - credit
Specification String - Performance mode of the t5 burstable instance. Valid values: 'Standard', 'Unlimited'.
- data
Disks List<Property Map> - DataDisk mappings to attach to ecs instance. See
data_disk
below for details. - enable Boolean
- Whether enable the specified scaling group(make it active) to which the current scaling configuration belongs.
- force
Delete Boolean - The last scaling configuration will be deleted forcibly with deleting its scaling group. Default to false.
- host
Name String - Hostname of an ECS instance.
- image
Id String - ID of an image file, indicating the image resource selected when an instance is enabled.
- image
Name String - Name of an image file, indicating the image resource selected when an instance is enabled.
- instance
Ids List<String> - It has been deprecated from version 1.6.0. New resource
alicloud.ess.Attachment
replaces it. - instance
Name String - Name of an ECS instance. Default to "ESS-Instance". It is valid from version 1.7.1.
- instance
Pattern List<Property Map>Infos - intelligent configuration mode. In this mode, you only need to specify the number of vCPUs, memory size, instance family, and maximum price. The system selects an instance type that is provided at the lowest price based on your configurations to create ECS instances. This mode is available only for scaling groups that reside in virtual private clouds (VPCs). This mode helps reduce the failures of scale-out activities caused by insufficient inventory of instance types. See
instance_pattern_info
below for details. - instance
Type String - Resource type of an ECS instance.
- instance
Type List<Property Map>Overrides - specify the weight of instance type. See
instance_type_override
below for details. - instance
Types List<String> - Resource types of an ECS instance.
- internet
Charge StringType - Network billing type, Values: PayByBandwidth or PayByTraffic. Default to
PayByBandwidth
. - internet
Max NumberBandwidth In - Maximum incoming bandwidth from the public network, measured in Mbps (Mega bit per second). The value range is [1,200].
- internet
Max NumberBandwidth Out - Maximum outgoing bandwidth from the public network, measured in Mbps (Mega bit per second). The value range for PayByBandwidth is [0,1024].
- io
Optimized String - It has been deprecated on instance resource. All the launched alicloud instances will be I/O optimized.
- is
Outdated Boolean - Whether to use outdated instance type. Default to false.
- key
Name String - The name of key pair that can login ECS instance successfully without password. If it is specified, the password would be invalid.
- kms
Encrypted StringPassword - An KMS encrypts password used to a db account. If the
password
is filled in, this field will be ignored. - kms
Encryption Map<String>Context - An KMS encryption context used to decrypt
kms_encrypted_password
before creating or updating a db account withkms_encrypted_password
. See Encryption Context. It is valid whenkms_encrypted_password
is set. - override Boolean
- Indicates whether to overwrite the existing data. Default to false.
- password String
- The password of the ECS instance. The password must be 8 to 30 characters in length. It must contains at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include
() ~!@#$%^&*-_+=\|{}[]:;'<>,.?/
, The password of Windows-based instances cannot start with a forward slash (/). - password
Inherit Boolean - Specifies whether to use the password that is predefined in the image. If the PasswordInherit parameter is set to true, the
password
andkms_encrypted_password
will be ignored. You must ensure that the selected image has a password configured. - resource
Group StringId - ID of resource group.
- role
Name String - Instance RAM role name. The name is provided and maintained by RAM. You can use
alicloud.ram.Role
to create a new one. - scaling
Configuration StringName - Name shown for the scheduled task. which must contain 2-64 characters (English or Chinese), starting with numbers, English letters or Chinese characters, and can contain number, underscores
_
, hypens-
, and decimal point.
. If this parameter value is not specified, the default value is ScalingConfigurationId. - security
Group StringId - ID of the security group used to create new instance. It is conflict with
security_group_ids
. - security
Group List<String>Ids - List IDs of the security group used to create new instances. It is conflict with
security_group_id
. - spot
Price List<Property Map>Limits Sets the maximum price hourly for instance types. See
spot_price_limit
below for details.NOTE: Before enabling the scaling group, it must have a active scaling configuration.
NOTE: If the number of attached ECS instances by
instance_ids
is smaller than MinSize, the Auto Scaling Service will automatically create ECS Pay-As-You-Go instance to cater to MinSize. For example, MinSize=5 and 2 existing ECS instances has been attached to the scaling group. When the scaling group is enabled, it will create 3 instnaces automatically based on its current active scaling configuration.NOTE: Restrictions on attaching ECS instances:
- The attached ECS instances and the scaling group must have the same region and network type(
Classic
orVPC
). - The attached ECS instances and the instance with active scaling configurations must have the same instance type.
- The attached ECS instances must in the running state.
- The attached ECS instances has not been attached to other scaling groups.
- The attached ECS instances supports Subscription and Pay-As-You-Go payment methods.
NOTE: The last scaling configuration can't be set to inactive and deleted alone.
- The attached ECS instances and the scaling group must have the same region and network type(
- spot
Strategy String - The spot strategy for a Pay-As-You-Go instance. Valid values:
NoSpot
,SpotAsPriceGo
,SpotWithPriceLimit
. - substitute String
- The another scaling configuration which will be active automatically and replace current configuration when setting
active
to 'false'. It is invalid whenactive
is 'true'. - system
Disk StringAuto Snapshot Policy Id - The id of auto snapshot policy for system disk.
- system
Disk StringCategory - Category of the system disk. The parameter value options are
ephemeral_ssd
,cloud_efficiency
,cloud_ssd
,cloud_essd
andcloud
.cloud
only is used to some no I/O optimized instance. Default tocloud_efficiency
. - system
Disk StringDescription - The description of the system disk. The description must be 2 to 256 characters in length and cannot start with http:// or https://.
- system
Disk BooleanEncrypted - Whether to encrypt the system disk.
- system
Disk StringName - The name of the system disk. It must be 2 to 128 characters in length. It must start with a letter and cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), and hyphens (-). Default value: null.
- system
Disk StringPerformance Level - The performance level of the ESSD used as the system disk.
- system
Disk NumberSize - Size of system disk, in GiB. Optional values: cloud: 20-500, cloud_efficiency: 20-500, cloud_ssd: 20-500, ephemeral_ssd: 20-500 The default value is max{40, ImageSize}. If this parameter is set, the system disk size must be greater than or equal to max{40, ImageSize}.
- Map<String>
- A mapping of tags to assign to the resource. It will be applied for ECS instances finally.
- Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "http://", or "https://". It cannot be a null string.
- Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "http://", or "https://" It can be a null string.
- user
Data String - User-defined data to customize the startup behaviors of the ECS instance and to pass data into the ECS instance.
Outputs
All input properties are implicitly available as output properties. Additionally, the ScalingConfiguration resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing ScalingConfiguration Resource
Get an existing ScalingConfiguration 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?: ScalingConfigurationState, opts?: CustomResourceOptions): ScalingConfiguration
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
active: Optional[bool] = None,
credit_specification: Optional[str] = None,
data_disks: Optional[Sequence[ScalingConfigurationDataDiskArgs]] = None,
enable: Optional[bool] = None,
force_delete: Optional[bool] = None,
host_name: Optional[str] = None,
image_id: Optional[str] = None,
image_name: Optional[str] = None,
instance_ids: Optional[Sequence[str]] = None,
instance_name: Optional[str] = None,
instance_pattern_infos: Optional[Sequence[ScalingConfigurationInstancePatternInfoArgs]] = None,
instance_type: Optional[str] = None,
instance_type_overrides: Optional[Sequence[ScalingConfigurationInstanceTypeOverrideArgs]] = None,
instance_types: Optional[Sequence[str]] = None,
internet_charge_type: Optional[str] = None,
internet_max_bandwidth_in: Optional[int] = None,
internet_max_bandwidth_out: Optional[int] = None,
io_optimized: Optional[str] = None,
is_outdated: Optional[bool] = None,
key_name: Optional[str] = None,
kms_encrypted_password: Optional[str] = None,
kms_encryption_context: Optional[Mapping[str, str]] = None,
override: Optional[bool] = None,
password: Optional[str] = None,
password_inherit: Optional[bool] = None,
resource_group_id: Optional[str] = None,
role_name: Optional[str] = None,
scaling_configuration_name: Optional[str] = None,
scaling_group_id: Optional[str] = None,
security_group_id: Optional[str] = None,
security_group_ids: Optional[Sequence[str]] = None,
spot_price_limits: Optional[Sequence[ScalingConfigurationSpotPriceLimitArgs]] = None,
spot_strategy: Optional[str] = None,
substitute: Optional[str] = None,
system_disk_auto_snapshot_policy_id: Optional[str] = None,
system_disk_category: Optional[str] = None,
system_disk_description: Optional[str] = None,
system_disk_encrypted: Optional[bool] = None,
system_disk_name: Optional[str] = None,
system_disk_performance_level: Optional[str] = None,
system_disk_size: Optional[int] = None,
tags: Optional[Mapping[str, str]] = None,
user_data: Optional[str] = None) -> ScalingConfiguration
func GetScalingConfiguration(ctx *Context, name string, id IDInput, state *ScalingConfigurationState, opts ...ResourceOption) (*ScalingConfiguration, error)
public static ScalingConfiguration Get(string name, Input<string> id, ScalingConfigurationState? state, CustomResourceOptions? opts = null)
public static ScalingConfiguration get(String name, Output<String> id, ScalingConfigurationState 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.
- Active bool
- Whether active current scaling configuration in the specified scaling group. Default to
false
. - Credit
Specification string - Performance mode of the t5 burstable instance. Valid values: 'Standard', 'Unlimited'.
- Data
Disks List<Pulumi.Ali Cloud. Ess. Inputs. Scaling Configuration Data Disk> - DataDisk mappings to attach to ecs instance. See
data_disk
below for details. - Enable bool
- Whether enable the specified scaling group(make it active) to which the current scaling configuration belongs.
- Force
Delete bool - The last scaling configuration will be deleted forcibly with deleting its scaling group. Default to false.
- Host
Name string - Hostname of an ECS instance.
- Image
Id string - ID of an image file, indicating the image resource selected when an instance is enabled.
- Image
Name string - Name of an image file, indicating the image resource selected when an instance is enabled.
- Instance
Ids List<string> - It has been deprecated from version 1.6.0. New resource
alicloud.ess.Attachment
replaces it. - Instance
Name string - Name of an ECS instance. Default to "ESS-Instance". It is valid from version 1.7.1.
- Instance
Pattern List<Pulumi.Infos Ali Cloud. Ess. Inputs. Scaling Configuration Instance Pattern Info> - intelligent configuration mode. In this mode, you only need to specify the number of vCPUs, memory size, instance family, and maximum price. The system selects an instance type that is provided at the lowest price based on your configurations to create ECS instances. This mode is available only for scaling groups that reside in virtual private clouds (VPCs). This mode helps reduce the failures of scale-out activities caused by insufficient inventory of instance types. See
instance_pattern_info
below for details. - Instance
Type string - Resource type of an ECS instance.
- Instance
Type List<Pulumi.Overrides Ali Cloud. Ess. Inputs. Scaling Configuration Instance Type Override> - specify the weight of instance type. See
instance_type_override
below for details. - Instance
Types List<string> - Resource types of an ECS instance.
- Internet
Charge stringType - Network billing type, Values: PayByBandwidth or PayByTraffic. Default to
PayByBandwidth
. - Internet
Max intBandwidth In - Maximum incoming bandwidth from the public network, measured in Mbps (Mega bit per second). The value range is [1,200].
- Internet
Max intBandwidth Out - Maximum outgoing bandwidth from the public network, measured in Mbps (Mega bit per second). The value range for PayByBandwidth is [0,1024].
- Io
Optimized string - It has been deprecated on instance resource. All the launched alicloud instances will be I/O optimized.
- Is
Outdated bool - Whether to use outdated instance type. Default to false.
- Key
Name string - The name of key pair that can login ECS instance successfully without password. If it is specified, the password would be invalid.
- Kms
Encrypted stringPassword - An KMS encrypts password used to a db account. If the
password
is filled in, this field will be ignored. - Kms
Encryption Dictionary<string, string>Context - An KMS encryption context used to decrypt
kms_encrypted_password
before creating or updating a db account withkms_encrypted_password
. See Encryption Context. It is valid whenkms_encrypted_password
is set. - Override bool
- Indicates whether to overwrite the existing data. Default to false.
- Password string
- The password of the ECS instance. The password must be 8 to 30 characters in length. It must contains at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include
() ~!@#$%^&*-_+=\|{}[]:;'<>,.?/
, The password of Windows-based instances cannot start with a forward slash (/). - Password
Inherit bool - Specifies whether to use the password that is predefined in the image. If the PasswordInherit parameter is set to true, the
password
andkms_encrypted_password
will be ignored. You must ensure that the selected image has a password configured. - Resource
Group stringId - ID of resource group.
- Role
Name string - Instance RAM role name. The name is provided and maintained by RAM. You can use
alicloud.ram.Role
to create a new one. - Scaling
Configuration stringName - Name shown for the scheduled task. which must contain 2-64 characters (English or Chinese), starting with numbers, English letters or Chinese characters, and can contain number, underscores
_
, hypens-
, and decimal point.
. If this parameter value is not specified, the default value is ScalingConfigurationId. - Scaling
Group stringId - ID of the scaling group of a scaling configuration.
- Security
Group stringId - ID of the security group used to create new instance. It is conflict with
security_group_ids
. - Security
Group List<string>Ids - List IDs of the security group used to create new instances. It is conflict with
security_group_id
. - Spot
Price List<Pulumi.Limits Ali Cloud. Ess. Inputs. Scaling Configuration Spot Price Limit> Sets the maximum price hourly for instance types. See
spot_price_limit
below for details.NOTE: Before enabling the scaling group, it must have a active scaling configuration.
NOTE: If the number of attached ECS instances by
instance_ids
is smaller than MinSize, the Auto Scaling Service will automatically create ECS Pay-As-You-Go instance to cater to MinSize. For example, MinSize=5 and 2 existing ECS instances has been attached to the scaling group. When the scaling group is enabled, it will create 3 instnaces automatically based on its current active scaling configuration.NOTE: Restrictions on attaching ECS instances:
- The attached ECS instances and the scaling group must have the same region and network type(
Classic
orVPC
). - The attached ECS instances and the instance with active scaling configurations must have the same instance type.
- The attached ECS instances must in the running state.
- The attached ECS instances has not been attached to other scaling groups.
- The attached ECS instances supports Subscription and Pay-As-You-Go payment methods.
NOTE: The last scaling configuration can't be set to inactive and deleted alone.
- The attached ECS instances and the scaling group must have the same region and network type(
- Spot
Strategy string - The spot strategy for a Pay-As-You-Go instance. Valid values:
NoSpot
,SpotAsPriceGo
,SpotWithPriceLimit
. - Substitute string
- The another scaling configuration which will be active automatically and replace current configuration when setting
active
to 'false'. It is invalid whenactive
is 'true'. - System
Disk stringAuto Snapshot Policy Id - The id of auto snapshot policy for system disk.
- System
Disk stringCategory - Category of the system disk. The parameter value options are
ephemeral_ssd
,cloud_efficiency
,cloud_ssd
,cloud_essd
andcloud
.cloud
only is used to some no I/O optimized instance. Default tocloud_efficiency
. - System
Disk stringDescription - The description of the system disk. The description must be 2 to 256 characters in length and cannot start with http:// or https://.
- System
Disk boolEncrypted - Whether to encrypt the system disk.
- System
Disk stringName - The name of the system disk. It must be 2 to 128 characters in length. It must start with a letter and cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), and hyphens (-). Default value: null.
- System
Disk stringPerformance Level - The performance level of the ESSD used as the system disk.
- System
Disk intSize - Size of system disk, in GiB. Optional values: cloud: 20-500, cloud_efficiency: 20-500, cloud_ssd: 20-500, ephemeral_ssd: 20-500 The default value is max{40, ImageSize}. If this parameter is set, the system disk size must be greater than or equal to max{40, ImageSize}.
- Dictionary<string, string>
- A mapping of tags to assign to the resource. It will be applied for ECS instances finally.
- Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "http://", or "https://". It cannot be a null string.
- Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "http://", or "https://" It can be a null string.
- User
Data string - User-defined data to customize the startup behaviors of the ECS instance and to pass data into the ECS instance.
- Active bool
- Whether active current scaling configuration in the specified scaling group. Default to
false
. - Credit
Specification string - Performance mode of the t5 burstable instance. Valid values: 'Standard', 'Unlimited'.
- Data
Disks []ScalingConfiguration Data Disk Args - DataDisk mappings to attach to ecs instance. See
data_disk
below for details. - Enable bool
- Whether enable the specified scaling group(make it active) to which the current scaling configuration belongs.
- Force
Delete bool - The last scaling configuration will be deleted forcibly with deleting its scaling group. Default to false.
- Host
Name string - Hostname of an ECS instance.
- Image
Id string - ID of an image file, indicating the image resource selected when an instance is enabled.
- Image
Name string - Name of an image file, indicating the image resource selected when an instance is enabled.
- Instance
Ids []string - It has been deprecated from version 1.6.0. New resource
alicloud.ess.Attachment
replaces it. - Instance
Name string - Name of an ECS instance. Default to "ESS-Instance". It is valid from version 1.7.1.
- Instance
Pattern []ScalingInfos Configuration Instance Pattern Info Args - intelligent configuration mode. In this mode, you only need to specify the number of vCPUs, memory size, instance family, and maximum price. The system selects an instance type that is provided at the lowest price based on your configurations to create ECS instances. This mode is available only for scaling groups that reside in virtual private clouds (VPCs). This mode helps reduce the failures of scale-out activities caused by insufficient inventory of instance types. See
instance_pattern_info
below for details. - Instance
Type string - Resource type of an ECS instance.
- Instance
Type []ScalingOverrides Configuration Instance Type Override Args - specify the weight of instance type. See
instance_type_override
below for details. - Instance
Types []string - Resource types of an ECS instance.
- Internet
Charge stringType - Network billing type, Values: PayByBandwidth or PayByTraffic. Default to
PayByBandwidth
. - Internet
Max intBandwidth In - Maximum incoming bandwidth from the public network, measured in Mbps (Mega bit per second). The value range is [1,200].
- Internet
Max intBandwidth Out - Maximum outgoing bandwidth from the public network, measured in Mbps (Mega bit per second). The value range for PayByBandwidth is [0,1024].
- Io
Optimized string - It has been deprecated on instance resource. All the launched alicloud instances will be I/O optimized.
- Is
Outdated bool - Whether to use outdated instance type. Default to false.
- Key
Name string - The name of key pair that can login ECS instance successfully without password. If it is specified, the password would be invalid.
- Kms
Encrypted stringPassword - An KMS encrypts password used to a db account. If the
password
is filled in, this field will be ignored. - Kms
Encryption map[string]stringContext - An KMS encryption context used to decrypt
kms_encrypted_password
before creating or updating a db account withkms_encrypted_password
. See Encryption Context. It is valid whenkms_encrypted_password
is set. - Override bool
- Indicates whether to overwrite the existing data. Default to false.
- Password string
- The password of the ECS instance. The password must be 8 to 30 characters in length. It must contains at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include
() ~!@#$%^&*-_+=\|{}[]:;'<>,.?/
, The password of Windows-based instances cannot start with a forward slash (/). - Password
Inherit bool - Specifies whether to use the password that is predefined in the image. If the PasswordInherit parameter is set to true, the
password
andkms_encrypted_password
will be ignored. You must ensure that the selected image has a password configured. - Resource
Group stringId - ID of resource group.
- Role
Name string - Instance RAM role name. The name is provided and maintained by RAM. You can use
alicloud.ram.Role
to create a new one. - Scaling
Configuration stringName - Name shown for the scheduled task. which must contain 2-64 characters (English or Chinese), starting with numbers, English letters or Chinese characters, and can contain number, underscores
_
, hypens-
, and decimal point.
. If this parameter value is not specified, the default value is ScalingConfigurationId. - Scaling
Group stringId - ID of the scaling group of a scaling configuration.
- Security
Group stringId - ID of the security group used to create new instance. It is conflict with
security_group_ids
. - Security
Group []stringIds - List IDs of the security group used to create new instances. It is conflict with
security_group_id
. - Spot
Price []ScalingLimits Configuration Spot Price Limit Args Sets the maximum price hourly for instance types. See
spot_price_limit
below for details.NOTE: Before enabling the scaling group, it must have a active scaling configuration.
NOTE: If the number of attached ECS instances by
instance_ids
is smaller than MinSize, the Auto Scaling Service will automatically create ECS Pay-As-You-Go instance to cater to MinSize. For example, MinSize=5 and 2 existing ECS instances has been attached to the scaling group. When the scaling group is enabled, it will create 3 instnaces automatically based on its current active scaling configuration.NOTE: Restrictions on attaching ECS instances:
- The attached ECS instances and the scaling group must have the same region and network type(
Classic
orVPC
). - The attached ECS instances and the instance with active scaling configurations must have the same instance type.
- The attached ECS instances must in the running state.
- The attached ECS instances has not been attached to other scaling groups.
- The attached ECS instances supports Subscription and Pay-As-You-Go payment methods.
NOTE: The last scaling configuration can't be set to inactive and deleted alone.
- The attached ECS instances and the scaling group must have the same region and network type(
- Spot
Strategy string - The spot strategy for a Pay-As-You-Go instance. Valid values:
NoSpot
,SpotAsPriceGo
,SpotWithPriceLimit
. - Substitute string
- The another scaling configuration which will be active automatically and replace current configuration when setting
active
to 'false'. It is invalid whenactive
is 'true'. - System
Disk stringAuto Snapshot Policy Id - The id of auto snapshot policy for system disk.
- System
Disk stringCategory - Category of the system disk. The parameter value options are
ephemeral_ssd
,cloud_efficiency
,cloud_ssd
,cloud_essd
andcloud
.cloud
only is used to some no I/O optimized instance. Default tocloud_efficiency
. - System
Disk stringDescription - The description of the system disk. The description must be 2 to 256 characters in length and cannot start with http:// or https://.
- System
Disk boolEncrypted - Whether to encrypt the system disk.
- System
Disk stringName - The name of the system disk. It must be 2 to 128 characters in length. It must start with a letter and cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), and hyphens (-). Default value: null.
- System
Disk stringPerformance Level - The performance level of the ESSD used as the system disk.
- System
Disk intSize - Size of system disk, in GiB. Optional values: cloud: 20-500, cloud_efficiency: 20-500, cloud_ssd: 20-500, ephemeral_ssd: 20-500 The default value is max{40, ImageSize}. If this parameter is set, the system disk size must be greater than or equal to max{40, ImageSize}.
- map[string]string
- A mapping of tags to assign to the resource. It will be applied for ECS instances finally.
- Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "http://", or "https://". It cannot be a null string.
- Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "http://", or "https://" It can be a null string.
- User
Data string - User-defined data to customize the startup behaviors of the ECS instance and to pass data into the ECS instance.
- active Boolean
- Whether active current scaling configuration in the specified scaling group. Default to
false
. - credit
Specification String - Performance mode of the t5 burstable instance. Valid values: 'Standard', 'Unlimited'.
- data
Disks List<ScalingConfiguration Data Disk> - DataDisk mappings to attach to ecs instance. See
data_disk
below for details. - enable Boolean
- Whether enable the specified scaling group(make it active) to which the current scaling configuration belongs.
- force
Delete Boolean - The last scaling configuration will be deleted forcibly with deleting its scaling group. Default to false.
- host
Name String - Hostname of an ECS instance.
- image
Id String - ID of an image file, indicating the image resource selected when an instance is enabled.
- image
Name String - Name of an image file, indicating the image resource selected when an instance is enabled.
- instance
Ids List<String> - It has been deprecated from version 1.6.0. New resource
alicloud.ess.Attachment
replaces it. - instance
Name String - Name of an ECS instance. Default to "ESS-Instance". It is valid from version 1.7.1.
- instance
Pattern List<ScalingInfos Configuration Instance Pattern Info> - intelligent configuration mode. In this mode, you only need to specify the number of vCPUs, memory size, instance family, and maximum price. The system selects an instance type that is provided at the lowest price based on your configurations to create ECS instances. This mode is available only for scaling groups that reside in virtual private clouds (VPCs). This mode helps reduce the failures of scale-out activities caused by insufficient inventory of instance types. See
instance_pattern_info
below for details. - instance
Type String - Resource type of an ECS instance.
- instance
Type List<ScalingOverrides Configuration Instance Type Override> - specify the weight of instance type. See
instance_type_override
below for details. - instance
Types List<String> - Resource types of an ECS instance.
- internet
Charge StringType - Network billing type, Values: PayByBandwidth or PayByTraffic. Default to
PayByBandwidth
. - internet
Max IntegerBandwidth In - Maximum incoming bandwidth from the public network, measured in Mbps (Mega bit per second). The value range is [1,200].
- internet
Max IntegerBandwidth Out - Maximum outgoing bandwidth from the public network, measured in Mbps (Mega bit per second). The value range for PayByBandwidth is [0,1024].
- io
Optimized String - It has been deprecated on instance resource. All the launched alicloud instances will be I/O optimized.
- is
Outdated Boolean - Whether to use outdated instance type. Default to false.
- key
Name String - The name of key pair that can login ECS instance successfully without password. If it is specified, the password would be invalid.
- kms
Encrypted StringPassword - An KMS encrypts password used to a db account. If the
password
is filled in, this field will be ignored. - kms
Encryption Map<String,String>Context - An KMS encryption context used to decrypt
kms_encrypted_password
before creating or updating a db account withkms_encrypted_password
. See Encryption Context. It is valid whenkms_encrypted_password
is set. - override Boolean
- Indicates whether to overwrite the existing data. Default to false.
- password String
- The password of the ECS instance. The password must be 8 to 30 characters in length. It must contains at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include
() ~!@#$%^&*-_+=\|{}[]:;'<>,.?/
, The password of Windows-based instances cannot start with a forward slash (/). - password
Inherit Boolean - Specifies whether to use the password that is predefined in the image. If the PasswordInherit parameter is set to true, the
password
andkms_encrypted_password
will be ignored. You must ensure that the selected image has a password configured. - resource
Group StringId - ID of resource group.
- role
Name String - Instance RAM role name. The name is provided and maintained by RAM. You can use
alicloud.ram.Role
to create a new one. - scaling
Configuration StringName - Name shown for the scheduled task. which must contain 2-64 characters (English or Chinese), starting with numbers, English letters or Chinese characters, and can contain number, underscores
_
, hypens-
, and decimal point.
. If this parameter value is not specified, the default value is ScalingConfigurationId. - scaling
Group StringId - ID of the scaling group of a scaling configuration.
- security
Group StringId - ID of the security group used to create new instance. It is conflict with
security_group_ids
. - security
Group List<String>Ids - List IDs of the security group used to create new instances. It is conflict with
security_group_id
. - spot
Price List<ScalingLimits Configuration Spot Price Limit> Sets the maximum price hourly for instance types. See
spot_price_limit
below for details.NOTE: Before enabling the scaling group, it must have a active scaling configuration.
NOTE: If the number of attached ECS instances by
instance_ids
is smaller than MinSize, the Auto Scaling Service will automatically create ECS Pay-As-You-Go instance to cater to MinSize. For example, MinSize=5 and 2 existing ECS instances has been attached to the scaling group. When the scaling group is enabled, it will create 3 instnaces automatically based on its current active scaling configuration.NOTE: Restrictions on attaching ECS instances:
- The attached ECS instances and the scaling group must have the same region and network type(
Classic
orVPC
). - The attached ECS instances and the instance with active scaling configurations must have the same instance type.
- The attached ECS instances must in the running state.
- The attached ECS instances has not been attached to other scaling groups.
- The attached ECS instances supports Subscription and Pay-As-You-Go payment methods.
NOTE: The last scaling configuration can't be set to inactive and deleted alone.
- The attached ECS instances and the scaling group must have the same region and network type(
- spot
Strategy String - The spot strategy for a Pay-As-You-Go instance. Valid values:
NoSpot
,SpotAsPriceGo
,SpotWithPriceLimit
. - substitute String
- The another scaling configuration which will be active automatically and replace current configuration when setting
active
to 'false'. It is invalid whenactive
is 'true'. - system
Disk StringAuto Snapshot Policy Id - The id of auto snapshot policy for system disk.
- system
Disk StringCategory - Category of the system disk. The parameter value options are
ephemeral_ssd
,cloud_efficiency
,cloud_ssd
,cloud_essd
andcloud
.cloud
only is used to some no I/O optimized instance. Default tocloud_efficiency
. - system
Disk StringDescription - The description of the system disk. The description must be 2 to 256 characters in length and cannot start with http:// or https://.
- system
Disk BooleanEncrypted - Whether to encrypt the system disk.
- system
Disk StringName - The name of the system disk. It must be 2 to 128 characters in length. It must start with a letter and cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), and hyphens (-). Default value: null.
- system
Disk StringPerformance Level - The performance level of the ESSD used as the system disk.
- system
Disk IntegerSize - Size of system disk, in GiB. Optional values: cloud: 20-500, cloud_efficiency: 20-500, cloud_ssd: 20-500, ephemeral_ssd: 20-500 The default value is max{40, ImageSize}. If this parameter is set, the system disk size must be greater than or equal to max{40, ImageSize}.
- Map<String,String>
- A mapping of tags to assign to the resource. It will be applied for ECS instances finally.
- Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "http://", or "https://". It cannot be a null string.
- Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "http://", or "https://" It can be a null string.
- user
Data String - User-defined data to customize the startup behaviors of the ECS instance and to pass data into the ECS instance.
- active boolean
- Whether active current scaling configuration in the specified scaling group. Default to
false
. - credit
Specification string - Performance mode of the t5 burstable instance. Valid values: 'Standard', 'Unlimited'.
- data
Disks ScalingConfiguration Data Disk[] - DataDisk mappings to attach to ecs instance. See
data_disk
below for details. - enable boolean
- Whether enable the specified scaling group(make it active) to which the current scaling configuration belongs.
- force
Delete boolean - The last scaling configuration will be deleted forcibly with deleting its scaling group. Default to false.
- host
Name string - Hostname of an ECS instance.
- image
Id string - ID of an image file, indicating the image resource selected when an instance is enabled.
- image
Name string - Name of an image file, indicating the image resource selected when an instance is enabled.
- instance
Ids string[] - It has been deprecated from version 1.6.0. New resource
alicloud.ess.Attachment
replaces it. - instance
Name string - Name of an ECS instance. Default to "ESS-Instance". It is valid from version 1.7.1.
- instance
Pattern ScalingInfos Configuration Instance Pattern Info[] - intelligent configuration mode. In this mode, you only need to specify the number of vCPUs, memory size, instance family, and maximum price. The system selects an instance type that is provided at the lowest price based on your configurations to create ECS instances. This mode is available only for scaling groups that reside in virtual private clouds (VPCs). This mode helps reduce the failures of scale-out activities caused by insufficient inventory of instance types. See
instance_pattern_info
below for details. - instance
Type string - Resource type of an ECS instance.
- instance
Type ScalingOverrides Configuration Instance Type Override[] - specify the weight of instance type. See
instance_type_override
below for details. - instance
Types string[] - Resource types of an ECS instance.
- internet
Charge stringType - Network billing type, Values: PayByBandwidth or PayByTraffic. Default to
PayByBandwidth
. - internet
Max numberBandwidth In - Maximum incoming bandwidth from the public network, measured in Mbps (Mega bit per second). The value range is [1,200].
- internet
Max numberBandwidth Out - Maximum outgoing bandwidth from the public network, measured in Mbps (Mega bit per second). The value range for PayByBandwidth is [0,1024].
- io
Optimized string - It has been deprecated on instance resource. All the launched alicloud instances will be I/O optimized.
- is
Outdated boolean - Whether to use outdated instance type. Default to false.
- key
Name string - The name of key pair that can login ECS instance successfully without password. If it is specified, the password would be invalid.
- kms
Encrypted stringPassword - An KMS encrypts password used to a db account. If the
password
is filled in, this field will be ignored. - kms
Encryption {[key: string]: string}Context - An KMS encryption context used to decrypt
kms_encrypted_password
before creating or updating a db account withkms_encrypted_password
. See Encryption Context. It is valid whenkms_encrypted_password
is set. - override boolean
- Indicates whether to overwrite the existing data. Default to false.
- password string
- The password of the ECS instance. The password must be 8 to 30 characters in length. It must contains at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include
() ~!@#$%^&*-_+=\|{}[]:;'<>,.?/
, The password of Windows-based instances cannot start with a forward slash (/). - password
Inherit boolean - Specifies whether to use the password that is predefined in the image. If the PasswordInherit parameter is set to true, the
password
andkms_encrypted_password
will be ignored. You must ensure that the selected image has a password configured. - resource
Group stringId - ID of resource group.
- role
Name string - Instance RAM role name. The name is provided and maintained by RAM. You can use
alicloud.ram.Role
to create a new one. - scaling
Configuration stringName - Name shown for the scheduled task. which must contain 2-64 characters (English or Chinese), starting with numbers, English letters or Chinese characters, and can contain number, underscores
_
, hypens-
, and decimal point.
. If this parameter value is not specified, the default value is ScalingConfigurationId. - scaling
Group stringId - ID of the scaling group of a scaling configuration.
- security
Group stringId - ID of the security group used to create new instance. It is conflict with
security_group_ids
. - security
Group string[]Ids - List IDs of the security group used to create new instances. It is conflict with
security_group_id
. - spot
Price ScalingLimits Configuration Spot Price Limit[] Sets the maximum price hourly for instance types. See
spot_price_limit
below for details.NOTE: Before enabling the scaling group, it must have a active scaling configuration.
NOTE: If the number of attached ECS instances by
instance_ids
is smaller than MinSize, the Auto Scaling Service will automatically create ECS Pay-As-You-Go instance to cater to MinSize. For example, MinSize=5 and 2 existing ECS instances has been attached to the scaling group. When the scaling group is enabled, it will create 3 instnaces automatically based on its current active scaling configuration.NOTE: Restrictions on attaching ECS instances:
- The attached ECS instances and the scaling group must have the same region and network type(
Classic
orVPC
). - The attached ECS instances and the instance with active scaling configurations must have the same instance type.
- The attached ECS instances must in the running state.
- The attached ECS instances has not been attached to other scaling groups.
- The attached ECS instances supports Subscription and Pay-As-You-Go payment methods.
NOTE: The last scaling configuration can't be set to inactive and deleted alone.
- The attached ECS instances and the scaling group must have the same region and network type(
- spot
Strategy string - The spot strategy for a Pay-As-You-Go instance. Valid values:
NoSpot
,SpotAsPriceGo
,SpotWithPriceLimit
. - substitute string
- The another scaling configuration which will be active automatically and replace current configuration when setting
active
to 'false'. It is invalid whenactive
is 'true'. - system
Disk stringAuto Snapshot Policy Id - The id of auto snapshot policy for system disk.
- system
Disk stringCategory - Category of the system disk. The parameter value options are
ephemeral_ssd
,cloud_efficiency
,cloud_ssd
,cloud_essd
andcloud
.cloud
only is used to some no I/O optimized instance. Default tocloud_efficiency
. - system
Disk stringDescription - The description of the system disk. The description must be 2 to 256 characters in length and cannot start with http:// or https://.
- system
Disk booleanEncrypted - Whether to encrypt the system disk.
- system
Disk stringName - The name of the system disk. It must be 2 to 128 characters in length. It must start with a letter and cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), and hyphens (-). Default value: null.
- system
Disk stringPerformance Level - The performance level of the ESSD used as the system disk.
- system
Disk numberSize - Size of system disk, in GiB. Optional values: cloud: 20-500, cloud_efficiency: 20-500, cloud_ssd: 20-500, ephemeral_ssd: 20-500 The default value is max{40, ImageSize}. If this parameter is set, the system disk size must be greater than or equal to max{40, ImageSize}.
- {[key: string]: string}
- A mapping of tags to assign to the resource. It will be applied for ECS instances finally.
- Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "http://", or "https://". It cannot be a null string.
- Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "http://", or "https://" It can be a null string.
- user
Data string - User-defined data to customize the startup behaviors of the ECS instance and to pass data into the ECS instance.
- active bool
- Whether active current scaling configuration in the specified scaling group. Default to
false
. - credit_
specification str - Performance mode of the t5 burstable instance. Valid values: 'Standard', 'Unlimited'.
- data_
disks Sequence[ScalingConfiguration Data Disk Args] - DataDisk mappings to attach to ecs instance. See
data_disk
below for details. - enable bool
- Whether enable the specified scaling group(make it active) to which the current scaling configuration belongs.
- force_
delete bool - The last scaling configuration will be deleted forcibly with deleting its scaling group. Default to false.
- host_
name str - Hostname of an ECS instance.
- image_
id str - ID of an image file, indicating the image resource selected when an instance is enabled.
- image_
name str - Name of an image file, indicating the image resource selected when an instance is enabled.
- instance_
ids Sequence[str] - It has been deprecated from version 1.6.0. New resource
alicloud.ess.Attachment
replaces it. - instance_
name str - Name of an ECS instance. Default to "ESS-Instance". It is valid from version 1.7.1.
- instance_
pattern_ Sequence[Scalinginfos Configuration Instance Pattern Info Args] - intelligent configuration mode. In this mode, you only need to specify the number of vCPUs, memory size, instance family, and maximum price. The system selects an instance type that is provided at the lowest price based on your configurations to create ECS instances. This mode is available only for scaling groups that reside in virtual private clouds (VPCs). This mode helps reduce the failures of scale-out activities caused by insufficient inventory of instance types. See
instance_pattern_info
below for details. - instance_
type str - Resource type of an ECS instance.
- instance_
type_ Sequence[Scalingoverrides Configuration Instance Type Override Args] - specify the weight of instance type. See
instance_type_override
below for details. - instance_
types Sequence[str] - Resource types of an ECS instance.
- internet_
charge_ strtype - Network billing type, Values: PayByBandwidth or PayByTraffic. Default to
PayByBandwidth
. - internet_
max_ intbandwidth_ in - Maximum incoming bandwidth from the public network, measured in Mbps (Mega bit per second). The value range is [1,200].
- internet_
max_ intbandwidth_ out - Maximum outgoing bandwidth from the public network, measured in Mbps (Mega bit per second). The value range for PayByBandwidth is [0,1024].
- io_
optimized str - It has been deprecated on instance resource. All the launched alicloud instances will be I/O optimized.
- is_
outdated bool - Whether to use outdated instance type. Default to false.
- key_
name str - The name of key pair that can login ECS instance successfully without password. If it is specified, the password would be invalid.
- kms_
encrypted_ strpassword - An KMS encrypts password used to a db account. If the
password
is filled in, this field will be ignored. - kms_
encryption_ Mapping[str, str]context - An KMS encryption context used to decrypt
kms_encrypted_password
before creating or updating a db account withkms_encrypted_password
. See Encryption Context. It is valid whenkms_encrypted_password
is set. - override bool
- Indicates whether to overwrite the existing data. Default to false.
- password str
- The password of the ECS instance. The password must be 8 to 30 characters in length. It must contains at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include
() ~!@#$%^&*-_+=\|{}[]:;'<>,.?/
, The password of Windows-based instances cannot start with a forward slash (/). - password_
inherit bool - Specifies whether to use the password that is predefined in the image. If the PasswordInherit parameter is set to true, the
password
andkms_encrypted_password
will be ignored. You must ensure that the selected image has a password configured. - resource_
group_ strid - ID of resource group.
- role_
name str - Instance RAM role name. The name is provided and maintained by RAM. You can use
alicloud.ram.Role
to create a new one. - scaling_
configuration_ strname - Name shown for the scheduled task. which must contain 2-64 characters (English or Chinese), starting with numbers, English letters or Chinese characters, and can contain number, underscores
_
, hypens-
, and decimal point.
. If this parameter value is not specified, the default value is ScalingConfigurationId. - scaling_
group_ strid - ID of the scaling group of a scaling configuration.
- security_
group_ strid - ID of the security group used to create new instance. It is conflict with
security_group_ids
. - security_
group_ Sequence[str]ids - List IDs of the security group used to create new instances. It is conflict with
security_group_id
. - spot_
price_ Sequence[Scalinglimits Configuration Spot Price Limit Args] Sets the maximum price hourly for instance types. See
spot_price_limit
below for details.NOTE: Before enabling the scaling group, it must have a active scaling configuration.
NOTE: If the number of attached ECS instances by
instance_ids
is smaller than MinSize, the Auto Scaling Service will automatically create ECS Pay-As-You-Go instance to cater to MinSize. For example, MinSize=5 and 2 existing ECS instances has been attached to the scaling group. When the scaling group is enabled, it will create 3 instnaces automatically based on its current active scaling configuration.NOTE: Restrictions on attaching ECS instances:
- The attached ECS instances and the scaling group must have the same region and network type(
Classic
orVPC
). - The attached ECS instances and the instance with active scaling configurations must have the same instance type.
- The attached ECS instances must in the running state.
- The attached ECS instances has not been attached to other scaling groups.
- The attached ECS instances supports Subscription and Pay-As-You-Go payment methods.
NOTE: The last scaling configuration can't be set to inactive and deleted alone.
- The attached ECS instances and the scaling group must have the same region and network type(
- spot_
strategy str - The spot strategy for a Pay-As-You-Go instance. Valid values:
NoSpot
,SpotAsPriceGo
,SpotWithPriceLimit
. - substitute str
- The another scaling configuration which will be active automatically and replace current configuration when setting
active
to 'false'. It is invalid whenactive
is 'true'. - system_
disk_ strauto_ snapshot_ policy_ id - The id of auto snapshot policy for system disk.
- system_
disk_ strcategory - Category of the system disk. The parameter value options are
ephemeral_ssd
,cloud_efficiency
,cloud_ssd
,cloud_essd
andcloud
.cloud
only is used to some no I/O optimized instance. Default tocloud_efficiency
. - system_
disk_ strdescription - The description of the system disk. The description must be 2 to 256 characters in length and cannot start with http:// or https://.
- system_
disk_ boolencrypted - Whether to encrypt the system disk.
- system_
disk_ strname - The name of the system disk. It must be 2 to 128 characters in length. It must start with a letter and cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), and hyphens (-). Default value: null.
- system_
disk_ strperformance_ level - The performance level of the ESSD used as the system disk.
- system_
disk_ intsize - Size of system disk, in GiB. Optional values: cloud: 20-500, cloud_efficiency: 20-500, cloud_ssd: 20-500, ephemeral_ssd: 20-500 The default value is max{40, ImageSize}. If this parameter is set, the system disk size must be greater than or equal to max{40, ImageSize}.
- Mapping[str, str]
- A mapping of tags to assign to the resource. It will be applied for ECS instances finally.
- Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "http://", or "https://". It cannot be a null string.
- Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "http://", or "https://" It can be a null string.
- user_
data str - User-defined data to customize the startup behaviors of the ECS instance and to pass data into the ECS instance.
- active Boolean
- Whether active current scaling configuration in the specified scaling group. Default to
false
. - credit
Specification String - Performance mode of the t5 burstable instance. Valid values: 'Standard', 'Unlimited'.
- data
Disks List<Property Map> - DataDisk mappings to attach to ecs instance. See
data_disk
below for details. - enable Boolean
- Whether enable the specified scaling group(make it active) to which the current scaling configuration belongs.
- force
Delete Boolean - The last scaling configuration will be deleted forcibly with deleting its scaling group. Default to false.
- host
Name String - Hostname of an ECS instance.
- image
Id String - ID of an image file, indicating the image resource selected when an instance is enabled.
- image
Name String - Name of an image file, indicating the image resource selected when an instance is enabled.
- instance
Ids List<String> - It has been deprecated from version 1.6.0. New resource
alicloud.ess.Attachment
replaces it. - instance
Name String - Name of an ECS instance. Default to "ESS-Instance". It is valid from version 1.7.1.
- instance
Pattern List<Property Map>Infos - intelligent configuration mode. In this mode, you only need to specify the number of vCPUs, memory size, instance family, and maximum price. The system selects an instance type that is provided at the lowest price based on your configurations to create ECS instances. This mode is available only for scaling groups that reside in virtual private clouds (VPCs). This mode helps reduce the failures of scale-out activities caused by insufficient inventory of instance types. See
instance_pattern_info
below for details. - instance
Type String - Resource type of an ECS instance.
- instance
Type List<Property Map>Overrides - specify the weight of instance type. See
instance_type_override
below for details. - instance
Types List<String> - Resource types of an ECS instance.
- internet
Charge StringType - Network billing type, Values: PayByBandwidth or PayByTraffic. Default to
PayByBandwidth
. - internet
Max NumberBandwidth In - Maximum incoming bandwidth from the public network, measured in Mbps (Mega bit per second). The value range is [1,200].
- internet
Max NumberBandwidth Out - Maximum outgoing bandwidth from the public network, measured in Mbps (Mega bit per second). The value range for PayByBandwidth is [0,1024].
- io
Optimized String - It has been deprecated on instance resource. All the launched alicloud instances will be I/O optimized.
- is
Outdated Boolean - Whether to use outdated instance type. Default to false.
- key
Name String - The name of key pair that can login ECS instance successfully without password. If it is specified, the password would be invalid.
- kms
Encrypted StringPassword - An KMS encrypts password used to a db account. If the
password
is filled in, this field will be ignored. - kms
Encryption Map<String>Context - An KMS encryption context used to decrypt
kms_encrypted_password
before creating or updating a db account withkms_encrypted_password
. See Encryption Context. It is valid whenkms_encrypted_password
is set. - override Boolean
- Indicates whether to overwrite the existing data. Default to false.
- password String
- The password of the ECS instance. The password must be 8 to 30 characters in length. It must contains at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include
() ~!@#$%^&*-_+=\|{}[]:;'<>,.?/
, The password of Windows-based instances cannot start with a forward slash (/). - password
Inherit Boolean - Specifies whether to use the password that is predefined in the image. If the PasswordInherit parameter is set to true, the
password
andkms_encrypted_password
will be ignored. You must ensure that the selected image has a password configured. - resource
Group StringId - ID of resource group.
- role
Name String - Instance RAM role name. The name is provided and maintained by RAM. You can use
alicloud.ram.Role
to create a new one. - scaling
Configuration StringName - Name shown for the scheduled task. which must contain 2-64 characters (English or Chinese), starting with numbers, English letters or Chinese characters, and can contain number, underscores
_
, hypens-
, and decimal point.
. If this parameter value is not specified, the default value is ScalingConfigurationId. - scaling
Group StringId - ID of the scaling group of a scaling configuration.
- security
Group StringId - ID of the security group used to create new instance. It is conflict with
security_group_ids
. - security
Group List<String>Ids - List IDs of the security group used to create new instances. It is conflict with
security_group_id
. - spot
Price List<Property Map>Limits Sets the maximum price hourly for instance types. See
spot_price_limit
below for details.NOTE: Before enabling the scaling group, it must have a active scaling configuration.
NOTE: If the number of attached ECS instances by
instance_ids
is smaller than MinSize, the Auto Scaling Service will automatically create ECS Pay-As-You-Go instance to cater to MinSize. For example, MinSize=5 and 2 existing ECS instances has been attached to the scaling group. When the scaling group is enabled, it will create 3 instnaces automatically based on its current active scaling configuration.NOTE: Restrictions on attaching ECS instances:
- The attached ECS instances and the scaling group must have the same region and network type(
Classic
orVPC
). - The attached ECS instances and the instance with active scaling configurations must have the same instance type.
- The attached ECS instances must in the running state.
- The attached ECS instances has not been attached to other scaling groups.
- The attached ECS instances supports Subscription and Pay-As-You-Go payment methods.
NOTE: The last scaling configuration can't be set to inactive and deleted alone.
- The attached ECS instances and the scaling group must have the same region and network type(
- spot
Strategy String - The spot strategy for a Pay-As-You-Go instance. Valid values:
NoSpot
,SpotAsPriceGo
,SpotWithPriceLimit
. - substitute String
- The another scaling configuration which will be active automatically and replace current configuration when setting
active
to 'false'. It is invalid whenactive
is 'true'. - system
Disk StringAuto Snapshot Policy Id - The id of auto snapshot policy for system disk.
- system
Disk StringCategory - Category of the system disk. The parameter value options are
ephemeral_ssd
,cloud_efficiency
,cloud_ssd
,cloud_essd
andcloud
.cloud
only is used to some no I/O optimized instance. Default tocloud_efficiency
. - system
Disk StringDescription - The description of the system disk. The description must be 2 to 256 characters in length and cannot start with http:// or https://.
- system
Disk BooleanEncrypted - Whether to encrypt the system disk.
- system
Disk StringName - The name of the system disk. It must be 2 to 128 characters in length. It must start with a letter and cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), and hyphens (-). Default value: null.
- system
Disk StringPerformance Level - The performance level of the ESSD used as the system disk.
- system
Disk NumberSize - Size of system disk, in GiB. Optional values: cloud: 20-500, cloud_efficiency: 20-500, cloud_ssd: 20-500, ephemeral_ssd: 20-500 The default value is max{40, ImageSize}. If this parameter is set, the system disk size must be greater than or equal to max{40, ImageSize}.
- Map<String>
- A mapping of tags to assign to the resource. It will be applied for ECS instances finally.
- Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "http://", or "https://". It cannot be a null string.
- Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "http://", or "https://" It can be a null string.
- user
Data String - User-defined data to customize the startup behaviors of the ECS instance and to pass data into the ECS instance.
Supporting Types
ScalingConfigurationDataDisk, ScalingConfigurationDataDiskArgs
- Auto
Snapshot stringPolicy Id - The id of auto snapshot policy for data disk.
- Category string
- Category of data disk. The parameter value options are
ephemeral_ssd
,cloud_efficiency
,cloud_ssd
,cloud_essd
andcloud
. - Delete
With boolInstance - Whether to delete data disks attached on ecs when release ecs instance. Optional value:
true
orfalse
, default totrue
. - Description string
- The description of data disk N. Valid values of N: 1 to 16. The description must be 2 to 256 characters in length and cannot start with http:// or https://.
- Device string
- The mount point of data disk N. Valid values of N: 1 to 16. If this parameter is not specified, the system automatically allocates a mount point to created ECS instances. The name of the mount point ranges from /dev/xvdb to /dev/xvdz in alphabetical order.
- Encrypted bool
- Specifies whether data disk N is to be encrypted. Valid values of N: 1 to 16. Valid values:
true
: encrypted,false
: not encrypted. Default value:false
. - Kms
Key stringId - The CMK ID for data disk N. Valid values of N: 1 to 16.
- Name string
- The name of data disk N. Valid values of N: 1 to 16. It must be 2 to 128 characters in length. It must start with a letter and cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), and hyphens (-). Default value: null.
- Performance
Level string - The performance level of the ESSD used as data disk.
- Size int
- Size of data disk, in GB. The value ranges [5,2000] for a cloud disk, [5,1024] for an ephemeral disk, [5,800] for an ephemeral_ssd disk, [20,32768] for cloud_efficiency, cloud_ssd, cloud_essd disk.
- Snapshot
Id string - Snapshot used for creating the data disk. If this parameter is specified, the size parameter is neglected, and the size of the created disk is the size of the snapshot.
- Auto
Snapshot stringPolicy Id - The id of auto snapshot policy for data disk.
- Category string
- Category of data disk. The parameter value options are
ephemeral_ssd
,cloud_efficiency
,cloud_ssd
,cloud_essd
andcloud
. - Delete
With boolInstance - Whether to delete data disks attached on ecs when release ecs instance. Optional value:
true
orfalse
, default totrue
. - Description string
- The description of data disk N. Valid values of N: 1 to 16. The description must be 2 to 256 characters in length and cannot start with http:// or https://.
- Device string
- The mount point of data disk N. Valid values of N: 1 to 16. If this parameter is not specified, the system automatically allocates a mount point to created ECS instances. The name of the mount point ranges from /dev/xvdb to /dev/xvdz in alphabetical order.
- Encrypted bool
- Specifies whether data disk N is to be encrypted. Valid values of N: 1 to 16. Valid values:
true
: encrypted,false
: not encrypted. Default value:false
. - Kms
Key stringId - The CMK ID for data disk N. Valid values of N: 1 to 16.
- Name string
- The name of data disk N. Valid values of N: 1 to 16. It must be 2 to 128 characters in length. It must start with a letter and cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), and hyphens (-). Default value: null.
- Performance
Level string - The performance level of the ESSD used as data disk.
- Size int
- Size of data disk, in GB. The value ranges [5,2000] for a cloud disk, [5,1024] for an ephemeral disk, [5,800] for an ephemeral_ssd disk, [20,32768] for cloud_efficiency, cloud_ssd, cloud_essd disk.
- Snapshot
Id string - Snapshot used for creating the data disk. If this parameter is specified, the size parameter is neglected, and the size of the created disk is the size of the snapshot.
- auto
Snapshot StringPolicy Id - The id of auto snapshot policy for data disk.
- category String
- Category of data disk. The parameter value options are
ephemeral_ssd
,cloud_efficiency
,cloud_ssd
,cloud_essd
andcloud
. - delete
With BooleanInstance - Whether to delete data disks attached on ecs when release ecs instance. Optional value:
true
orfalse
, default totrue
. - description String
- The description of data disk N. Valid values of N: 1 to 16. The description must be 2 to 256 characters in length and cannot start with http:// or https://.
- device String
- The mount point of data disk N. Valid values of N: 1 to 16. If this parameter is not specified, the system automatically allocates a mount point to created ECS instances. The name of the mount point ranges from /dev/xvdb to /dev/xvdz in alphabetical order.
- encrypted Boolean
- Specifies whether data disk N is to be encrypted. Valid values of N: 1 to 16. Valid values:
true
: encrypted,false
: not encrypted. Default value:false
. - kms
Key StringId - The CMK ID for data disk N. Valid values of N: 1 to 16.
- name String
- The name of data disk N. Valid values of N: 1 to 16. It must be 2 to 128 characters in length. It must start with a letter and cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), and hyphens (-). Default value: null.
- performance
Level String - The performance level of the ESSD used as data disk.
- size Integer
- Size of data disk, in GB. The value ranges [5,2000] for a cloud disk, [5,1024] for an ephemeral disk, [5,800] for an ephemeral_ssd disk, [20,32768] for cloud_efficiency, cloud_ssd, cloud_essd disk.
- snapshot
Id String - Snapshot used for creating the data disk. If this parameter is specified, the size parameter is neglected, and the size of the created disk is the size of the snapshot.
- auto
Snapshot stringPolicy Id - The id of auto snapshot policy for data disk.
- category string
- Category of data disk. The parameter value options are
ephemeral_ssd
,cloud_efficiency
,cloud_ssd
,cloud_essd
andcloud
. - delete
With booleanInstance - Whether to delete data disks attached on ecs when release ecs instance. Optional value:
true
orfalse
, default totrue
. - description string
- The description of data disk N. Valid values of N: 1 to 16. The description must be 2 to 256 characters in length and cannot start with http:// or https://.
- device string
- The mount point of data disk N. Valid values of N: 1 to 16. If this parameter is not specified, the system automatically allocates a mount point to created ECS instances. The name of the mount point ranges from /dev/xvdb to /dev/xvdz in alphabetical order.
- encrypted boolean
- Specifies whether data disk N is to be encrypted. Valid values of N: 1 to 16. Valid values:
true
: encrypted,false
: not encrypted. Default value:false
. - kms
Key stringId - The CMK ID for data disk N. Valid values of N: 1 to 16.
- name string
- The name of data disk N. Valid values of N: 1 to 16. It must be 2 to 128 characters in length. It must start with a letter and cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), and hyphens (-). Default value: null.
- performance
Level string - The performance level of the ESSD used as data disk.
- size number
- Size of data disk, in GB. The value ranges [5,2000] for a cloud disk, [5,1024] for an ephemeral disk, [5,800] for an ephemeral_ssd disk, [20,32768] for cloud_efficiency, cloud_ssd, cloud_essd disk.
- snapshot
Id string - Snapshot used for creating the data disk. If this parameter is specified, the size parameter is neglected, and the size of the created disk is the size of the snapshot.
- auto_
snapshot_ strpolicy_ id - The id of auto snapshot policy for data disk.
- category str
- Category of data disk. The parameter value options are
ephemeral_ssd
,cloud_efficiency
,cloud_ssd
,cloud_essd
andcloud
. - delete_
with_ boolinstance - Whether to delete data disks attached on ecs when release ecs instance. Optional value:
true
orfalse
, default totrue
. - description str
- The description of data disk N. Valid values of N: 1 to 16. The description must be 2 to 256 characters in length and cannot start with http:// or https://.
- device str
- The mount point of data disk N. Valid values of N: 1 to 16. If this parameter is not specified, the system automatically allocates a mount point to created ECS instances. The name of the mount point ranges from /dev/xvdb to /dev/xvdz in alphabetical order.
- encrypted bool
- Specifies whether data disk N is to be encrypted. Valid values of N: 1 to 16. Valid values:
true
: encrypted,false
: not encrypted. Default value:false
. - kms_
key_ strid - The CMK ID for data disk N. Valid values of N: 1 to 16.
- name str
- The name of data disk N. Valid values of N: 1 to 16. It must be 2 to 128 characters in length. It must start with a letter and cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), and hyphens (-). Default value: null.
- performance_
level str - The performance level of the ESSD used as data disk.
- size int
- Size of data disk, in GB. The value ranges [5,2000] for a cloud disk, [5,1024] for an ephemeral disk, [5,800] for an ephemeral_ssd disk, [20,32768] for cloud_efficiency, cloud_ssd, cloud_essd disk.
- snapshot_
id str - Snapshot used for creating the data disk. If this parameter is specified, the size parameter is neglected, and the size of the created disk is the size of the snapshot.
- auto
Snapshot StringPolicy Id - The id of auto snapshot policy for data disk.
- category String
- Category of data disk. The parameter value options are
ephemeral_ssd
,cloud_efficiency
,cloud_ssd
,cloud_essd
andcloud
. - delete
With BooleanInstance - Whether to delete data disks attached on ecs when release ecs instance. Optional value:
true
orfalse
, default totrue
. - description String
- The description of data disk N. Valid values of N: 1 to 16. The description must be 2 to 256 characters in length and cannot start with http:// or https://.
- device String
- The mount point of data disk N. Valid values of N: 1 to 16. If this parameter is not specified, the system automatically allocates a mount point to created ECS instances. The name of the mount point ranges from /dev/xvdb to /dev/xvdz in alphabetical order.
- encrypted Boolean
- Specifies whether data disk N is to be encrypted. Valid values of N: 1 to 16. Valid values:
true
: encrypted,false
: not encrypted. Default value:false
. - kms
Key StringId - The CMK ID for data disk N. Valid values of N: 1 to 16.
- name String
- The name of data disk N. Valid values of N: 1 to 16. It must be 2 to 128 characters in length. It must start with a letter and cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), and hyphens (-). Default value: null.
- performance
Level String - The performance level of the ESSD used as data disk.
- size Number
- Size of data disk, in GB. The value ranges [5,2000] for a cloud disk, [5,1024] for an ephemeral disk, [5,800] for an ephemeral_ssd disk, [20,32768] for cloud_efficiency, cloud_ssd, cloud_essd disk.
- snapshot
Id String - Snapshot used for creating the data disk. If this parameter is specified, the size parameter is neglected, and the size of the created disk is the size of the snapshot.
ScalingConfigurationInstancePatternInfo, ScalingConfigurationInstancePatternInfoArgs
- Architectures List<string>
- Architecture N of instance type N. Valid values: X86, Heterogeneous, BareMetal, Arm, SuperComputeCluster.
- Burstable
Performance string - Specifies whether to include burstable instance types. Valid values: Exclude, Include, Required.
- Cores int
- The number of vCPUs that are specified for an instance type in instancePatternInfo.
- Excluded
Instance List<string>Types - Instance type N that you want to exclude. You can use wildcard characters, such as an asterisk (*), to exclude an instance type or an instance family.
- Instance
Family stringLevel - The instance family level in instancePatternInfo.
- Max
Price double - The maximum hourly price for a pay-as-you-go instance or a preemptible instance in instancePatternInfo.
- Memory double
- The memory size that is specified for an instance type in instancePatternInfo.
- Architectures []string
- Architecture N of instance type N. Valid values: X86, Heterogeneous, BareMetal, Arm, SuperComputeCluster.
- Burstable
Performance string - Specifies whether to include burstable instance types. Valid values: Exclude, Include, Required.
- Cores int
- The number of vCPUs that are specified for an instance type in instancePatternInfo.
- Excluded
Instance []stringTypes - Instance type N that you want to exclude. You can use wildcard characters, such as an asterisk (*), to exclude an instance type or an instance family.
- Instance
Family stringLevel - The instance family level in instancePatternInfo.
- Max
Price float64 - The maximum hourly price for a pay-as-you-go instance or a preemptible instance in instancePatternInfo.
- Memory float64
- The memory size that is specified for an instance type in instancePatternInfo.
- architectures List<String>
- Architecture N of instance type N. Valid values: X86, Heterogeneous, BareMetal, Arm, SuperComputeCluster.
- burstable
Performance String - Specifies whether to include burstable instance types. Valid values: Exclude, Include, Required.
- cores Integer
- The number of vCPUs that are specified for an instance type in instancePatternInfo.
- excluded
Instance List<String>Types - Instance type N that you want to exclude. You can use wildcard characters, such as an asterisk (*), to exclude an instance type or an instance family.
- instance
Family StringLevel - The instance family level in instancePatternInfo.
- max
Price Double - The maximum hourly price for a pay-as-you-go instance or a preemptible instance in instancePatternInfo.
- memory Double
- The memory size that is specified for an instance type in instancePatternInfo.
- architectures string[]
- Architecture N of instance type N. Valid values: X86, Heterogeneous, BareMetal, Arm, SuperComputeCluster.
- burstable
Performance string - Specifies whether to include burstable instance types. Valid values: Exclude, Include, Required.
- cores number
- The number of vCPUs that are specified for an instance type in instancePatternInfo.
- excluded
Instance string[]Types - Instance type N that you want to exclude. You can use wildcard characters, such as an asterisk (*), to exclude an instance type or an instance family.
- instance
Family stringLevel - The instance family level in instancePatternInfo.
- max
Price number - The maximum hourly price for a pay-as-you-go instance or a preemptible instance in instancePatternInfo.
- memory number
- The memory size that is specified for an instance type in instancePatternInfo.
- architectures Sequence[str]
- Architecture N of instance type N. Valid values: X86, Heterogeneous, BareMetal, Arm, SuperComputeCluster.
- burstable_
performance str - Specifies whether to include burstable instance types. Valid values: Exclude, Include, Required.
- cores int
- The number of vCPUs that are specified for an instance type in instancePatternInfo.
- excluded_
instance_ Sequence[str]types - Instance type N that you want to exclude. You can use wildcard characters, such as an asterisk (*), to exclude an instance type or an instance family.
- instance_
family_ strlevel - The instance family level in instancePatternInfo.
- max_
price float - The maximum hourly price for a pay-as-you-go instance or a preemptible instance in instancePatternInfo.
- memory float
- The memory size that is specified for an instance type in instancePatternInfo.
- architectures List<String>
- Architecture N of instance type N. Valid values: X86, Heterogeneous, BareMetal, Arm, SuperComputeCluster.
- burstable
Performance String - Specifies whether to include burstable instance types. Valid values: Exclude, Include, Required.
- cores Number
- The number of vCPUs that are specified for an instance type in instancePatternInfo.
- excluded
Instance List<String>Types - Instance type N that you want to exclude. You can use wildcard characters, such as an asterisk (*), to exclude an instance type or an instance family.
- instance
Family StringLevel - The instance family level in instancePatternInfo.
- max
Price Number - The maximum hourly price for a pay-as-you-go instance or a preemptible instance in instancePatternInfo.
- memory Number
- The memory size that is specified for an instance type in instancePatternInfo.
ScalingConfigurationInstanceTypeOverride, ScalingConfigurationInstanceTypeOverrideArgs
- Instance
Type string - The is specified for an instance type in instanceTypeOverride.
- Weighted
Capacity int - The weight of instance type in instanceTypeOverride.
- Instance
Type string - The is specified for an instance type in instanceTypeOverride.
- Weighted
Capacity int - The weight of instance type in instanceTypeOverride.
- instance
Type String - The is specified for an instance type in instanceTypeOverride.
- weighted
Capacity Integer - The weight of instance type in instanceTypeOverride.
- instance
Type string - The is specified for an instance type in instanceTypeOverride.
- weighted
Capacity number - The weight of instance type in instanceTypeOverride.
- instance_
type str - The is specified for an instance type in instanceTypeOverride.
- weighted_
capacity int - The weight of instance type in instanceTypeOverride.
- instance
Type String - The is specified for an instance type in instanceTypeOverride.
- weighted
Capacity Number - The weight of instance type in instanceTypeOverride.
ScalingConfigurationSpotPriceLimit, ScalingConfigurationSpotPriceLimitArgs
- Instance
Type string - Resource type of an ECS instance.
- Price
Limit double - Price limit hourly of instance type, 2 decimals is allowed at most.
- Instance
Type string - Resource type of an ECS instance.
- Price
Limit float64 - Price limit hourly of instance type, 2 decimals is allowed at most.
- instance
Type String - Resource type of an ECS instance.
- price
Limit Double - Price limit hourly of instance type, 2 decimals is allowed at most.
- instance
Type string - Resource type of an ECS instance.
- price
Limit number - Price limit hourly of instance type, 2 decimals is allowed at most.
- instance_
type str - Resource type of an ECS instance.
- price_
limit float - Price limit hourly of instance type, 2 decimals is allowed at most.
- instance
Type String - Resource type of an ECS instance.
- price
Limit Number - Price limit hourly of instance type, 2 decimals is allowed at most.
Import
ESS scaling configuration can be imported using the id, e.g.
$ pulumi import alicloud:ess/scalingConfiguration:ScalingConfiguration example asg-abc123456
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.