Alibaba Cloud

v3.28.0 published on Tuesday, Aug 16, 2022 by Pulumi

EciScalingConfiguration

Provides a ESS eci scaling configuration resource.

NOTE: Resource alicloud.ess.AlbServerGroupAttachment is available in 1.164.0+.

Example Usage

Basic Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var config = new Config();
        var name = config.Get("name") ?? "essscalingconfiguration";
        var defaultNetwork = new AliCloud.Vpc.Network("defaultNetwork", new AliCloud.Vpc.NetworkArgs
        {
            CidrBlock = "172.16.0.0/16",
        });
        var defaultSwitch = new AliCloud.Vpc.Switch("defaultSwitch", new AliCloud.Vpc.SwitchArgs
        {
            VpcId = defaultNetwork.Id,
            CidrBlock = "172.16.0.0/24",
            ZoneId = data.Alicloud_zones.Default.Zones[0].Id,
            VswitchName = name,
        });
        var defaultSecurityGroup = new AliCloud.Ecs.SecurityGroup("defaultSecurityGroup", new AliCloud.Ecs.SecurityGroupArgs
        {
            VpcId = defaultNetwork.Id,
        });
        var defaultScalingGroup = new AliCloud.Ess.ScalingGroup("defaultScalingGroup", new AliCloud.Ess.ScalingGroupArgs
        {
            MinSize = 0,
            MaxSize = 1,
            ScalingGroupName = name,
            RemovalPolicies = 
            {
                "OldestInstance",
                "NewestInstance",
            },
            VswitchIds = 
            {
                defaultSwitch.Id,
            },
            GroupType = "ECI",
        });
        var defaultEciScalingConfiguration = new AliCloud.Ess.EciScalingConfiguration("defaultEciScalingConfiguration", new AliCloud.Ess.EciScalingConfigurationArgs
        {
            ScalingGroupId = defaultScalingGroup.Id,
            Cpu = 2,
            Memory = 4,
            SecurityGroupId = defaultSecurityGroup.Id,
            ForceDelete = true,
            Active = true,
            ContainerGroupName = "container-group-1649839595174",
            Containers = 
            {
                new AliCloud.Ess.Inputs.EciScalingConfigurationContainerArgs
                {
                    Name = "container-1",
                    Image = "registry-vpc.cn-hangzhou.aliyuncs.com/eci_open/alpine:3.5",
                },
            },
        });
    }

}
package main

import (
	"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/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 := "essscalingconfiguration"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		defaultNetwork, err := vpc.NewNetwork(ctx, "defaultNetwork", &vpc.NetworkArgs{
			CidrBlock: pulumi.String("172.16.0.0/16"),
		})
		if err != nil {
			return err
		}
		defaultSwitch, err := vpc.NewSwitch(ctx, "defaultSwitch", &vpc.SwitchArgs{
			VpcId:       defaultNetwork.ID(),
			CidrBlock:   pulumi.String("172.16.0.0/24"),
			ZoneId:      pulumi.Any(data.Alicloud_zones.Default.Zones[0].Id),
			VswitchName: pulumi.String(name),
		})
		if err != nil {
			return err
		}
		defaultSecurityGroup, err := ecs.NewSecurityGroup(ctx, "defaultSecurityGroup", &ecs.SecurityGroupArgs{
			VpcId: defaultNetwork.ID(),
		})
		if err != nil {
			return err
		}
		defaultScalingGroup, err := ess.NewScalingGroup(ctx, "defaultScalingGroup", &ess.ScalingGroupArgs{
			MinSize:          pulumi.Int(0),
			MaxSize:          pulumi.Int(1),
			ScalingGroupName: pulumi.String(name),
			RemovalPolicies: pulumi.StringArray{
				pulumi.String("OldestInstance"),
				pulumi.String("NewestInstance"),
			},
			VswitchIds: pulumi.StringArray{
				defaultSwitch.ID(),
			},
			GroupType: pulumi.String("ECI"),
		})
		if err != nil {
			return err
		}
		_, err = ess.NewEciScalingConfiguration(ctx, "defaultEciScalingConfiguration", &ess.EciScalingConfigurationArgs{
			ScalingGroupId:     defaultScalingGroup.ID(),
			Cpu:                pulumi.Float64(2),
			Memory:             pulumi.Float64(4),
			SecurityGroupId:    defaultSecurityGroup.ID(),
			ForceDelete:        pulumi.Bool(true),
			Active:             pulumi.Bool(true),
			ContainerGroupName: pulumi.String("container-group-1649839595174"),
			Containers: ess.EciScalingConfigurationContainerArray{
				&ess.EciScalingConfigurationContainerArgs{
					Name:  pulumi.String("container-1"),
					Image: pulumi.String("registry-vpc.cn-hangzhou.aliyuncs.com/eci_open/alpine:3.5"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.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.ess.ScalingGroup;
import com.pulumi.alicloud.ess.ScalingGroupArgs;
import com.pulumi.alicloud.ess.EciScalingConfiguration;
import com.pulumi.alicloud.ess.EciScalingConfigurationArgs;
import com.pulumi.alicloud.ess.inputs.EciScalingConfigurationContainerArgs;
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("essscalingconfiguration");
        var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()        
            .cidrBlock("172.16.0.0/16")
            .build());

        var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()        
            .vpcId(defaultNetwork.id())
            .cidrBlock("172.16.0.0/24")
            .zoneId(data.alicloud_zones().default().zones()[0].id())
            .vswitchName(name)
            .build());

        var defaultSecurityGroup = new SecurityGroup("defaultSecurityGroup", SecurityGroupArgs.builder()        
            .vpcId(defaultNetwork.id())
            .build());

        var defaultScalingGroup = new ScalingGroup("defaultScalingGroup", ScalingGroupArgs.builder()        
            .minSize(0)
            .maxSize(1)
            .scalingGroupName(name)
            .removalPolicies(            
                "OldestInstance",
                "NewestInstance")
            .vswitchIds(defaultSwitch.id())
            .groupType("ECI")
            .build());

        var defaultEciScalingConfiguration = new EciScalingConfiguration("defaultEciScalingConfiguration", EciScalingConfigurationArgs.builder()        
            .scalingGroupId(defaultScalingGroup.id())
            .cpu(2)
            .memory(4)
            .securityGroupId(defaultSecurityGroup.id())
            .forceDelete(true)
            .active(true)
            .containerGroupName("container-group-1649839595174")
            .containers(EciScalingConfigurationContainerArgs.builder()
                .name("container-1")
                .image("registry-vpc.cn-hangzhou.aliyuncs.com/eci_open/alpine:3.5")
                .build())
            .build());

    }
}
import pulumi
import pulumi_alicloud as alicloud

config = pulumi.Config()
name = config.get("name")
if name is None:
    name = "essscalingconfiguration"
default_network = alicloud.vpc.Network("defaultNetwork", cidr_block="172.16.0.0/16")
default_switch = alicloud.vpc.Switch("defaultSwitch",
    vpc_id=default_network.id,
    cidr_block="172.16.0.0/24",
    zone_id=data["alicloud_zones"]["default"]["zones"][0]["id"],
    vswitch_name=name)
default_security_group = alicloud.ecs.SecurityGroup("defaultSecurityGroup", vpc_id=default_network.id)
default_scaling_group = alicloud.ess.ScalingGroup("defaultScalingGroup",
    min_size=0,
    max_size=1,
    scaling_group_name=name,
    removal_policies=[
        "OldestInstance",
        "NewestInstance",
    ],
    vswitch_ids=[default_switch.id],
    group_type="ECI")
default_eci_scaling_configuration = alicloud.ess.EciScalingConfiguration("defaultEciScalingConfiguration",
    scaling_group_id=default_scaling_group.id,
    cpu=2,
    memory=4,
    security_group_id=default_security_group.id,
    force_delete=True,
    active=True,
    container_group_name="container-group-1649839595174",
    containers=[alicloud.ess.EciScalingConfigurationContainerArgs(
        name="container-1",
        image="registry-vpc.cn-hangzhou.aliyuncs.com/eci_open/alpine:3.5",
    )])
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const config = new pulumi.Config();
const name = config.get("name") || "essscalingconfiguration";
const defaultNetwork = new alicloud.vpc.Network("defaultNetwork", {cidrBlock: "172.16.0.0/16"});
const defaultSwitch = new alicloud.vpc.Switch("defaultSwitch", {
    vpcId: defaultNetwork.id,
    cidrBlock: "172.16.0.0/24",
    zoneId: data.alicloud_zones["default"].zones[0].id,
    vswitchName: name,
});
const defaultSecurityGroup = new alicloud.ecs.SecurityGroup("defaultSecurityGroup", {vpcId: defaultNetwork.id});
const defaultScalingGroup = new alicloud.ess.ScalingGroup("defaultScalingGroup", {
    minSize: 0,
    maxSize: 1,
    scalingGroupName: name,
    removalPolicies: [
        "OldestInstance",
        "NewestInstance",
    ],
    vswitchIds: [defaultSwitch.id],
    groupType: "ECI",
});
const defaultEciScalingConfiguration = new alicloud.ess.EciScalingConfiguration("defaultEciScalingConfiguration", {
    scalingGroupId: defaultScalingGroup.id,
    cpu: 2,
    memory: 4,
    securityGroupId: defaultSecurityGroup.id,
    forceDelete: true,
    active: true,
    containerGroupName: "container-group-1649839595174",
    containers: [{
        name: "container-1",
        image: "registry-vpc.cn-hangzhou.aliyuncs.com/eci_open/alpine:3.5",
    }],
});
configuration:
  name:
    type: string
    default: essscalingconfiguration
resources:
  defaultNetwork:
    type: alicloud:vpc:Network
    properties:
      cidrBlock: 172.16.0.0/16
  defaultSwitch:
    type: alicloud:vpc:Switch
    properties:
      vpcId: ${defaultNetwork.id}
      cidrBlock: 172.16.0.0/24
      zoneId: ${data.alicloud_zones.default.zones[0].id}
      vswitchName: ${name}
  defaultSecurityGroup:
    type: alicloud:ecs:SecurityGroup
    properties:
      vpcId: ${defaultNetwork.id}
  defaultScalingGroup:
    type: alicloud:ess:ScalingGroup
    properties:
      minSize: 0
      maxSize: 1
      scalingGroupName: ${name}
      removalPolicies:
        - OldestInstance
        - NewestInstance
      vswitchIds:
        - ${defaultSwitch.id}
      groupType: ECI
  defaultEciScalingConfiguration:
    type: alicloud:ess:EciScalingConfiguration
    properties:
      scalingGroupId: ${defaultScalingGroup.id}
      cpu: 2
      memory: 4
      securityGroupId: ${defaultSecurityGroup.id}
      forceDelete: true
      active: true
      containerGroupName: container-group-1649839595174
      containers:
        - name: container-1
          image: registry-vpc.cn-hangzhou.aliyuncs.com/eci_open/alpine:3.5

Create EciScalingConfiguration Resource

new EciScalingConfiguration(name: string, args: EciScalingConfigurationArgs, opts?: CustomResourceOptions);
@overload
def EciScalingConfiguration(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            active: Optional[bool] = None,
                            auto_create_eip: Optional[bool] = None,
                            container_group_name: Optional[str] = None,
                            containers: Optional[Sequence[EciScalingConfigurationContainerArgs]] = None,
                            cpu: Optional[float] = None,
                            description: Optional[str] = None,
                            dns_policy: Optional[str] = None,
                            egress_bandwidth: Optional[int] = None,
                            eip_bandwidth: Optional[int] = None,
                            enable_sls: Optional[bool] = None,
                            force_delete: Optional[bool] = None,
                            host_aliases: Optional[Sequence[EciScalingConfigurationHostAliasArgs]] = None,
                            host_name: Optional[str] = None,
                            image_registry_credentials: Optional[Sequence[EciScalingConfigurationImageRegistryCredentialArgs]] = None,
                            ingress_bandwidth: Optional[int] = None,
                            init_containers: Optional[Sequence[EciScalingConfigurationInitContainerArgs]] = None,
                            memory: Optional[float] = None,
                            ram_role_name: Optional[str] = None,
                            resource_group_id: Optional[str] = None,
                            restart_policy: Optional[str] = None,
                            scaling_configuration_name: Optional[str] = None,
                            scaling_group_id: Optional[str] = None,
                            security_group_id: Optional[str] = None,
                            spot_price_limit: Optional[float] = None,
                            spot_strategy: Optional[str] = None,
                            tags: Optional[Mapping[str, Any]] = None,
                            volumes: Optional[Sequence[EciScalingConfigurationVolumeArgs]] = None)
@overload
def EciScalingConfiguration(resource_name: str,
                            args: EciScalingConfigurationArgs,
                            opts: Optional[ResourceOptions] = None)
func NewEciScalingConfiguration(ctx *Context, name string, args EciScalingConfigurationArgs, opts ...ResourceOption) (*EciScalingConfiguration, error)
public EciScalingConfiguration(string name, EciScalingConfigurationArgs args, CustomResourceOptions? opts = null)
public EciScalingConfiguration(String name, EciScalingConfigurationArgs args)
public EciScalingConfiguration(String name, EciScalingConfigurationArgs args, CustomResourceOptions options)
type: alicloud:ess:EciScalingConfiguration
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args EciScalingConfigurationArgs
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 EciScalingConfigurationArgs
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 EciScalingConfigurationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args EciScalingConfigurationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args EciScalingConfigurationArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

EciScalingConfiguration 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 EciScalingConfiguration resource accepts the following input properties:

ScalingGroupId string

ID of the scaling group of a eci scaling configuration.

Active bool

Whether active current eci scaling configuration in the specified scaling group. Note that only one configuration can be active. Default to false.

AutoCreateEip bool

Whether create eip automatically.

ContainerGroupName string

The name of the container group.

Containers List<Pulumi.AliCloud.Ess.Inputs.EciScalingConfigurationContainerArgs>

The list of containers.See Block container below for details.

Cpu double

The amount of CPU resources allocated to the container.

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://.

DnsPolicy string

dns policy of contain group.

EgressBandwidth int

egress bandwidth.

EipBandwidth int

Eip bandwidth.

EnableSls bool

Enable sls log service.

ForceDelete bool

The eci scaling configuration will be deleted forcibly with deleting its scaling group. Default to false.

HostAliases List<Pulumi.AliCloud.Ess.Inputs.EciScalingConfigurationHostAliasArgs>

HostAliases.See Block host_alias below for details.

HostName string

Hostname of an ECI instance.

ImageRegistryCredentials List<Pulumi.AliCloud.Ess.Inputs.EciScalingConfigurationImageRegistryCredentialArgs>

The image registry credential. The details see Block image_registry_credential.See Block image_registry_credential below for details.

IngressBandwidth int

Ingress bandwidth.

InitContainers List<Pulumi.AliCloud.Ess.Inputs.EciScalingConfigurationInitContainerArgs>

The list of initContainers.See Block init_container below for details.

Memory double

The amount of memory resources allocated to the container.

RamRoleName string

The RAM role that the container group assumes. ECI and ECS share the same RAM role.

ResourceGroupId string

ID of resource group.

RestartPolicy string

The restart policy of the container group. Default to Always.

ScalingConfigurationName string

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 EciScalingConfigurationId.

SecurityGroupId string

ID of the security group used to create new instance. It is conflict with security_group_ids.

SpotPriceLimit double

The maximum price hourly for spot instance.

SpotStrategy string

The spot strategy for a Pay-As-You-Go instance. Valid values: NoSpot, SpotAsPriceGo , SpotWithPriceLimit.

Tags Dictionary<string, object>

A mapping of tags to assign to the resource. It will be applied for ECI 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.
Volumes List<Pulumi.AliCloud.Ess.Inputs.EciScalingConfigurationVolumeArgs>

The list of volumes.See Block volume below for details.

ScalingGroupId string

ID of the scaling group of a eci scaling configuration.

Active bool

Whether active current eci scaling configuration in the specified scaling group. Note that only one configuration can be active. Default to false.

AutoCreateEip bool

Whether create eip automatically.

ContainerGroupName string

The name of the container group.

Containers []EciScalingConfigurationContainerArgs

The list of containers.See Block container below for details.

Cpu float64

The amount of CPU resources allocated to the container.

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://.

DnsPolicy string

dns policy of contain group.

EgressBandwidth int

egress bandwidth.

EipBandwidth int

Eip bandwidth.

EnableSls bool

Enable sls log service.

ForceDelete bool

The eci scaling configuration will be deleted forcibly with deleting its scaling group. Default to false.

HostAliases []EciScalingConfigurationHostAliasArgs

HostAliases.See Block host_alias below for details.

HostName string

Hostname of an ECI instance.

ImageRegistryCredentials []EciScalingConfigurationImageRegistryCredentialArgs

The image registry credential. The details see Block image_registry_credential.See Block image_registry_credential below for details.

IngressBandwidth int

Ingress bandwidth.

InitContainers []EciScalingConfigurationInitContainerArgs

The list of initContainers.See Block init_container below for details.

Memory float64

The amount of memory resources allocated to the container.

RamRoleName string

The RAM role that the container group assumes. ECI and ECS share the same RAM role.

ResourceGroupId string

ID of resource group.

RestartPolicy string

The restart policy of the container group. Default to Always.

ScalingConfigurationName string

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 EciScalingConfigurationId.

SecurityGroupId string

ID of the security group used to create new instance. It is conflict with security_group_ids.

SpotPriceLimit float64

The maximum price hourly for spot instance.

SpotStrategy string

The spot strategy for a Pay-As-You-Go instance. Valid values: NoSpot, SpotAsPriceGo , SpotWithPriceLimit.

Tags map[string]interface{}

A mapping of tags to assign to the resource. It will be applied for ECI 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.
Volumes []EciScalingConfigurationVolumeArgs

The list of volumes.See Block volume below for details.

scalingGroupId String

ID of the scaling group of a eci scaling configuration.

active Boolean

Whether active current eci scaling configuration in the specified scaling group. Note that only one configuration can be active. Default to false.

autoCreateEip Boolean

Whether create eip automatically.

containerGroupName String

The name of the container group.

containers List<EciScalingConfigurationContainerArgs>

The list of containers.See Block container below for details.

cpu Double

The amount of CPU resources allocated to the container.

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://.

dnsPolicy String

dns policy of contain group.

egressBandwidth Integer

egress bandwidth.

eipBandwidth Integer

Eip bandwidth.

enableSls Boolean

Enable sls log service.

forceDelete Boolean

The eci scaling configuration will be deleted forcibly with deleting its scaling group. Default to false.

hostAliases List<EciScalingConfigurationHostAliasArgs>

HostAliases.See Block host_alias below for details.

hostName String

Hostname of an ECI instance.

imageRegistryCredentials List<EciScalingConfigurationImageRegistryCredentialArgs>

The image registry credential. The details see Block image_registry_credential.See Block image_registry_credential below for details.

ingressBandwidth Integer

Ingress bandwidth.

initContainers List<EciScalingConfigurationInitContainerArgs>

The list of initContainers.See Block init_container below for details.

memory Double

The amount of memory resources allocated to the container.

ramRoleName String

The RAM role that the container group assumes. ECI and ECS share the same RAM role.

resourceGroupId String

ID of resource group.

restartPolicy String

The restart policy of the container group. Default to Always.

scalingConfigurationName String

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 EciScalingConfigurationId.

securityGroupId String

ID of the security group used to create new instance. It is conflict with security_group_ids.

spotPriceLimit Double

The maximum price hourly for spot instance.

spotStrategy String

The spot strategy for a Pay-As-You-Go instance. Valid values: NoSpot, SpotAsPriceGo , SpotWithPriceLimit.

tags Map<String,Object>

A mapping of tags to assign to the resource. It will be applied for ECI 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.
volumes List<EciScalingConfigurationVolumeArgs>

The list of volumes.See Block volume below for details.

scalingGroupId string

ID of the scaling group of a eci scaling configuration.

active boolean

Whether active current eci scaling configuration in the specified scaling group. Note that only one configuration can be active. Default to false.

autoCreateEip boolean

Whether create eip automatically.

containerGroupName string

The name of the container group.

containers EciScalingConfigurationContainerArgs[]

The list of containers.See Block container below for details.

cpu number

The amount of CPU resources allocated to the container.

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://.

dnsPolicy string

dns policy of contain group.

egressBandwidth number

egress bandwidth.

eipBandwidth number

Eip bandwidth.

enableSls boolean

Enable sls log service.

forceDelete boolean

The eci scaling configuration will be deleted forcibly with deleting its scaling group. Default to false.

hostAliases EciScalingConfigurationHostAliasArgs[]

HostAliases.See Block host_alias below for details.

hostName string

Hostname of an ECI instance.

imageRegistryCredentials EciScalingConfigurationImageRegistryCredentialArgs[]

The image registry credential. The details see Block image_registry_credential.See Block image_registry_credential below for details.

ingressBandwidth number

Ingress bandwidth.

initContainers EciScalingConfigurationInitContainerArgs[]

The list of initContainers.See Block init_container below for details.

memory number

The amount of memory resources allocated to the container.

ramRoleName string

The RAM role that the container group assumes. ECI and ECS share the same RAM role.

resourceGroupId string

ID of resource group.

restartPolicy string

The restart policy of the container group. Default to Always.

scalingConfigurationName string

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 EciScalingConfigurationId.

securityGroupId string

ID of the security group used to create new instance. It is conflict with security_group_ids.

spotPriceLimit number

The maximum price hourly for spot instance.

spotStrategy string

The spot strategy for a Pay-As-You-Go instance. Valid values: NoSpot, SpotAsPriceGo , SpotWithPriceLimit.

tags {[key: string]: any}

A mapping of tags to assign to the resource. It will be applied for ECI 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.
volumes EciScalingConfigurationVolumeArgs[]

The list of volumes.See Block volume below for details.

scaling_group_id str

ID of the scaling group of a eci scaling configuration.

active bool

Whether active current eci scaling configuration in the specified scaling group. Note that only one configuration can be active. Default to false.

auto_create_eip bool

Whether create eip automatically.

container_group_name str

The name of the container group.

containers Sequence[EciScalingConfigurationContainerArgs]

The list of containers.See Block container below for details.

cpu float

The amount of CPU resources allocated to the container.

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://.

dns_policy str

dns policy of contain group.

egress_bandwidth int

egress bandwidth.

eip_bandwidth int

Eip bandwidth.

enable_sls bool

Enable sls log service.

force_delete bool

The eci scaling configuration will be deleted forcibly with deleting its scaling group. Default to false.

host_aliases Sequence[EciScalingConfigurationHostAliasArgs]

HostAliases.See Block host_alias below for details.

host_name str

Hostname of an ECI instance.

image_registry_credentials Sequence[EciScalingConfigurationImageRegistryCredentialArgs]

The image registry credential. The details see Block image_registry_credential.See Block image_registry_credential below for details.

ingress_bandwidth int

Ingress bandwidth.

init_containers Sequence[EciScalingConfigurationInitContainerArgs]

The list of initContainers.See Block init_container below for details.

memory float

The amount of memory resources allocated to the container.

ram_role_name str

The RAM role that the container group assumes. ECI and ECS share the same RAM role.

resource_group_id str

ID of resource group.

restart_policy str

The restart policy of the container group. Default to Always.

scaling_configuration_name str

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 EciScalingConfigurationId.

security_group_id str

ID of the security group used to create new instance. It is conflict with security_group_ids.

spot_price_limit float

The maximum price hourly for spot instance.

spot_strategy str

The spot strategy for a Pay-As-You-Go instance. Valid values: NoSpot, SpotAsPriceGo , SpotWithPriceLimit.

tags Mapping[str, Any]

A mapping of tags to assign to the resource. It will be applied for ECI 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.
volumes Sequence[EciScalingConfigurationVolumeArgs]

The list of volumes.See Block volume below for details.

scalingGroupId String

ID of the scaling group of a eci scaling configuration.

active Boolean

Whether active current eci scaling configuration in the specified scaling group. Note that only one configuration can be active. Default to false.

autoCreateEip Boolean

Whether create eip automatically.

containerGroupName String

The name of the container group.

containers List<Property Map>

The list of containers.See Block container below for details.

cpu Number

The amount of CPU resources allocated to the container.

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://.

dnsPolicy String

dns policy of contain group.

egressBandwidth Number

egress bandwidth.

eipBandwidth Number

Eip bandwidth.

enableSls Boolean

Enable sls log service.

forceDelete Boolean

The eci scaling configuration will be deleted forcibly with deleting its scaling group. Default to false.

hostAliases List<Property Map>

HostAliases.See Block host_alias below for details.

hostName String

Hostname of an ECI instance.

imageRegistryCredentials List<Property Map>

The image registry credential. The details see Block image_registry_credential.See Block image_registry_credential below for details.

ingressBandwidth Number

Ingress bandwidth.

initContainers List<Property Map>

The list of initContainers.See Block init_container below for details.

memory Number

The amount of memory resources allocated to the container.

ramRoleName String

The RAM role that the container group assumes. ECI and ECS share the same RAM role.

resourceGroupId String

ID of resource group.

restartPolicy String

The restart policy of the container group. Default to Always.

scalingConfigurationName String

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 EciScalingConfigurationId.

securityGroupId String

ID of the security group used to create new instance. It is conflict with security_group_ids.

spotPriceLimit Number

The maximum price hourly for spot instance.

spotStrategy String

The spot strategy for a Pay-As-You-Go instance. Valid values: NoSpot, SpotAsPriceGo , SpotWithPriceLimit.

tags Map<Any>

A mapping of tags to assign to the resource. It will be applied for ECI 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.
volumes List<Property Map>

The list of volumes.See Block volume below for details.

Outputs

All input properties are implicitly available as output properties. Additionally, the EciScalingConfiguration 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 EciScalingConfiguration Resource

Get an existing EciScalingConfiguration 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?: EciScalingConfigurationState, opts?: CustomResourceOptions): EciScalingConfiguration
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        active: Optional[bool] = None,
        auto_create_eip: Optional[bool] = None,
        container_group_name: Optional[str] = None,
        containers: Optional[Sequence[EciScalingConfigurationContainerArgs]] = None,
        cpu: Optional[float] = None,
        description: Optional[str] = None,
        dns_policy: Optional[str] = None,
        egress_bandwidth: Optional[int] = None,
        eip_bandwidth: Optional[int] = None,
        enable_sls: Optional[bool] = None,
        force_delete: Optional[bool] = None,
        host_aliases: Optional[Sequence[EciScalingConfigurationHostAliasArgs]] = None,
        host_name: Optional[str] = None,
        image_registry_credentials: Optional[Sequence[EciScalingConfigurationImageRegistryCredentialArgs]] = None,
        ingress_bandwidth: Optional[int] = None,
        init_containers: Optional[Sequence[EciScalingConfigurationInitContainerArgs]] = None,
        memory: Optional[float] = None,
        ram_role_name: Optional[str] = None,
        resource_group_id: Optional[str] = None,
        restart_policy: Optional[str] = None,
        scaling_configuration_name: Optional[str] = None,
        scaling_group_id: Optional[str] = None,
        security_group_id: Optional[str] = None,
        spot_price_limit: Optional[float] = None,
        spot_strategy: Optional[str] = None,
        tags: Optional[Mapping[str, Any]] = None,
        volumes: Optional[Sequence[EciScalingConfigurationVolumeArgs]] = None) -> EciScalingConfiguration
func GetEciScalingConfiguration(ctx *Context, name string, id IDInput, state *EciScalingConfigurationState, opts ...ResourceOption) (*EciScalingConfiguration, error)
public static EciScalingConfiguration Get(string name, Input<string> id, EciScalingConfigurationState? state, CustomResourceOptions? opts = null)
public static EciScalingConfiguration get(String name, Output<String> id, EciScalingConfigurationState 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.
The following state arguments are supported:
Active bool

Whether active current eci scaling configuration in the specified scaling group. Note that only one configuration can be active. Default to false.

AutoCreateEip bool

Whether create eip automatically.

ContainerGroupName string

The name of the container group.

Containers List<Pulumi.AliCloud.Ess.Inputs.EciScalingConfigurationContainerArgs>

The list of containers.See Block container below for details.

Cpu double

The amount of CPU resources allocated to the container.

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://.

DnsPolicy string

dns policy of contain group.

EgressBandwidth int

egress bandwidth.

EipBandwidth int

Eip bandwidth.

EnableSls bool

Enable sls log service.

ForceDelete bool

The eci scaling configuration will be deleted forcibly with deleting its scaling group. Default to false.

HostAliases List<Pulumi.AliCloud.Ess.Inputs.EciScalingConfigurationHostAliasArgs>

HostAliases.See Block host_alias below for details.

HostName string

Hostname of an ECI instance.

ImageRegistryCredentials List<Pulumi.AliCloud.Ess.Inputs.EciScalingConfigurationImageRegistryCredentialArgs>

The image registry credential. The details see Block image_registry_credential.See Block image_registry_credential below for details.

IngressBandwidth int

Ingress bandwidth.

InitContainers List<Pulumi.AliCloud.Ess.Inputs.EciScalingConfigurationInitContainerArgs>

The list of initContainers.See Block init_container below for details.

Memory double

The amount of memory resources allocated to the container.

RamRoleName string

The RAM role that the container group assumes. ECI and ECS share the same RAM role.

ResourceGroupId string

ID of resource group.

RestartPolicy string

The restart policy of the container group. Default to Always.

ScalingConfigurationName string

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 EciScalingConfigurationId.

ScalingGroupId string

ID of the scaling group of a eci scaling configuration.

SecurityGroupId string

ID of the security group used to create new instance. It is conflict with security_group_ids.

SpotPriceLimit double

The maximum price hourly for spot instance.

SpotStrategy string

The spot strategy for a Pay-As-You-Go instance. Valid values: NoSpot, SpotAsPriceGo , SpotWithPriceLimit.

Tags Dictionary<string, object>

A mapping of tags to assign to the resource. It will be applied for ECI 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.
Volumes List<Pulumi.AliCloud.Ess.Inputs.EciScalingConfigurationVolumeArgs>

The list of volumes.See Block volume below for details.

Active bool

Whether active current eci scaling configuration in the specified scaling group. Note that only one configuration can be active. Default to false.

AutoCreateEip bool

Whether create eip automatically.

ContainerGroupName string

The name of the container group.

Containers []EciScalingConfigurationContainerArgs

The list of containers.See Block container below for details.

Cpu float64

The amount of CPU resources allocated to the container.

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://.

DnsPolicy string

dns policy of contain group.

EgressBandwidth int

egress bandwidth.

EipBandwidth int

Eip bandwidth.

EnableSls bool

Enable sls log service.

ForceDelete bool

The eci scaling configuration will be deleted forcibly with deleting its scaling group. Default to false.

HostAliases []EciScalingConfigurationHostAliasArgs

HostAliases.See Block host_alias below for details.

HostName string

Hostname of an ECI instance.

ImageRegistryCredentials []EciScalingConfigurationImageRegistryCredentialArgs

The image registry credential. The details see Block image_registry_credential.See Block image_registry_credential below for details.

IngressBandwidth int

Ingress bandwidth.

InitContainers []EciScalingConfigurationInitContainerArgs

The list of initContainers.See Block init_container below for details.

Memory float64

The amount of memory resources allocated to the container.

RamRoleName string

The RAM role that the container group assumes. ECI and ECS share the same RAM role.

ResourceGroupId string

ID of resource group.

RestartPolicy string

The restart policy of the container group. Default to Always.

ScalingConfigurationName string

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 EciScalingConfigurationId.

ScalingGroupId string

ID of the scaling group of a eci scaling configuration.

SecurityGroupId string

ID of the security group used to create new instance. It is conflict with security_group_ids.

SpotPriceLimit float64

The maximum price hourly for spot instance.

SpotStrategy string

The spot strategy for a Pay-As-You-Go instance. Valid values: NoSpot, SpotAsPriceGo , SpotWithPriceLimit.

Tags map[string]interface{}

A mapping of tags to assign to the resource. It will be applied for ECI 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.
Volumes []EciScalingConfigurationVolumeArgs

The list of volumes.See Block volume below for details.

active Boolean

Whether active current eci scaling configuration in the specified scaling group. Note that only one configuration can be active. Default to false.

autoCreateEip Boolean

Whether create eip automatically.

containerGroupName String

The name of the container group.

containers List<EciScalingConfigurationContainerArgs>

The list of containers.See Block container below for details.

cpu Double

The amount of CPU resources allocated to the container.

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://.

dnsPolicy String

dns policy of contain group.

egressBandwidth Integer

egress bandwidth.

eipBandwidth Integer

Eip bandwidth.

enableSls Boolean

Enable sls log service.

forceDelete Boolean

The eci scaling configuration will be deleted forcibly with deleting its scaling group. Default to false.

hostAliases List<EciScalingConfigurationHostAliasArgs>

HostAliases.See Block host_alias below for details.

hostName String

Hostname of an ECI instance.

imageRegistryCredentials List<EciScalingConfigurationImageRegistryCredentialArgs>

The image registry credential. The details see Block image_registry_credential.See Block image_registry_credential below for details.

ingressBandwidth Integer

Ingress bandwidth.

initContainers List<EciScalingConfigurationInitContainerArgs>

The list of initContainers.See Block init_container below for details.

memory Double

The amount of memory resources allocated to the container.

ramRoleName String

The RAM role that the container group assumes. ECI and ECS share the same RAM role.

resourceGroupId String

ID of resource group.

restartPolicy String

The restart policy of the container group. Default to Always.

scalingConfigurationName String

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 EciScalingConfigurationId.

scalingGroupId String

ID of the scaling group of a eci scaling configuration.

securityGroupId String

ID of the security group used to create new instance. It is conflict with security_group_ids.

spotPriceLimit Double

The maximum price hourly for spot instance.

spotStrategy String

The spot strategy for a Pay-As-You-Go instance. Valid values: NoSpot, SpotAsPriceGo , SpotWithPriceLimit.

tags Map<String,Object>

A mapping of tags to assign to the resource. It will be applied for ECI 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.
volumes List<EciScalingConfigurationVolumeArgs>

The list of volumes.See Block volume below for details.

active boolean

Whether active current eci scaling configuration in the specified scaling group. Note that only one configuration can be active. Default to false.

autoCreateEip boolean

Whether create eip automatically.

containerGroupName string

The name of the container group.

containers EciScalingConfigurationContainerArgs[]

The list of containers.See Block container below for details.

cpu number

The amount of CPU resources allocated to the container.

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://.

dnsPolicy string

dns policy of contain group.

egressBandwidth number

egress bandwidth.

eipBandwidth number

Eip bandwidth.

enableSls boolean

Enable sls log service.

forceDelete boolean

The eci scaling configuration will be deleted forcibly with deleting its scaling group. Default to false.

hostAliases EciScalingConfigurationHostAliasArgs[]

HostAliases.See Block host_alias below for details.

hostName string

Hostname of an ECI instance.

imageRegistryCredentials EciScalingConfigurationImageRegistryCredentialArgs[]

The image registry credential. The details see Block image_registry_credential.See Block image_registry_credential below for details.

ingressBandwidth number

Ingress bandwidth.

initContainers EciScalingConfigurationInitContainerArgs[]

The list of initContainers.See Block init_container below for details.

memory number

The amount of memory resources allocated to the container.

ramRoleName string

The RAM role that the container group assumes. ECI and ECS share the same RAM role.

resourceGroupId string

ID of resource group.

restartPolicy string

The restart policy of the container group. Default to Always.

scalingConfigurationName string

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 EciScalingConfigurationId.

scalingGroupId string

ID of the scaling group of a eci scaling configuration.

securityGroupId string

ID of the security group used to create new instance. It is conflict with security_group_ids.

spotPriceLimit number

The maximum price hourly for spot instance.

spotStrategy string

The spot strategy for a Pay-As-You-Go instance. Valid values: NoSpot, SpotAsPriceGo , SpotWithPriceLimit.

tags {[key: string]: any}

A mapping of tags to assign to the resource. It will be applied for ECI 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.
volumes EciScalingConfigurationVolumeArgs[]

The list of volumes.See Block volume below for details.

active bool

Whether active current eci scaling configuration in the specified scaling group. Note that only one configuration can be active. Default to false.

auto_create_eip bool

Whether create eip automatically.

container_group_name str

The name of the container group.

containers Sequence[EciScalingConfigurationContainerArgs]

The list of containers.See Block container below for details.

cpu float

The amount of CPU resources allocated to the container.

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://.

dns_policy str

dns policy of contain group.

egress_bandwidth int

egress bandwidth.

eip_bandwidth int

Eip bandwidth.

enable_sls bool

Enable sls log service.

force_delete bool

The eci scaling configuration will be deleted forcibly with deleting its scaling group. Default to false.

host_aliases Sequence[EciScalingConfigurationHostAliasArgs]

HostAliases.See Block host_alias below for details.

host_name str

Hostname of an ECI instance.

image_registry_credentials Sequence[EciScalingConfigurationImageRegistryCredentialArgs]

The image registry credential. The details see Block image_registry_credential.See Block image_registry_credential below for details.

ingress_bandwidth int

Ingress bandwidth.

init_containers Sequence[EciScalingConfigurationInitContainerArgs]

The list of initContainers.See Block init_container below for details.

memory float

The amount of memory resources allocated to the container.

ram_role_name str

The RAM role that the container group assumes. ECI and ECS share the same RAM role.

resource_group_id str

ID of resource group.

restart_policy str

The restart policy of the container group. Default to Always.

scaling_configuration_name str

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 EciScalingConfigurationId.

scaling_group_id str

ID of the scaling group of a eci scaling configuration.

security_group_id str

ID of the security group used to create new instance. It is conflict with security_group_ids.

spot_price_limit float

The maximum price hourly for spot instance.

spot_strategy str

The spot strategy for a Pay-As-You-Go instance. Valid values: NoSpot, SpotAsPriceGo , SpotWithPriceLimit.

tags Mapping[str, Any]

A mapping of tags to assign to the resource. It will be applied for ECI 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.
volumes Sequence[EciScalingConfigurationVolumeArgs]

The list of volumes.See Block volume below for details.

active Boolean

Whether active current eci scaling configuration in the specified scaling group. Note that only one configuration can be active. Default to false.

autoCreateEip Boolean

Whether create eip automatically.

containerGroupName String

The name of the container group.

containers List<Property Map>

The list of containers.See Block container below for details.

cpu Number

The amount of CPU resources allocated to the container.

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://.

dnsPolicy String

dns policy of contain group.

egressBandwidth Number

egress bandwidth.

eipBandwidth Number

Eip bandwidth.

enableSls Boolean

Enable sls log service.

forceDelete Boolean

The eci scaling configuration will be deleted forcibly with deleting its scaling group. Default to false.

hostAliases List<Property Map>

HostAliases.See Block host_alias below for details.

hostName String

Hostname of an ECI instance.

imageRegistryCredentials List<Property Map>

The image registry credential. The details see Block image_registry_credential.See Block image_registry_credential below for details.

ingressBandwidth Number

Ingress bandwidth.

initContainers List<Property Map>

The list of initContainers.See Block init_container below for details.

memory Number

The amount of memory resources allocated to the container.

ramRoleName String

The RAM role that the container group assumes. ECI and ECS share the same RAM role.

resourceGroupId String

ID of resource group.

restartPolicy String

The restart policy of the container group. Default to Always.

scalingConfigurationName String

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 EciScalingConfigurationId.

scalingGroupId String

ID of the scaling group of a eci scaling configuration.

securityGroupId String

ID of the security group used to create new instance. It is conflict with security_group_ids.

spotPriceLimit Number

The maximum price hourly for spot instance.

spotStrategy String

The spot strategy for a Pay-As-You-Go instance. Valid values: NoSpot, SpotAsPriceGo , SpotWithPriceLimit.

tags Map<Any>

A mapping of tags to assign to the resource. It will be applied for ECI 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.
volumes List<Property Map>

The list of volumes.See Block volume below for details.

Supporting Types

EciScalingConfigurationContainer

Args List<string>

The arguments passed to the commands.

Commands List<string>

The commands run by the init container.

Cpu double

The amount of CPU resources allocated to the container.

EnvironmentVars List<Pulumi.AliCloud.Ess.Inputs.EciScalingConfigurationContainerEnvironmentVar>

The structure of environmentVars. See Block_environment_var_in_container below for details.

Gpu int

The number GPUs.

Image string

The image of the container.

ImagePullPolicy string

The restart policy of the image.

Memory double

The amount of memory resources allocated to the container.

Name string

The name of the mounted volume.

Ports List<Pulumi.AliCloud.Ess.Inputs.EciScalingConfigurationContainerPort>

The structure of port. See Block_port_in_container below for details.

VolumeMounts List<Pulumi.AliCloud.Ess.Inputs.EciScalingConfigurationContainerVolumeMount>

The structure of volumeMounts. See Block_volume_mount_in_container below for details.

WorkingDir string

The working directory of the container.

Args []string

The arguments passed to the commands.

Commands []string

The commands run by the init container.

Cpu float64

The amount of CPU resources allocated to the container.

EnvironmentVars []EciScalingConfigurationContainerEnvironmentVar

The structure of environmentVars. See Block_environment_var_in_container below for details.

Gpu int

The number GPUs.

Image string

The image of the container.

ImagePullPolicy string

The restart policy of the image.

Memory float64

The amount of memory resources allocated to the container.

Name string

The name of the mounted volume.

Ports []EciScalingConfigurationContainerPort

The structure of port. See Block_port_in_container below for details.

VolumeMounts []EciScalingConfigurationContainerVolumeMount

The structure of volumeMounts. See Block_volume_mount_in_container below for details.

WorkingDir string

The working directory of the container.

args List<String>

The arguments passed to the commands.

commands List<String>

The commands run by the init container.

cpu Double

The amount of CPU resources allocated to the container.

environmentVars List<EciScalingConfigurationContainerEnvironmentVar>

The structure of environmentVars. See Block_environment_var_in_container below for details.

gpu Integer

The number GPUs.

image String

The image of the container.

imagePullPolicy String

The restart policy of the image.

memory Double

The amount of memory resources allocated to the container.

name String

The name of the mounted volume.

ports List<EciScalingConfigurationContainerPort>

The structure of port. See Block_port_in_container below for details.

volumeMounts List<EciScalingConfigurationContainerVolumeMount>

The structure of volumeMounts. See Block_volume_mount_in_container below for details.

workingDir String

The working directory of the container.

args string[]

The arguments passed to the commands.

commands string[]

The commands run by the init container.

cpu number

The amount of CPU resources allocated to the container.

environmentVars EciScalingConfigurationContainerEnvironmentVar[]

The structure of environmentVars. See Block_environment_var_in_container below for details.

gpu number

The number GPUs.

image string

The image of the container.

imagePullPolicy string

The restart policy of the image.

memory number

The amount of memory resources allocated to the container.

name string

The name of the mounted volume.

ports EciScalingConfigurationContainerPort[]

The structure of port. See Block_port_in_container below for details.

volumeMounts EciScalingConfigurationContainerVolumeMount[]

The structure of volumeMounts. See Block_volume_mount_in_container below for details.

workingDir string

The working directory of the container.

args Sequence[str]

The arguments passed to the commands.

commands Sequence[str]

The commands run by the init container.

cpu float

The amount of CPU resources allocated to the container.

environment_vars Sequence[EciScalingConfigurationContainerEnvironmentVar]

The structure of environmentVars. See Block_environment_var_in_container below for details.

gpu int

The number GPUs.

image str

The image of the container.

image_pull_policy str

The restart policy of the image.

memory float

The amount of memory resources allocated to the container.

name str

The name of the mounted volume.

ports Sequence[EciScalingConfigurationContainerPort]

The structure of port. See Block_port_in_container below for details.

volume_mounts Sequence[EciScalingConfigurationContainerVolumeMount]

The structure of volumeMounts. See Block_volume_mount_in_container below for details.

working_dir str

The working directory of the container.

args List<String>

The arguments passed to the commands.

commands List<String>

The commands run by the init container.

cpu Number

The amount of CPU resources allocated to the container.

environmentVars List<Property Map>

The structure of environmentVars. See Block_environment_var_in_container below for details.

gpu Number

The number GPUs.

image String

The image of the container.

imagePullPolicy String

The restart policy of the image.

memory Number

The amount of memory resources allocated to the container.

name String

The name of the mounted volume.

ports List<Property Map>

The structure of port. See Block_port_in_container below for details.

volumeMounts List<Property Map>

The structure of volumeMounts. See Block_volume_mount_in_container below for details.

workingDir String

The working directory of the container.

EciScalingConfigurationContainerEnvironmentVar

Key string

The name of the variable. The name can be 1 to 128 characters in length and can contain letters, digits, and underscores (_). It cannot start with a digit.

Value string

The value of the variable. The value can be 0 to 256 characters in length.

Key string

The name of the variable. The name can be 1 to 128 characters in length and can contain letters, digits, and underscores (_). It cannot start with a digit.

Value string

The value of the variable. The value can be 0 to 256 characters in length.

key String

The name of the variable. The name can be 1 to 128 characters in length and can contain letters, digits, and underscores (_). It cannot start with a digit.

value String

The value of the variable. The value can be 0 to 256 characters in length.

key string

The name of the variable. The name can be 1 to 128 characters in length and can contain letters, digits, and underscores (_). It cannot start with a digit.

value string

The value of the variable. The value can be 0 to 256 characters in length.

key str

The name of the variable. The name can be 1 to 128 characters in length and can contain letters, digits, and underscores (_). It cannot start with a digit.

value str

The value of the variable. The value can be 0 to 256 characters in length.

key String

The name of the variable. The name can be 1 to 128 characters in length and can contain letters, digits, and underscores (_). It cannot start with a digit.

value String

The value of the variable. The value can be 0 to 256 characters in length.

EciScalingConfigurationContainerPort

Port int

The port number. Valid values: 1 to 65535.

Protocol string

Valid values: TCP and UDP.

Port int

The port number. Valid values: 1 to 65535.

Protocol string

Valid values: TCP and UDP.

port Integer

The port number. Valid values: 1 to 65535.

protocol String

Valid values: TCP and UDP.

port number

The port number. Valid values: 1 to 65535.

protocol string

Valid values: TCP and UDP.

port int

The port number. Valid values: 1 to 65535.

protocol str

Valid values: TCP and UDP.

port Number

The port number. Valid values: 1 to 65535.

protocol String

Valid values: TCP and UDP.

EciScalingConfigurationContainerVolumeMount

MountPath string

The directory of the mounted volume. Data under this directory will be overwritten by the data in the volume.

Name string

The name of the mounted volume.

ReadOnly bool

Default to false.

MountPath string

The directory of the mounted volume. Data under this directory will be overwritten by the data in the volume.

Name string

The name of the mounted volume.

ReadOnly bool

Default to false.

mountPath String

The directory of the mounted volume. Data under this directory will be overwritten by the data in the volume.

name String

The name of the mounted volume.

readOnly Boolean

Default to false.

mountPath string

The directory of the mounted volume. Data under this directory will be overwritten by the data in the volume.

name string

The name of the mounted volume.

readOnly boolean

Default to false.

mount_path str

The directory of the mounted volume. Data under this directory will be overwritten by the data in the volume.

name str

The name of the mounted volume.

read_only bool

Default to false.

mountPath String

The directory of the mounted volume. Data under this directory will be overwritten by the data in the volume.

name String

The name of the mounted volume.

readOnly Boolean

Default to false.

EciScalingConfigurationHostAlias

Hostnames List<string>

Adds a host name.

Ip string

Adds an IP address.

Hostnames []string

Adds a host name.

Ip string

Adds an IP address.

hostnames List<String>

Adds a host name.

ip String

Adds an IP address.

hostnames string[]

Adds a host name.

ip string

Adds an IP address.

hostnames Sequence[str]

Adds a host name.

ip str

Adds an IP address.

hostnames List<String>

Adds a host name.

ip String

Adds an IP address.

EciScalingConfigurationImageRegistryCredential

Password string

The password used to log on to the image repository. It is required when image_registry_credential is configured.

Server string

The address of the image repository. It is required when image_registry_credential is configured.

Username string
Password string

The password used to log on to the image repository. It is required when image_registry_credential is configured.

Server string

The address of the image repository. It is required when image_registry_credential is configured.

Username string
password String

The password used to log on to the image repository. It is required when image_registry_credential is configured.

server String

The address of the image repository. It is required when image_registry_credential is configured.

username String
password string

The password used to log on to the image repository. It is required when image_registry_credential is configured.

server string

The address of the image repository. It is required when image_registry_credential is configured.

username string
password str

The password used to log on to the image repository. It is required when image_registry_credential is configured.

server str

The address of the image repository. It is required when image_registry_credential is configured.

username str
password String

The password used to log on to the image repository. It is required when image_registry_credential is configured.

server String

The address of the image repository. It is required when image_registry_credential is configured.

username String

EciScalingConfigurationInitContainer

Args List<string>

The arguments passed to the commands.

Commands List<string>

The commands run by the init container.

Cpu double

The amount of CPU resources allocated to the container.

EnvironmentVars List<Pulumi.AliCloud.Ess.Inputs.EciScalingConfigurationInitContainerEnvironmentVar>

The structure of environmentVars. See Block_environment_var_in_container below for details.

Gpu int

The number GPUs.

Image string

The image of the container.

ImagePullPolicy string

The restart policy of the image.

Memory double

The amount of memory resources allocated to the container.

Name string

The name of the mounted volume.

Ports List<Pulumi.AliCloud.Ess.Inputs.EciScalingConfigurationInitContainerPort>

The structure of port. See Block_port_in_container below for details.

VolumeMounts List<Pulumi.AliCloud.Ess.Inputs.EciScalingConfigurationInitContainerVolumeMount>

The structure of volumeMounts. See Block_volume_mount_in_container below for details.

WorkingDir string

The working directory of the container.

Args []string

The arguments passed to the commands.

Commands []string

The commands run by the init container.

Cpu float64

The amount of CPU resources allocated to the container.

EnvironmentVars []EciScalingConfigurationInitContainerEnvironmentVar

The structure of environmentVars. See Block_environment_var_in_container below for details.

Gpu int

The number GPUs.

Image string

The image of the container.

ImagePullPolicy string

The restart policy of the image.

Memory float64

The amount of memory resources allocated to the container.

Name string

The name of the mounted volume.

Ports []EciScalingConfigurationInitContainerPort

The structure of port. See Block_port_in_container below for details.

VolumeMounts []EciScalingConfigurationInitContainerVolumeMount

The structure of volumeMounts. See Block_volume_mount_in_container below for details.

WorkingDir string

The working directory of the container.

args List<String>

The arguments passed to the commands.

commands List<String>

The commands run by the init container.

cpu Double

The amount of CPU resources allocated to the container.

environmentVars List<EciScalingConfigurationInitContainerEnvironmentVar>

The structure of environmentVars. See Block_environment_var_in_container below for details.

gpu Integer

The number GPUs.

image String

The image of the container.

imagePullPolicy String

The restart policy of the image.

memory Double

The amount of memory resources allocated to the container.

name String

The name of the mounted volume.

ports List<EciScalingConfigurationInitContainerPort>

The structure of port. See Block_port_in_container below for details.

volumeMounts List<EciScalingConfigurationInitContainerVolumeMount>

The structure of volumeMounts. See Block_volume_mount_in_container below for details.

workingDir String

The working directory of the container.

args string[]

The arguments passed to the commands.

commands string[]

The commands run by the init container.

cpu number

The amount of CPU resources allocated to the container.

environmentVars EciScalingConfigurationInitContainerEnvironmentVar[]

The structure of environmentVars. See Block_environment_var_in_container below for details.

gpu number

The number GPUs.

image string

The image of the container.

imagePullPolicy string

The restart policy of the image.

memory number

The amount of memory resources allocated to the container.

name string

The name of the mounted volume.

ports EciScalingConfigurationInitContainerPort[]

The structure of port. See Block_port_in_container below for details.

volumeMounts EciScalingConfigurationInitContainerVolumeMount[]

The structure of volumeMounts. See Block_volume_mount_in_container below for details.

workingDir string

The working directory of the container.

args Sequence[str]

The arguments passed to the commands.

commands Sequence[str]

The commands run by the init container.

cpu float

The amount of CPU resources allocated to the container.

environment_vars Sequence[EciScalingConfigurationInitContainerEnvironmentVar]

The structure of environmentVars. See Block_environment_var_in_container below for details.

gpu int

The number GPUs.

image str

The image of the container.

image_pull_policy str

The restart policy of the image.

memory float

The amount of memory resources allocated to the container.

name str

The name of the mounted volume.

ports Sequence[EciScalingConfigurationInitContainerPort]

The structure of port. See Block_port_in_container below for details.

volume_mounts Sequence[EciScalingConfigurationInitContainerVolumeMount]

The structure of volumeMounts. See Block_volume_mount_in_container below for details.

working_dir str

The working directory of the container.

args List<String>

The arguments passed to the commands.

commands List<String>

The commands run by the init container.

cpu Number

The amount of CPU resources allocated to the container.

environmentVars List<Property Map>

The structure of environmentVars. See Block_environment_var_in_container below for details.

gpu Number

The number GPUs.

image String

The image of the container.

imagePullPolicy String

The restart policy of the image.

memory Number

The amount of memory resources allocated to the container.

name String

The name of the mounted volume.

ports List<Property Map>

The structure of port. See Block_port_in_container below for details.

volumeMounts List<Property Map>

The structure of volumeMounts. See Block_volume_mount_in_container below for details.

workingDir String

The working directory of the container.

EciScalingConfigurationInitContainerEnvironmentVar

Key string

The name of the variable. The name can be 1 to 128 characters in length and can contain letters, digits, and underscores (_). It cannot start with a digit.

Value string

The value of the variable. The value can be 0 to 256 characters in length.

Key string

The name of the variable. The name can be 1 to 128 characters in length and can contain letters, digits, and underscores (_). It cannot start with a digit.

Value string

The value of the variable. The value can be 0 to 256 characters in length.

key String

The name of the variable. The name can be 1 to 128 characters in length and can contain letters, digits, and underscores (_). It cannot start with a digit.

value String

The value of the variable. The value can be 0 to 256 characters in length.

key string

The name of the variable. The name can be 1 to 128 characters in length and can contain letters, digits, and underscores (_). It cannot start with a digit.

value string

The value of the variable. The value can be 0 to 256 characters in length.

key str

The name of the variable. The name can be 1 to 128 characters in length and can contain letters, digits, and underscores (_). It cannot start with a digit.

value str

The value of the variable. The value can be 0 to 256 characters in length.

key String

The name of the variable. The name can be 1 to 128 characters in length and can contain letters, digits, and underscores (_). It cannot start with a digit.

value String

The value of the variable. The value can be 0 to 256 characters in length.

EciScalingConfigurationInitContainerPort

Port int

The port number. Valid values: 1 to 65535.

Protocol string

Valid values: TCP and UDP.

Port int

The port number. Valid values: 1 to 65535.

Protocol string

Valid values: TCP and UDP.

port Integer

The port number. Valid values: 1 to 65535.

protocol String

Valid values: TCP and UDP.

port number

The port number. Valid values: 1 to 65535.

protocol string

Valid values: TCP and UDP.

port int

The port number. Valid values: 1 to 65535.

protocol str

Valid values: TCP and UDP.

port Number

The port number. Valid values: 1 to 65535.

protocol String

Valid values: TCP and UDP.

EciScalingConfigurationInitContainerVolumeMount

MountPath string

The directory of the mounted volume. Data under this directory will be overwritten by the data in the volume.

Name string

The name of the mounted volume.

ReadOnly bool

Default to false.

MountPath string

The directory of the mounted volume. Data under this directory will be overwritten by the data in the volume.

Name string

The name of the mounted volume.

ReadOnly bool

Default to false.

mountPath String

The directory of the mounted volume. Data under this directory will be overwritten by the data in the volume.

name String

The name of the mounted volume.

readOnly Boolean

Default to false.

mountPath string

The directory of the mounted volume. Data under this directory will be overwritten by the data in the volume.

name string

The name of the mounted volume.

readOnly boolean

Default to false.

mount_path str

The directory of the mounted volume. Data under this directory will be overwritten by the data in the volume.

name str

The name of the mounted volume.

read_only bool

Default to false.

mountPath String

The directory of the mounted volume. Data under this directory will be overwritten by the data in the volume.

name String

The name of the mounted volume.

readOnly Boolean

Default to false.

EciScalingConfigurationVolume

ConfigFileVolumeConfigFileToPaths List<Pulumi.AliCloud.Ess.Inputs.EciScalingConfigurationVolumeConfigFileVolumeConfigFileToPath>

ConfigFileVolumeConfigFileToPaths. See Block_config_file_volume_config_file_to_path below for details.

DiskVolumeDiskId string

The ID of DiskVolume.

DiskVolumeDiskSize int
DiskVolumeFsType string

The system type of DiskVolume.

FlexVolumeDriver string

The name of the FlexVolume driver.

FlexVolumeFsType string

The type of the mounted file system. The default value is determined by the script of FlexVolume.

FlexVolumeOptions string

The list of FlexVolume objects. Each object is a key-value pair contained in a JSON string.

Name string

The name of the mounted volume.

NfsVolumePath string

The path to the NFS volume.

NfsVolumeReadOnly bool

The nfs volume read only. Default to false.

NfsVolumeServer string

The address of the NFS server.

Type string

The type of the volume.

ConfigFileVolumeConfigFileToPaths []EciScalingConfigurationVolumeConfigFileVolumeConfigFileToPath

ConfigFileVolumeConfigFileToPaths. See Block_config_file_volume_config_file_to_path below for details.

DiskVolumeDiskId string

The ID of DiskVolume.

DiskVolumeDiskSize int
DiskVolumeFsType string

The system type of DiskVolume.

FlexVolumeDriver string

The name of the FlexVolume driver.

FlexVolumeFsType string

The type of the mounted file system. The default value is determined by the script of FlexVolume.

FlexVolumeOptions string

The list of FlexVolume objects. Each object is a key-value pair contained in a JSON string.

Name string

The name of the mounted volume.

NfsVolumePath string

The path to the NFS volume.

NfsVolumeReadOnly bool

The nfs volume read only. Default to false.

NfsVolumeServer string

The address of the NFS server.

Type string

The type of the volume.

configFileVolumeConfigFileToPaths List<EciScalingConfigurationVolumeConfigFileVolumeConfigFileToPath>

ConfigFileVolumeConfigFileToPaths. See Block_config_file_volume_config_file_to_path below for details.

diskVolumeDiskId String

The ID of DiskVolume.

diskVolumeDiskSize Integer
diskVolumeFsType String

The system type of DiskVolume.

flexVolumeDriver String

The name of the FlexVolume driver.

flexVolumeFsType String

The type of the mounted file system. The default value is determined by the script of FlexVolume.

flexVolumeOptions String

The list of FlexVolume objects. Each object is a key-value pair contained in a JSON string.

name String

The name of the mounted volume.

nfsVolumePath String

The path to the NFS volume.

nfsVolumeReadOnly Boolean

The nfs volume read only. Default to false.

nfsVolumeServer String

The address of the NFS server.

type String

The type of the volume.

configFileVolumeConfigFileToPaths EciScalingConfigurationVolumeConfigFileVolumeConfigFileToPath[]

ConfigFileVolumeConfigFileToPaths. See Block_config_file_volume_config_file_to_path below for details.

diskVolumeDiskId string

The ID of DiskVolume.

diskVolumeDiskSize number
diskVolumeFsType string

The system type of DiskVolume.

flexVolumeDriver string

The name of the FlexVolume driver.

flexVolumeFsType string

The type of the mounted file system. The default value is determined by the script of FlexVolume.

flexVolumeOptions string

The list of FlexVolume objects. Each object is a key-value pair contained in a JSON string.

name string

The name of the mounted volume.

nfsVolumePath string

The path to the NFS volume.

nfsVolumeReadOnly boolean

The nfs volume read only. Default to false.

nfsVolumeServer string

The address of the NFS server.

type string

The type of the volume.

config_file_volume_config_file_to_paths Sequence[EciScalingConfigurationVolumeConfigFileVolumeConfigFileToPath]

ConfigFileVolumeConfigFileToPaths. See Block_config_file_volume_config_file_to_path below for details.

disk_volume_disk_id str

The ID of DiskVolume.

disk_volume_disk_size int
disk_volume_fs_type str

The system type of DiskVolume.

flex_volume_driver str

The name of the FlexVolume driver.

flex_volume_fs_type str

The type of the mounted file system. The default value is determined by the script of FlexVolume.

flex_volume_options str

The list of FlexVolume objects. Each object is a key-value pair contained in a JSON string.

name str

The name of the mounted volume.

nfs_volume_path str

The path to the NFS volume.

nfs_volume_read_only bool

The nfs volume read only. Default to false.

nfs_volume_server str

The address of the NFS server.

type str

The type of the volume.

configFileVolumeConfigFileToPaths List<Property Map>

ConfigFileVolumeConfigFileToPaths. See Block_config_file_volume_config_file_to_path below for details.

diskVolumeDiskId String

The ID of DiskVolume.

diskVolumeDiskSize Number
diskVolumeFsType String

The system type of DiskVolume.

flexVolumeDriver String

The name of the FlexVolume driver.

flexVolumeFsType String

The type of the mounted file system. The default value is determined by the script of FlexVolume.

flexVolumeOptions String

The list of FlexVolume objects. Each object is a key-value pair contained in a JSON string.

name String

The name of the mounted volume.

nfsVolumePath String

The path to the NFS volume.

nfsVolumeReadOnly Boolean

The nfs volume read only. Default to false.

nfsVolumeServer String

The address of the NFS server.

type String

The type of the volume.

EciScalingConfigurationVolumeConfigFileVolumeConfigFileToPath

Content string

The content of the configuration file. Maximum size: 32 KB.

Path string

The relative file path.

Content string

The content of the configuration file. Maximum size: 32 KB.

Path string

The relative file path.

content String

The content of the configuration file. Maximum size: 32 KB.

path String

The relative file path.

content string

The content of the configuration file. Maximum size: 32 KB.

path string

The relative file path.

content str

The content of the configuration file. Maximum size: 32 KB.

path str

The relative file path.

content String

The content of the configuration file. Maximum size: 32 KB.

path String

The relative file path.

Import

ESS eci scaling configuration can be imported using the id, e.g.

 $ pulumi import alicloud:ess/eciScalingConfiguration:EciScalingConfiguration example asc-abc123456

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.