Alibaba Cloud v3.75.0 published on Friday, Mar 7, 2025 by Pulumi
alicloud.ess.getScalingConfigurations
Explore with Pulumi AI
This data source provides available scaling configuration resources.
NOTE: Available since v1.240.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", {
securityGroupName: 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,
scalingConfigurationName: "scaling_configuration_name",
});
const scalingconfigurationsDs = alicloud.ess.getScalingConfigurationsOutput({
scalingGroupId: defaultScalingGroup.id,
ids: [defaultScalingConfiguration.id],
nameRegex: "scaling_configuration_name",
});
export const firstScalingConfiguration = scalingconfigurationsDs.apply(scalingconfigurationsDs => scalingconfigurationsDs.configurations?.[0]?.id);
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",
security_group_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,
scaling_configuration_name="scaling_configuration_name")
scalingconfigurations_ds = alicloud.ess.get_scaling_configurations_output(scaling_group_id=default_scaling_group.id,
ids=[default_scaling_configuration.id],
name_regex="scaling_configuration_name")
pulumi.export("firstScalingConfiguration", scalingconfigurations_ds.configurations[0].id)
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{
SecurityGroupName: 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
}
defaultScalingConfiguration, 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),
ScalingConfigurationName: pulumi.String("scaling_configuration_name"),
})
if err != nil {
return err
}
scalingconfigurationsDs := ess.GetScalingConfigurationsOutput(ctx, ess.GetScalingConfigurationsOutputArgs{
ScalingGroupId: defaultScalingGroup.ID(),
Ids: pulumi.StringArray{
defaultScalingConfiguration.ID(),
},
NameRegex: pulumi.String("scaling_configuration_name"),
}, nil)
ctx.Export("firstScalingConfiguration", scalingconfigurationsDs.ApplyT(func(scalingconfigurationsDs ess.GetScalingConfigurationsResult) (*string, error) {
return &scalingconfigurationsDs.Configurations[0].Id, nil
}).(pulumi.StringPtrOutput))
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()
{
SecurityGroupName = 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,
ScalingConfigurationName = "scaling_configuration_name",
});
var scalingconfigurationsDs = AliCloud.Ess.GetScalingConfigurations.Invoke(new()
{
ScalingGroupId = defaultScalingGroup.Id,
Ids = new[]
{
defaultScalingConfiguration.Id,
},
NameRegex = "scaling_configuration_name",
});
return new Dictionary<string, object?>
{
["firstScalingConfiguration"] = scalingconfigurationsDs.Apply(getScalingConfigurationsResult => getScalingConfigurationsResult.Configurations[0]?.Id),
};
});
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 com.pulumi.alicloud.ess.EssFunctions;
import com.pulumi.alicloud.ess.inputs.GetScalingConfigurationsArgs;
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()
.securityGroupName(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)
.scalingConfigurationName("scaling_configuration_name")
.build());
final var scalingconfigurationsDs = EssFunctions.getScalingConfigurations(GetScalingConfigurationsArgs.builder()
.scalingGroupId(defaultScalingGroup.id())
.ids(defaultScalingConfiguration.id())
.nameRegex("scaling_configuration_name")
.build());
ctx.export("firstScalingConfiguration", scalingconfigurationsDs.applyValue(getScalingConfigurationsResult -> getScalingConfigurationsResult).applyValue(scalingconfigurationsDs -> scalingconfigurationsDs.applyValue(getScalingConfigurationsResult -> getScalingConfigurationsResult.configurations()[0].id())));
}
}
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:
securityGroupName: ${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
scalingConfigurationName: scaling_configuration_name
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
scalingconfigurationsDs:
fn::invoke:
function: alicloud:ess:getScalingConfigurations
arguments:
scalingGroupId: ${defaultScalingGroup.id}
ids:
- ${defaultScalingConfiguration.id}
nameRegex: scaling_configuration_name
outputs:
firstScalingConfiguration: ${scalingconfigurationsDs.configurations[0].id}
Using getScalingConfigurations
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getScalingConfigurations(args: GetScalingConfigurationsArgs, opts?: InvokeOptions): Promise<GetScalingConfigurationsResult>
function getScalingConfigurationsOutput(args: GetScalingConfigurationsOutputArgs, opts?: InvokeOptions): Output<GetScalingConfigurationsResult>
def get_scaling_configurations(ids: Optional[Sequence[str]] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
scaling_group_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetScalingConfigurationsResult
def get_scaling_configurations_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
scaling_group_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetScalingConfigurationsResult]
func GetScalingConfigurations(ctx *Context, args *GetScalingConfigurationsArgs, opts ...InvokeOption) (*GetScalingConfigurationsResult, error)
func GetScalingConfigurationsOutput(ctx *Context, args *GetScalingConfigurationsOutputArgs, opts ...InvokeOption) GetScalingConfigurationsResultOutput
> Note: This function is named GetScalingConfigurations
in the Go SDK.
public static class GetScalingConfigurations
{
public static Task<GetScalingConfigurationsResult> InvokeAsync(GetScalingConfigurationsArgs args, InvokeOptions? opts = null)
public static Output<GetScalingConfigurationsResult> Invoke(GetScalingConfigurationsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetScalingConfigurationsResult> getScalingConfigurations(GetScalingConfigurationsArgs args, InvokeOptions options)
public static Output<GetScalingConfigurationsResult> getScalingConfigurations(GetScalingConfigurationsArgs args, InvokeOptions options)
fn::invoke:
function: alicloud:ess/getScalingConfigurations:getScalingConfigurations
arguments:
# arguments dictionary
The following arguments are supported:
- Ids List<string>
- A list of scaling configuration IDs.
- Name
Regex string - A regex string to filter resulting scaling configurations by name.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Scaling
Group stringId - Scaling group id the scaling configurations belong to.
- Ids []string
- A list of scaling configuration IDs.
- Name
Regex string - A regex string to filter resulting scaling configurations by name.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Scaling
Group stringId - Scaling group id the scaling configurations belong to.
- ids List<String>
- A list of scaling configuration IDs.
- name
Regex String - A regex string to filter resulting scaling configurations by name.
- output
File String - File name where to save data source results (after running
pulumi preview
). - scaling
Group StringId - Scaling group id the scaling configurations belong to.
- ids string[]
- A list of scaling configuration IDs.
- name
Regex string - A regex string to filter resulting scaling configurations by name.
- output
File string - File name where to save data source results (after running
pulumi preview
). - scaling
Group stringId - Scaling group id the scaling configurations belong to.
- ids Sequence[str]
- A list of scaling configuration IDs.
- name_
regex str - A regex string to filter resulting scaling configurations by name.
- output_
file str - File name where to save data source results (after running
pulumi preview
). - scaling_
group_ strid - Scaling group id the scaling configurations belong to.
- ids List<String>
- A list of scaling configuration IDs.
- name
Regex String - A regex string to filter resulting scaling configurations by name.
- output
File String - File name where to save data source results (after running
pulumi preview
). - scaling
Group StringId - Scaling group id the scaling configurations belong to.
getScalingConfigurations Result
The following output properties are available:
- Configurations
List<Pulumi.
Ali Cloud. Ess. Outputs. Get Scaling Configurations Configuration> - A list of scaling rules. Each element contains the following attributes:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- A list of scaling configuration ids.
- Names List<string>
- A list of scaling configuration names.
- Name
Regex string - Output
File string - Scaling
Group stringId - ID of the scaling group.
- Configurations
[]Get
Scaling Configurations Configuration - A list of scaling rules. Each element contains the following attributes:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- A list of scaling configuration ids.
- Names []string
- A list of scaling configuration names.
- Name
Regex string - Output
File string - Scaling
Group stringId - ID of the scaling group.
- configurations
List<Get
Scaling Configurations Configuration> - A list of scaling rules. Each element contains the following attributes:
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- A list of scaling configuration ids.
- names List<String>
- A list of scaling configuration names.
- name
Regex String - output
File String - scaling
Group StringId - ID of the scaling group.
- configurations
Get
Scaling Configurations Configuration[] - A list of scaling rules. Each element contains the following attributes:
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- A list of scaling configuration ids.
- names string[]
- A list of scaling configuration names.
- name
Regex string - output
File string - scaling
Group stringId - ID of the scaling group.
- configurations
Sequence[Get
Scaling Configurations Configuration] - A list of scaling rules. Each element contains the following attributes:
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- A list of scaling configuration ids.
- names Sequence[str]
- A list of scaling configuration names.
- name_
regex str - output_
file str - scaling_
group_ strid - ID of the scaling group.
- configurations List<Property Map>
- A list of scaling rules. Each element contains the following attributes:
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- A list of scaling configuration ids.
- names List<String>
- A list of scaling configuration names.
- name
Regex String - output
File String - scaling
Group StringId - ID of the scaling group.
Supporting Types
GetScalingConfigurationsConfiguration
- Creation
Time string - Creation time of the scaling configuration.
- Credit
Specification string - Performance mode of the t5 burstable instance.
- Data
Disks List<Pulumi.Ali Cloud. Ess. Inputs. Get Scaling Configurations Configuration Data Disk> - Data disks of the scaling configuration.
- Host
Name string - (Optional,Available since v1.143.0) Hostname of an ECS instance.
- Id string
- ID of the scaling rule.
- Image
Id string - Image ID of the scaling configuration.
- Instance
Name string - (Optional,Available since v1.143.0) InstanceName of an ECS instance.
- Instance
Pattern List<Pulumi.Infos Ali Cloud. Ess. Inputs. Get Scaling Configurations Configuration Instance Pattern Info> - (Optional, Available since v1.240.0) 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.
- Instance
Type string - Resource type of an ECS instance.
- Internet
Charge stringType - Internet charge type of the scaling configuration.
- Internet
Max intBandwidth In - Internet max bandwidth in of the scaling configuration.
- Internet
Max intBandwidth Out - Internet max bandwidth of the scaling configuration.
- Lifecycle
State string - Lifecycle state of the scaling configuration.
- Name string
- Name of the scaling configuration.
- Scaling
Group stringId - Scaling group id the scaling configurations belong to.
- Security
Group stringId - Security group ID of the scaling configuration.
- Spot
Price List<Pulumi.Limits Ali Cloud. Ess. Inputs. Get Scaling Configurations Configuration Spot Price Limit> - (Optional, Available since v1.151.0) The maximum price hourly for instance types.
- Spot
Strategy string - (Optional, Available since v1.151.0) The spot strategy for a Pay-As-You-Go instance.
- System
Disk stringCategory - System disk category of the scaling configuration.
- System
Disk stringPerformance Level - The performance level of the ESSD used as the system disk.
- System
Disk intSize - System disk size of the scaling configuration.
- Creation
Time string - Creation time of the scaling configuration.
- Credit
Specification string - Performance mode of the t5 burstable instance.
- Data
Disks []GetScaling Configurations Configuration Data Disk - Data disks of the scaling configuration.
- Host
Name string - (Optional,Available since v1.143.0) Hostname of an ECS instance.
- Id string
- ID of the scaling rule.
- Image
Id string - Image ID of the scaling configuration.
- Instance
Name string - (Optional,Available since v1.143.0) InstanceName of an ECS instance.
- Instance
Pattern []GetInfos Scaling Configurations Configuration Instance Pattern Info - (Optional, Available since v1.240.0) 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.
- Instance
Type string - Resource type of an ECS instance.
- Internet
Charge stringType - Internet charge type of the scaling configuration.
- Internet
Max intBandwidth In - Internet max bandwidth in of the scaling configuration.
- Internet
Max intBandwidth Out - Internet max bandwidth of the scaling configuration.
- Lifecycle
State string - Lifecycle state of the scaling configuration.
- Name string
- Name of the scaling configuration.
- Scaling
Group stringId - Scaling group id the scaling configurations belong to.
- Security
Group stringId - Security group ID of the scaling configuration.
- Spot
Price []GetLimits Scaling Configurations Configuration Spot Price Limit - (Optional, Available since v1.151.0) The maximum price hourly for instance types.
- Spot
Strategy string - (Optional, Available since v1.151.0) The spot strategy for a Pay-As-You-Go instance.
- System
Disk stringCategory - System disk category of the scaling configuration.
- System
Disk stringPerformance Level - The performance level of the ESSD used as the system disk.
- System
Disk intSize - System disk size of the scaling configuration.
- creation
Time String - Creation time of the scaling configuration.
- credit
Specification String - Performance mode of the t5 burstable instance.
- data
Disks List<GetScaling Configurations Configuration Data Disk> - Data disks of the scaling configuration.
- host
Name String - (Optional,Available since v1.143.0) Hostname of an ECS instance.
- id String
- ID of the scaling rule.
- image
Id String - Image ID of the scaling configuration.
- instance
Name String - (Optional,Available since v1.143.0) InstanceName of an ECS instance.
- instance
Pattern List<GetInfos Scaling Configurations Configuration Instance Pattern Info> - (Optional, Available since v1.240.0) 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.
- instance
Type String - Resource type of an ECS instance.
- internet
Charge StringType - Internet charge type of the scaling configuration.
- internet
Max IntegerBandwidth In - Internet max bandwidth in of the scaling configuration.
- internet
Max IntegerBandwidth Out - Internet max bandwidth of the scaling configuration.
- lifecycle
State String - Lifecycle state of the scaling configuration.
- name String
- Name of the scaling configuration.
- scaling
Group StringId - Scaling group id the scaling configurations belong to.
- security
Group StringId - Security group ID of the scaling configuration.
- spot
Price List<GetLimits Scaling Configurations Configuration Spot Price Limit> - (Optional, Available since v1.151.0) The maximum price hourly for instance types.
- spot
Strategy String - (Optional, Available since v1.151.0) The spot strategy for a Pay-As-You-Go instance.
- system
Disk StringCategory - System disk category of the scaling configuration.
- system
Disk StringPerformance Level - The performance level of the ESSD used as the system disk.
- system
Disk IntegerSize - System disk size of the scaling configuration.
- creation
Time string - Creation time of the scaling configuration.
- credit
Specification string - Performance mode of the t5 burstable instance.
- data
Disks GetScaling Configurations Configuration Data Disk[] - Data disks of the scaling configuration.
- host
Name string - (Optional,Available since v1.143.0) Hostname of an ECS instance.
- id string
- ID of the scaling rule.
- image
Id string - Image ID of the scaling configuration.
- instance
Name string - (Optional,Available since v1.143.0) InstanceName of an ECS instance.
- instance
Pattern GetInfos Scaling Configurations Configuration Instance Pattern Info[] - (Optional, Available since v1.240.0) 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.
- instance
Type string - Resource type of an ECS instance.
- internet
Charge stringType - Internet charge type of the scaling configuration.
- internet
Max numberBandwidth In - Internet max bandwidth in of the scaling configuration.
- internet
Max numberBandwidth Out - Internet max bandwidth of the scaling configuration.
- lifecycle
State string - Lifecycle state of the scaling configuration.
- name string
- Name of the scaling configuration.
- scaling
Group stringId - Scaling group id the scaling configurations belong to.
- security
Group stringId - Security group ID of the scaling configuration.
- spot
Price GetLimits Scaling Configurations Configuration Spot Price Limit[] - (Optional, Available since v1.151.0) The maximum price hourly for instance types.
- spot
Strategy string - (Optional, Available since v1.151.0) The spot strategy for a Pay-As-You-Go instance.
- system
Disk stringCategory - System disk category of the scaling configuration.
- system
Disk stringPerformance Level - The performance level of the ESSD used as the system disk.
- system
Disk numberSize - System disk size of the scaling configuration.
- creation_
time str - Creation time of the scaling configuration.
- credit_
specification str - Performance mode of the t5 burstable instance.
- data_
disks Sequence[GetScaling Configurations Configuration Data Disk] - Data disks of the scaling configuration.
- host_
name str - (Optional,Available since v1.143.0) Hostname of an ECS instance.
- id str
- ID of the scaling rule.
- image_
id str - Image ID of the scaling configuration.
- instance_
name str - (Optional,Available since v1.143.0) InstanceName of an ECS instance.
- instance_
pattern_ Sequence[Getinfos Scaling Configurations Configuration Instance Pattern Info] - (Optional, Available since v1.240.0) 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.
- instance_
type str - Resource type of an ECS instance.
- internet_
charge_ strtype - Internet charge type of the scaling configuration.
- internet_
max_ intbandwidth_ in - Internet max bandwidth in of the scaling configuration.
- internet_
max_ intbandwidth_ out - Internet max bandwidth of the scaling configuration.
- lifecycle_
state str - Lifecycle state of the scaling configuration.
- name str
- Name of the scaling configuration.
- scaling_
group_ strid - Scaling group id the scaling configurations belong to.
- security_
group_ strid - Security group ID of the scaling configuration.
- spot_
price_ Sequence[Getlimits Scaling Configurations Configuration Spot Price Limit] - (Optional, Available since v1.151.0) The maximum price hourly for instance types.
- spot_
strategy str - (Optional, Available since v1.151.0) The spot strategy for a Pay-As-You-Go instance.
- system_
disk_ strcategory - System disk category of the scaling configuration.
- system_
disk_ strperformance_ level - The performance level of the ESSD used as the system disk.
- system_
disk_ intsize - System disk size of the scaling configuration.
- creation
Time String - Creation time of the scaling configuration.
- credit
Specification String - Performance mode of the t5 burstable instance.
- data
Disks List<Property Map> - Data disks of the scaling configuration.
- host
Name String - (Optional,Available since v1.143.0) Hostname of an ECS instance.
- id String
- ID of the scaling rule.
- image
Id String - Image ID of the scaling configuration.
- instance
Name String - (Optional,Available since v1.143.0) InstanceName of an ECS instance.
- instance
Pattern List<Property Map>Infos - (Optional, Available since v1.240.0) 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.
- instance
Type String - Resource type of an ECS instance.
- internet
Charge StringType - Internet charge type of the scaling configuration.
- internet
Max NumberBandwidth In - Internet max bandwidth in of the scaling configuration.
- internet
Max NumberBandwidth Out - Internet max bandwidth of the scaling configuration.
- lifecycle
State String - Lifecycle state of the scaling configuration.
- name String
- Name of the scaling configuration.
- scaling
Group StringId - Scaling group id the scaling configurations belong to.
- security
Group StringId - Security group ID of the scaling configuration.
- spot
Price List<Property Map>Limits - (Optional, Available since v1.151.0) The maximum price hourly for instance types.
- spot
Strategy String - (Optional, Available since v1.151.0) The spot strategy for a Pay-As-You-Go instance.
- system
Disk StringCategory - System disk category of the scaling configuration.
- system
Disk StringPerformance Level - The performance level of the ESSD used as the system disk.
- system
Disk NumberSize - System disk size of the scaling configuration.
GetScalingConfigurationsConfigurationDataDisk
- Category string
- Category of data disk.
- Delete
With boolInstance - Delete_with_instance attribute of data disk.
- Device string
- Device attribute of data disk.
- Performance
Level string - The performance level of the ESSD used as data disk.
- Size int
- Size of data disk.
- Snapshot
Id string - Size of data disk.
- Category string
- Category of data disk.
- Delete
With boolInstance - Delete_with_instance attribute of data disk.
- Device string
- Device attribute of data disk.
- Performance
Level string - The performance level of the ESSD used as data disk.
- Size int
- Size of data disk.
- Snapshot
Id string - Size of data disk.
- category String
- Category of data disk.
- delete
With BooleanInstance - Delete_with_instance attribute of data disk.
- device String
- Device attribute of data disk.
- performance
Level String - The performance level of the ESSD used as data disk.
- size Integer
- Size of data disk.
- snapshot
Id String - Size of data disk.
- category string
- Category of data disk.
- delete
With booleanInstance - Delete_with_instance attribute of data disk.
- device string
- Device attribute of data disk.
- performance
Level string - The performance level of the ESSD used as data disk.
- size number
- Size of data disk.
- snapshot
Id string - Size of data disk.
- category str
- Category of data disk.
- delete_
with_ boolinstance - Delete_with_instance attribute of data disk.
- device str
- Device attribute of data disk.
- performance_
level str - The performance level of the ESSD used as data disk.
- size int
- Size of data disk.
- snapshot_
id str - Size of data disk.
- category String
- Category of data disk.
- delete
With BooleanInstance - Delete_with_instance attribute of data disk.
- device String
- Device attribute of data disk.
- performance
Level String - The performance level of the ESSD used as data disk.
- size Number
- Size of data disk.
- snapshot
Id String - Size of data disk.
GetScalingConfigurationsConfigurationInstancePatternInfo
- 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.
GetScalingConfigurationsConfigurationSpotPriceLimit
- Instance
Type string - Resource type of an ECS instance.
- Price
Limit double - Price limit hourly of instance type.
- Instance
Type string - Resource type of an ECS instance.
- Price
Limit float64 - Price limit hourly of instance type.
- instance
Type String - Resource type of an ECS instance.
- price
Limit Double - Price limit hourly of instance type.
- instance
Type string - Resource type of an ECS instance.
- price
Limit number - Price limit hourly of instance type.
- instance_
type str - Resource type of an ECS instance.
- price_
limit float - Price limit hourly of instance type.
- instance
Type String - Resource type of an ECS instance.
- price
Limit Number - Price limit hourly of instance type.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.