alicloud.ess.EciScalingConfiguration
Explore with Pulumi AI
Provides a ESS eci scaling configuration resource.
For information about ess eci scaling configuration, see CreateEciScalingConfiguration.
NOTE: Available since v1.164.0.
Example Usage
Basic Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "terraform-example";
var defaultZones = AliCloud.GetZones.Invoke(new()
{
AvailableDiskCategory = "cloud_efficiency",
AvailableResourceCreation = "VSwitch",
});
var defaultNetwork = new AliCloud.Vpc.Network("defaultNetwork", new()
{
VpcName = name,
CidrBlock = "172.16.0.0/16",
});
var defaultSwitch = new AliCloud.Vpc.Switch("defaultSwitch", new()
{
VpcId = defaultNetwork.Id,
CidrBlock = "172.16.0.0/24",
ZoneId = defaultZones.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
VswitchName = name,
});
var defaultSecurityGroup = new AliCloud.Ecs.SecurityGroup("defaultSecurityGroup", new()
{
VpcId = defaultNetwork.Id,
});
var defaultScalingGroup = new AliCloud.Ess.ScalingGroup("defaultScalingGroup", new()
{
MinSize = 0,
MaxSize = 1,
ScalingGroupName = name,
RemovalPolicies = new[]
{
"OldestInstance",
"NewestInstance",
},
VswitchIds = new[]
{
defaultSwitch.Id,
},
GroupType = "ECI",
});
var defaultEciScalingConfiguration = new AliCloud.Ess.EciScalingConfiguration("defaultEciScalingConfiguration", new()
{
ScalingGroupId = defaultScalingGroup.Id,
Cpu = 2,
Memory = 4,
SecurityGroupId = defaultSecurityGroup.Id,
ForceDelete = true,
Active = true,
ContainerGroupName = "container-group-1649839595174",
Containers = new[]
{
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"
"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 := "terraform-example"
if param := cfg.Get("name"); param != "" {
name = param
}
defaultZones, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
AvailableDiskCategory: pulumi.StringRef("cloud_efficiency"),
AvailableResourceCreation: pulumi.StringRef("VSwitch"),
}, nil)
if err != nil {
return err
}
defaultNetwork, err := vpc.NewNetwork(ctx, "defaultNetwork", &vpc.NetworkArgs{
VpcName: pulumi.String(name),
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.String(defaultZones.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.AlicloudFunctions;
import com.pulumi.alicloud.inputs.GetZonesArgs;
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("terraform-example");
final var defaultZones = AlicloudFunctions.getZones(GetZonesArgs.builder()
.availableDiskCategory("cloud_efficiency")
.availableResourceCreation("VSwitch")
.build());
var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
.vpcName(name)
.cidrBlock("172.16.0.0/16")
.build());
var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()
.vpcId(defaultNetwork.id())
.cidrBlock("172.16.0.0/24")
.zoneId(defaultZones.applyValue(getZonesResult -> getZonesResult.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 = "terraform-example"
default_zones = alicloud.get_zones(available_disk_category="cloud_efficiency",
available_resource_creation="VSwitch")
default_network = alicloud.vpc.Network("defaultNetwork",
vpc_name=name,
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=default_zones.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") || "terraform-example";
const defaultZones = alicloud.getZones({
availableDiskCategory: "cloud_efficiency",
availableResourceCreation: "VSwitch",
});
const defaultNetwork = new alicloud.vpc.Network("defaultNetwork", {
vpcName: name,
cidrBlock: "172.16.0.0/16",
});
const defaultSwitch = new alicloud.vpc.Switch("defaultSwitch", {
vpcId: defaultNetwork.id,
cidrBlock: "172.16.0.0/24",
zoneId: defaultZones.then(defaultZones => defaultZones.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: terraform-example
resources:
defaultNetwork:
type: alicloud:vpc:Network
properties:
vpcName: ${name}
cidrBlock: 172.16.0.0/16
defaultSwitch:
type: alicloud:vpc:Switch
properties:
vpcId: ${defaultNetwork.id}
cidrBlock: 172.16.0.0/24
zoneId: ${defaultZones.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
variables:
defaultZones:
fn::invoke:
Function: alicloud:getZones
Arguments:
availableDiskCategory: cloud_efficiency
availableResourceCreation: VSwitch
Create EciScalingConfiguration Resource
new EciScalingConfiguration(name: string, args: EciScalingConfigurationArgs, opts?: CustomResourceOptions);
@overload
def EciScalingConfiguration(resource_name: str,
opts: Optional[ResourceOptions] = None,
acr_registry_infos: Optional[Sequence[EciScalingConfigurationAcrRegistryInfoArgs]] = 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:
- Scaling
Group stringId ID of the scaling group of a eci scaling configuration.
- Acr
Registry List<Pulumi.Infos Ali Cloud. Ess. Inputs. Eci Scaling Configuration Acr Registry Info> Information about the Container Registry Enterprise Edition instance. See
acr_registry_infos
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 boolEip Whether create eip automatically.
- Container
Group stringName The name of the container group.
- Containers
List<Pulumi.
Ali Cloud. Ess. Inputs. Eci Scaling Configuration Container> The list of containers. See
containers
below for details.- Cpu double
The amount of CPU resources allocated to the container group.
- 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://.
- Dns
Policy string 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 List<Pulumi.Ali Cloud. Ess. Inputs. Eci Scaling Configuration Host Alias> HostAliases. See
host_aliases
below.- Host
Name string Hostname of an ECI instance.
- Image
Registry List<Pulumi.Credentials Ali Cloud. Ess. Inputs. Eci Scaling Configuration Image Registry Credential> The image registry credential. See
image_registry_credentials
below for details.- Ingress
Bandwidth int Ingress bandwidth.
- Init
Containers List<Pulumi.Ali Cloud. Ess. Inputs. Eci Scaling Configuration Init Container> The list of initContainers. See
init_containers
below for details.- Memory double
The amount of memory resources allocated to the container group.
- Ram
Role stringName The RAM role that the container group assumes. ECI and ECS share the same RAM role.
- Resource
Group stringId ID of resource group.
- Restart
Policy string The restart policy of the container group. Default to
Always
.- Scaling
Configuration stringName Name shown for the scheduled task. which must contain 2-64 characters ( English or Chinese), starting with numbers, English letters or Chinese characters, and can contain number, underscores
_
, hypens-
, and decimal point.
. If this parameter value is not specified, the default value is EciScalingConfigurationId.- Security
Group stringId ID of the security group used to create new instance. It is conflict with
security_group_ids
.- Spot
Price doubleLimit The maximum price hourly for spot instance.
- Spot
Strategy string The spot strategy for a Pay-As-You-Go instance. Valid values:
NoSpot
,SpotAsPriceGo
,SpotWithPriceLimit
.- 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.
Ali Cloud. Ess. Inputs. Eci Scaling Configuration Volume> The list of volumes. See
volumes
below for details.
- Scaling
Group stringId ID of the scaling group of a eci scaling configuration.
- Acr
Registry []EciInfos Scaling Configuration Acr Registry Info Args Information about the Container Registry Enterprise Edition instance. See
acr_registry_infos
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 boolEip Whether create eip automatically.
- Container
Group stringName The name of the container group.
- Containers
[]Eci
Scaling Configuration Container Args The list of containers. See
containers
below for details.- Cpu float64
The amount of CPU resources allocated to the container group.
- 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://.
- Dns
Policy string 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 []EciScaling Configuration Host Alias Args HostAliases. See
host_aliases
below.- Host
Name string Hostname of an ECI instance.
- Image
Registry []EciCredentials Scaling Configuration Image Registry Credential Args The image registry credential. See
image_registry_credentials
below for details.- Ingress
Bandwidth int Ingress bandwidth.
- Init
Containers []EciScaling Configuration Init Container Args The list of initContainers. See
init_containers
below for details.- Memory float64
The amount of memory resources allocated to the container group.
- Ram
Role stringName The RAM role that the container group assumes. ECI and ECS share the same RAM role.
- Resource
Group stringId ID of resource group.
- Restart
Policy string The restart policy of the container group. Default to
Always
.- Scaling
Configuration stringName Name shown for the scheduled task. which must contain 2-64 characters ( English or Chinese), starting with numbers, English letters or Chinese characters, and can contain number, underscores
_
, hypens-
, and decimal point.
. If this parameter value is not specified, the default value is EciScalingConfigurationId.- Security
Group stringId ID of the security group used to create new instance. It is conflict with
security_group_ids
.- Spot
Price float64Limit The maximum price hourly for spot instance.
- Spot
Strategy string The spot strategy for a Pay-As-You-Go instance. Valid values:
NoSpot
,SpotAsPriceGo
,SpotWithPriceLimit
.- 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
[]Eci
Scaling Configuration Volume Args The list of volumes. See
volumes
below for details.
- scaling
Group StringId ID of the scaling group of a eci scaling configuration.
- acr
Registry List<EciInfos Scaling Configuration Acr Registry Info> Information about the Container Registry Enterprise Edition instance. See
acr_registry_infos
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
.- auto
Create BooleanEip Whether create eip automatically.
- container
Group StringName The name of the container group.
- containers
List<Eci
Scaling Configuration Container> The list of containers. See
containers
below for details.- cpu Double
The amount of CPU resources allocated to the container group.
- 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://.
- dns
Policy String dns policy of contain group.
- egress
Bandwidth Integer egress bandwidth.
- eip
Bandwidth Integer Eip bandwidth.
- enable
Sls Boolean Enable sls log service.
- force
Delete Boolean The eci scaling configuration will be deleted forcibly with deleting its scaling group. Default to false.
- host
Aliases List<EciScaling Configuration Host Alias> HostAliases. See
host_aliases
below.- host
Name String Hostname of an ECI instance.
- image
Registry List<EciCredentials Scaling Configuration Image Registry Credential> The image registry credential. See
image_registry_credentials
below for details.- ingress
Bandwidth Integer Ingress bandwidth.
- init
Containers List<EciScaling Configuration Init Container> The list of initContainers. See
init_containers
below for details.- memory Double
The amount of memory resources allocated to the container group.
- ram
Role StringName The RAM role that the container group assumes. ECI and ECS share the same RAM role.
- resource
Group StringId ID of resource group.
- restart
Policy String The restart policy of the container group. Default to
Always
.- scaling
Configuration StringName Name shown for the scheduled task. which must contain 2-64 characters ( English or Chinese), starting with numbers, English letters or Chinese characters, and can contain number, underscores
_
, hypens-
, and decimal point.
. If this parameter value is not specified, the default value is EciScalingConfigurationId.- security
Group StringId ID of the security group used to create new instance. It is conflict with
security_group_ids
.- spot
Price DoubleLimit The maximum price hourly for spot instance.
- spot
Strategy String The spot strategy for a Pay-As-You-Go instance. Valid values:
NoSpot
,SpotAsPriceGo
,SpotWithPriceLimit
.- 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<Eci
Scaling Configuration Volume> The list of volumes. See
volumes
below for details.
- scaling
Group stringId ID of the scaling group of a eci scaling configuration.
- acr
Registry EciInfos Scaling Configuration Acr Registry Info[] Information about the Container Registry Enterprise Edition instance. See
acr_registry_infos
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
.- auto
Create booleanEip Whether create eip automatically.
- container
Group stringName The name of the container group.
- containers
Eci
Scaling Configuration Container[] The list of containers. See
containers
below for details.- cpu number
The amount of CPU resources allocated to the container group.
- 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://.
- dns
Policy string dns policy of contain group.
- egress
Bandwidth number egress bandwidth.
- eip
Bandwidth number Eip bandwidth.
- enable
Sls boolean Enable sls log service.
- force
Delete boolean The eci scaling configuration will be deleted forcibly with deleting its scaling group. Default to false.
- host
Aliases EciScaling Configuration Host Alias[] HostAliases. See
host_aliases
below.- host
Name string Hostname of an ECI instance.
- image
Registry EciCredentials Scaling Configuration Image Registry Credential[] The image registry credential. See
image_registry_credentials
below for details.- ingress
Bandwidth number Ingress bandwidth.
- init
Containers EciScaling Configuration Init Container[] The list of initContainers. See
init_containers
below for details.- memory number
The amount of memory resources allocated to the container group.
- ram
Role stringName The RAM role that the container group assumes. ECI and ECS share the same RAM role.
- resource
Group stringId ID of resource group.
- restart
Policy string The restart policy of the container group. Default to
Always
.- scaling
Configuration stringName Name shown for the scheduled task. which must contain 2-64 characters ( English or Chinese), starting with numbers, English letters or Chinese characters, and can contain number, underscores
_
, hypens-
, and decimal point.
. If this parameter value is not specified, the default value is EciScalingConfigurationId.- security
Group stringId ID of the security group used to create new instance. It is conflict with
security_group_ids
.- spot
Price numberLimit The maximum price hourly for spot instance.
- spot
Strategy string The spot strategy for a Pay-As-You-Go instance. Valid values:
NoSpot
,SpotAsPriceGo
,SpotWithPriceLimit
.- {[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
Eci
Scaling Configuration Volume[] The list of volumes. See
volumes
below for details.
- scaling_
group_ strid ID of the scaling group of a eci scaling configuration.
- acr_
registry_ Sequence[Eciinfos Scaling Configuration Acr Registry Info Args] Information about the Container Registry Enterprise Edition instance. See
acr_registry_infos
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_ booleip Whether create eip automatically.
- container_
group_ strname The name of the container group.
- containers
Sequence[Eci
Scaling Configuration Container Args] The list of containers. See
containers
below for details.- cpu float
The amount of CPU resources allocated to the container group.
- 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[EciScaling Configuration Host Alias Args] HostAliases. See
host_aliases
below.- host_
name str Hostname of an ECI instance.
- image_
registry_ Sequence[Ecicredentials Scaling Configuration Image Registry Credential Args] The image registry credential. See
image_registry_credentials
below for details.- ingress_
bandwidth int Ingress bandwidth.
- init_
containers Sequence[EciScaling Configuration Init Container Args] The list of initContainers. See
init_containers
below for details.- memory float
The amount of memory resources allocated to the container group.
- ram_
role_ strname The RAM role that the container group assumes. ECI and ECS share the same RAM role.
- resource_
group_ strid ID of resource group.
- restart_
policy str The restart policy of the container group. Default to
Always
.- scaling_
configuration_ strname Name shown for the scheduled task. which must contain 2-64 characters ( English or Chinese), starting with numbers, English letters or Chinese characters, and can contain number, underscores
_
, hypens-
, and decimal point.
. If this parameter value is not specified, the default value is EciScalingConfigurationId.- security_
group_ strid ID of the security group used to create new instance. It is conflict with
security_group_ids
.- spot_
price_ floatlimit 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
.- 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[Eci
Scaling Configuration Volume Args] The list of volumes. See
volumes
below for details.
- scaling
Group StringId ID of the scaling group of a eci scaling configuration.
- acr
Registry List<Property Map>Infos Information about the Container Registry Enterprise Edition instance. See
acr_registry_infos
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
.- auto
Create BooleanEip Whether create eip automatically.
- container
Group StringName The name of the container group.
- containers List<Property Map>
The list of containers. See
containers
below for details.- cpu Number
The amount of CPU resources allocated to the container group.
- 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://.
- dns
Policy String dns policy of contain group.
- egress
Bandwidth Number egress bandwidth.
- eip
Bandwidth Number Eip bandwidth.
- enable
Sls Boolean Enable sls log service.
- force
Delete Boolean The eci scaling configuration will be deleted forcibly with deleting its scaling group. Default to false.
- host
Aliases List<Property Map> HostAliases. See
host_aliases
below.- host
Name String Hostname of an ECI instance.
- image
Registry List<Property Map>Credentials The image registry credential. See
image_registry_credentials
below for details.- ingress
Bandwidth Number Ingress bandwidth.
- init
Containers List<Property Map> The list of initContainers. See
init_containers
below for details.- memory Number
The amount of memory resources allocated to the container group.
- ram
Role StringName The RAM role that the container group assumes. ECI and ECS share the same RAM role.
- resource
Group StringId ID of resource group.
- restart
Policy String The restart policy of the container group. Default to
Always
.- scaling
Configuration StringName Name shown for the scheduled task. which must contain 2-64 characters ( English or Chinese), starting with numbers, English letters or Chinese characters, and can contain number, underscores
_
, hypens-
, and decimal point.
. If this parameter value is not specified, the default value is EciScalingConfigurationId.- security
Group StringId ID of the security group used to create new instance. It is conflict with
security_group_ids
.- spot
Price NumberLimit The maximum price hourly for spot instance.
- spot
Strategy String The spot strategy for a Pay-As-You-Go instance. Valid values:
NoSpot
,SpotAsPriceGo
,SpotWithPriceLimit
.- 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
volumes
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,
acr_registry_infos: Optional[Sequence[EciScalingConfigurationAcrRegistryInfoArgs]] = 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.
- Acr
Registry List<Pulumi.Infos Ali Cloud. Ess. Inputs. Eci Scaling Configuration Acr Registry Info> Information about the Container Registry Enterprise Edition instance. See
acr_registry_infos
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 boolEip Whether create eip automatically.
- Container
Group stringName The name of the container group.
- Containers
List<Pulumi.
Ali Cloud. Ess. Inputs. Eci Scaling Configuration Container> The list of containers. See
containers
below for details.- Cpu double
The amount of CPU resources allocated to the container group.
- 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://.
- Dns
Policy string 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 List<Pulumi.Ali Cloud. Ess. Inputs. Eci Scaling Configuration Host Alias> HostAliases. See
host_aliases
below.- Host
Name string Hostname of an ECI instance.
- Image
Registry List<Pulumi.Credentials Ali Cloud. Ess. Inputs. Eci Scaling Configuration Image Registry Credential> The image registry credential. See
image_registry_credentials
below for details.- Ingress
Bandwidth int Ingress bandwidth.
- Init
Containers List<Pulumi.Ali Cloud. Ess. Inputs. Eci Scaling Configuration Init Container> The list of initContainers. See
init_containers
below for details.- Memory double
The amount of memory resources allocated to the container group.
- Ram
Role stringName The RAM role that the container group assumes. ECI and ECS share the same RAM role.
- Resource
Group stringId ID of resource group.
- Restart
Policy string The restart policy of the container group. Default to
Always
.- Scaling
Configuration stringName Name shown for the scheduled task. which must contain 2-64 characters ( English or Chinese), starting with numbers, English letters or Chinese characters, and can contain number, underscores
_
, hypens-
, and decimal point.
. If this parameter value is not specified, the default value is EciScalingConfigurationId.- Scaling
Group stringId ID of the scaling group of a eci scaling configuration.
- Security
Group stringId ID of the security group used to create new instance. It is conflict with
security_group_ids
.- Spot
Price doubleLimit The maximum price hourly for spot instance.
- Spot
Strategy string The spot strategy for a Pay-As-You-Go instance. Valid values:
NoSpot
,SpotAsPriceGo
,SpotWithPriceLimit
.- 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.
Ali Cloud. Ess. Inputs. Eci Scaling Configuration Volume> The list of volumes. See
volumes
below for details.
- Acr
Registry []EciInfos Scaling Configuration Acr Registry Info Args Information about the Container Registry Enterprise Edition instance. See
acr_registry_infos
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 boolEip Whether create eip automatically.
- Container
Group stringName The name of the container group.
- Containers
[]Eci
Scaling Configuration Container Args The list of containers. See
containers
below for details.- Cpu float64
The amount of CPU resources allocated to the container group.
- 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://.
- Dns
Policy string 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 []EciScaling Configuration Host Alias Args HostAliases. See
host_aliases
below.- Host
Name string Hostname of an ECI instance.
- Image
Registry []EciCredentials Scaling Configuration Image Registry Credential Args The image registry credential. See
image_registry_credentials
below for details.- Ingress
Bandwidth int Ingress bandwidth.
- Init
Containers []EciScaling Configuration Init Container Args The list of initContainers. See
init_containers
below for details.- Memory float64
The amount of memory resources allocated to the container group.
- Ram
Role stringName The RAM role that the container group assumes. ECI and ECS share the same RAM role.
- Resource
Group stringId ID of resource group.
- Restart
Policy string The restart policy of the container group. Default to
Always
.- Scaling
Configuration stringName Name shown for the scheduled task. which must contain 2-64 characters ( English or Chinese), starting with numbers, English letters or Chinese characters, and can contain number, underscores
_
, hypens-
, and decimal point.
. If this parameter value is not specified, the default value is EciScalingConfigurationId.- Scaling
Group stringId ID of the scaling group of a eci scaling configuration.
- Security
Group stringId ID of the security group used to create new instance. It is conflict with
security_group_ids
.- Spot
Price float64Limit The maximum price hourly for spot instance.
- Spot
Strategy string The spot strategy for a Pay-As-You-Go instance. Valid values:
NoSpot
,SpotAsPriceGo
,SpotWithPriceLimit
.- 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
[]Eci
Scaling Configuration Volume Args The list of volumes. See
volumes
below for details.
- acr
Registry List<EciInfos Scaling Configuration Acr Registry Info> Information about the Container Registry Enterprise Edition instance. See
acr_registry_infos
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
.- auto
Create BooleanEip Whether create eip automatically.
- container
Group StringName The name of the container group.
- containers
List<Eci
Scaling Configuration Container> The list of containers. See
containers
below for details.- cpu Double
The amount of CPU resources allocated to the container group.
- 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://.
- dns
Policy String dns policy of contain group.
- egress
Bandwidth Integer egress bandwidth.
- eip
Bandwidth Integer Eip bandwidth.
- enable
Sls Boolean Enable sls log service.
- force
Delete Boolean The eci scaling configuration will be deleted forcibly with deleting its scaling group. Default to false.
- host
Aliases List<EciScaling Configuration Host Alias> HostAliases. See
host_aliases
below.- host
Name String Hostname of an ECI instance.
- image
Registry List<EciCredentials Scaling Configuration Image Registry Credential> The image registry credential. See
image_registry_credentials
below for details.- ingress
Bandwidth Integer Ingress bandwidth.
- init
Containers List<EciScaling Configuration Init Container> The list of initContainers. See
init_containers
below for details.- memory Double
The amount of memory resources allocated to the container group.
- ram
Role StringName The RAM role that the container group assumes. ECI and ECS share the same RAM role.
- resource
Group StringId ID of resource group.
- restart
Policy String The restart policy of the container group. Default to
Always
.- scaling
Configuration StringName Name shown for the scheduled task. which must contain 2-64 characters ( English or Chinese), starting with numbers, English letters or Chinese characters, and can contain number, underscores
_
, hypens-
, and decimal point.
. If this parameter value is not specified, the default value is EciScalingConfigurationId.- scaling
Group StringId ID of the scaling group of a eci scaling configuration.
- security
Group StringId ID of the security group used to create new instance. It is conflict with
security_group_ids
.- spot
Price DoubleLimit The maximum price hourly for spot instance.
- spot
Strategy String The spot strategy for a Pay-As-You-Go instance. Valid values:
NoSpot
,SpotAsPriceGo
,SpotWithPriceLimit
.- 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<Eci
Scaling Configuration Volume> The list of volumes. See
volumes
below for details.
- acr
Registry EciInfos Scaling Configuration Acr Registry Info[] Information about the Container Registry Enterprise Edition instance. See
acr_registry_infos
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
.- auto
Create booleanEip Whether create eip automatically.
- container
Group stringName The name of the container group.
- containers
Eci
Scaling Configuration Container[] The list of containers. See
containers
below for details.- cpu number
The amount of CPU resources allocated to the container group.
- 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://.
- dns
Policy string dns policy of contain group.
- egress
Bandwidth number egress bandwidth.
- eip
Bandwidth number Eip bandwidth.
- enable
Sls boolean Enable sls log service.
- force
Delete boolean The eci scaling configuration will be deleted forcibly with deleting its scaling group. Default to false.
- host
Aliases EciScaling Configuration Host Alias[] HostAliases. See
host_aliases
below.- host
Name string Hostname of an ECI instance.
- image
Registry EciCredentials Scaling Configuration Image Registry Credential[] The image registry credential. See
image_registry_credentials
below for details.- ingress
Bandwidth number Ingress bandwidth.
- init
Containers EciScaling Configuration Init Container[] The list of initContainers. See
init_containers
below for details.- memory number
The amount of memory resources allocated to the container group.
- ram
Role stringName The RAM role that the container group assumes. ECI and ECS share the same RAM role.
- resource
Group stringId ID of resource group.
- restart
Policy string The restart policy of the container group. Default to
Always
.- scaling
Configuration stringName Name shown for the scheduled task. which must contain 2-64 characters ( English or Chinese), starting with numbers, English letters or Chinese characters, and can contain number, underscores
_
, hypens-
, and decimal point.
. If this parameter value is not specified, the default value is EciScalingConfigurationId.- scaling
Group stringId ID of the scaling group of a eci scaling configuration.
- security
Group stringId ID of the security group used to create new instance. It is conflict with
security_group_ids
.- spot
Price numberLimit The maximum price hourly for spot instance.
- spot
Strategy string The spot strategy for a Pay-As-You-Go instance. Valid values:
NoSpot
,SpotAsPriceGo
,SpotWithPriceLimit
.- {[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
Eci
Scaling Configuration Volume[] The list of volumes. See
volumes
below for details.
- acr_
registry_ Sequence[Eciinfos Scaling Configuration Acr Registry Info Args] Information about the Container Registry Enterprise Edition instance. See
acr_registry_infos
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_ booleip Whether create eip automatically.
- container_
group_ strname The name of the container group.
- containers
Sequence[Eci
Scaling Configuration Container Args] The list of containers. See
containers
below for details.- cpu float
The amount of CPU resources allocated to the container group.
- 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[EciScaling Configuration Host Alias Args] HostAliases. See
host_aliases
below.- host_
name str Hostname of an ECI instance.
- image_
registry_ Sequence[Ecicredentials Scaling Configuration Image Registry Credential Args] The image registry credential. See
image_registry_credentials
below for details.- ingress_
bandwidth int Ingress bandwidth.
- init_
containers Sequence[EciScaling Configuration Init Container Args] The list of initContainers. See
init_containers
below for details.- memory float
The amount of memory resources allocated to the container group.
- ram_
role_ strname The RAM role that the container group assumes. ECI and ECS share the same RAM role.
- resource_
group_ strid ID of resource group.
- restart_
policy str The restart policy of the container group. Default to
Always
.- scaling_
configuration_ strname Name shown for the scheduled task. which must contain 2-64 characters ( English or Chinese), starting with numbers, English letters or Chinese characters, and can contain number, underscores
_
, hypens-
, and decimal point.
. If this parameter value is not specified, the default value is EciScalingConfigurationId.- scaling_
group_ strid ID of the scaling group of a eci scaling configuration.
- security_
group_ strid ID of the security group used to create new instance. It is conflict with
security_group_ids
.- spot_
price_ floatlimit 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
.- 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[Eci
Scaling Configuration Volume Args] The list of volumes. See
volumes
below for details.
- acr
Registry List<Property Map>Infos Information about the Container Registry Enterprise Edition instance. See
acr_registry_infos
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
.- auto
Create BooleanEip Whether create eip automatically.
- container
Group StringName The name of the container group.
- containers List<Property Map>
The list of containers. See
containers
below for details.- cpu Number
The amount of CPU resources allocated to the container group.
- 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://.
- dns
Policy String dns policy of contain group.
- egress
Bandwidth Number egress bandwidth.
- eip
Bandwidth Number Eip bandwidth.
- enable
Sls Boolean Enable sls log service.
- force
Delete Boolean The eci scaling configuration will be deleted forcibly with deleting its scaling group. Default to false.
- host
Aliases List<Property Map> HostAliases. See
host_aliases
below.- host
Name String Hostname of an ECI instance.
- image
Registry List<Property Map>Credentials The image registry credential. See
image_registry_credentials
below for details.- ingress
Bandwidth Number Ingress bandwidth.
- init
Containers List<Property Map> The list of initContainers. See
init_containers
below for details.- memory Number
The amount of memory resources allocated to the container group.
- ram
Role StringName The RAM role that the container group assumes. ECI and ECS share the same RAM role.
- resource
Group StringId ID of resource group.
- restart
Policy String The restart policy of the container group. Default to
Always
.- scaling
Configuration StringName Name shown for the scheduled task. which must contain 2-64 characters ( English or Chinese), starting with numbers, English letters or Chinese characters, and can contain number, underscores
_
, hypens-
, and decimal point.
. If this parameter value is not specified, the default value is EciScalingConfigurationId.- scaling
Group StringId ID of the scaling group of a eci scaling configuration.
- security
Group StringId ID of the security group used to create new instance. It is conflict with
security_group_ids
.- spot
Price NumberLimit The maximum price hourly for spot instance.
- spot
Strategy String The spot strategy for a Pay-As-You-Go instance. Valid values:
NoSpot
,SpotAsPriceGo
,SpotWithPriceLimit
.- 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
volumes
below for details.
Supporting Types
EciScalingConfigurationAcrRegistryInfo, EciScalingConfigurationAcrRegistryInfoArgs
- Domains List<string>
Endpoint of Container Registry Enterprise Edition instance. By default, all endpoints of the Container Registry Enterprise Edition instance are displayed. It is required when
acr_registry_info
is configured.- Instance
Id string The ID of Container Registry Enterprise Edition instance. It is required when
acr_registry_info
is configured.- Instance
Name string The name of Container Registry Enterprise Edition instance. It is required when
acr_registry_info
is configured.- Region
Id string The region ID of Container Registry Enterprise Edition instance. It is required when
acr_registry_info
is configured.
- Domains []string
Endpoint of Container Registry Enterprise Edition instance. By default, all endpoints of the Container Registry Enterprise Edition instance are displayed. It is required when
acr_registry_info
is configured.- Instance
Id string The ID of Container Registry Enterprise Edition instance. It is required when
acr_registry_info
is configured.- Instance
Name string The name of Container Registry Enterprise Edition instance. It is required when
acr_registry_info
is configured.- Region
Id string The region ID of Container Registry Enterprise Edition instance. It is required when
acr_registry_info
is configured.
- domains List<String>
Endpoint of Container Registry Enterprise Edition instance. By default, all endpoints of the Container Registry Enterprise Edition instance are displayed. It is required when
acr_registry_info
is configured.- instance
Id String The ID of Container Registry Enterprise Edition instance. It is required when
acr_registry_info
is configured.- instance
Name String The name of Container Registry Enterprise Edition instance. It is required when
acr_registry_info
is configured.- region
Id String The region ID of Container Registry Enterprise Edition instance. It is required when
acr_registry_info
is configured.
- domains string[]
Endpoint of Container Registry Enterprise Edition instance. By default, all endpoints of the Container Registry Enterprise Edition instance are displayed. It is required when
acr_registry_info
is configured.- instance
Id string The ID of Container Registry Enterprise Edition instance. It is required when
acr_registry_info
is configured.- instance
Name string The name of Container Registry Enterprise Edition instance. It is required when
acr_registry_info
is configured.- region
Id string The region ID of Container Registry Enterprise Edition instance. It is required when
acr_registry_info
is configured.
- domains Sequence[str]
Endpoint of Container Registry Enterprise Edition instance. By default, all endpoints of the Container Registry Enterprise Edition instance are displayed. It is required when
acr_registry_info
is configured.- instance_
id str The ID of Container Registry Enterprise Edition instance. It is required when
acr_registry_info
is configured.- instance_
name str The name of Container Registry Enterprise Edition instance. It is required when
acr_registry_info
is configured.- region_
id str The region ID of Container Registry Enterprise Edition instance. It is required when
acr_registry_info
is configured.
- domains List<String>
Endpoint of Container Registry Enterprise Edition instance. By default, all endpoints of the Container Registry Enterprise Edition instance are displayed. It is required when
acr_registry_info
is configured.- instance
Id String The ID of Container Registry Enterprise Edition instance. It is required when
acr_registry_info
is configured.- instance
Name String The name of Container Registry Enterprise Edition instance. It is required when
acr_registry_info
is configured.- region
Id String The region ID of Container Registry Enterprise Edition instance. It is required when
acr_registry_info
is configured.
EciScalingConfigurationContainer, EciScalingConfigurationContainerArgs
- 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.
- Environment
Vars List<Pulumi.Ali Cloud. Ess. Inputs. Eci Scaling Configuration Container Environment Var> The structure of environmentVars. See
environment_vars
below for details.- Gpu int
The number GPUs.
- Image string
The image of the container.
- Image
Pull stringPolicy The restart policy of the image.
- Liveness
Probe List<string>Exec Commands Commands that you want to run in containers when you use the CLI to perform liveness probes.
- Liveness
Probe intFailure Threshold The minimum number of consecutive failures for the liveness probe to be considered failed after having been successful. Default value: 3.
- Liveness
Probe stringHttp Get Path The path to which HTTP GET requests are sent when you use HTTP requests to perform liveness probes.
- Liveness
Probe intHttp Get Port The port to which HTTP GET requests are sent when you use HTTP requests to perform liveness probes.
- Liveness
Probe stringHttp Get Scheme The protocol type of HTTP GET requests when you use HTTP requests for liveness probes.Valid values:HTTP and HTTPS.
- Liveness
Probe intInitial Delay Seconds The number of seconds after container has started before liveness probes are initiated.
- Liveness
Probe intPeriod Seconds The interval at which the liveness probe is performed. Unit: seconds. Default value: 10. Minimum value: 1.
- Liveness
Probe intSuccess Threshold The minimum number of consecutive successes for the liveness probe to be considered successful after having failed. Default value: 1. Set the value to 1.
- Liveness
Probe intTcp Socket Port The port detected by TCP sockets when you use TCP sockets to perform liveness probes.
- Liveness
Probe intTimeout Seconds The timeout period for the liveness probe. Unit: seconds. Default value: 1. Minimum value: 1.
- Memory double
The amount of memory resources allocated to the container.
- Name string
The name of the mounted volume.
- Ports
List<Pulumi.
Ali Cloud. Ess. Inputs. Eci Scaling Configuration Container Port> The structure of port. See
ports
below for details.- Readiness
Probe List<string>Exec Commands Commands that you want to run in containers when you use the CLI to perform readiness probes.
- Readiness
Probe intFailure Threshold The minimum number of consecutive failures for the readiness probe to be considered failed after having been successful. Default value: 3.
- Readiness
Probe stringHttp Get Path The path to which HTTP GET requests are sent when you use HTTP requests to perform readiness probes.
- Readiness
Probe intHttp Get Port The port to which HTTP GET requests are sent when you use HTTP requests to perform readiness probes.
- Readiness
Probe stringHttp Get Scheme The protocol type of HTTP GET requests when you use HTTP requests for readiness probes. Valid values: HTTP and HTTPS.
- Readiness
Probe intInitial Delay Seconds The number of seconds after container N has started before readiness probes are initiated.
- Readiness
Probe intPeriod Seconds The interval at which the readiness probe is performed. Unit: seconds. Default value: 10. Minimum value: 1.
- Readiness
Probe intSuccess Threshold The minimum number of consecutive successes for the readiness probe to be considered successful after having failed. Default value: 1. Set the value to 1.
- Readiness
Probe intTcp Socket Port The port detected by Transmission Control Protocol (TCP) sockets when you use TCP sockets to perform readiness probes.
- Readiness
Probe intTimeout Seconds The timeout period for the readiness probe. Unit: seconds. Default value: 1. Minimum value: 1.
- Volume
Mounts List<Pulumi.Ali Cloud. Ess. Inputs. Eci Scaling Configuration Container Volume Mount> The structure of volumeMounts. See
volume_mounts
below for details.- Working
Dir 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.
- Environment
Vars []EciScaling Configuration Container Environment Var The structure of environmentVars. See
environment_vars
below for details.- Gpu int
The number GPUs.
- Image string
The image of the container.
- Image
Pull stringPolicy The restart policy of the image.
- Liveness
Probe []stringExec Commands Commands that you want to run in containers when you use the CLI to perform liveness probes.
- Liveness
Probe intFailure Threshold The minimum number of consecutive failures for the liveness probe to be considered failed after having been successful. Default value: 3.
- Liveness
Probe stringHttp Get Path The path to which HTTP GET requests are sent when you use HTTP requests to perform liveness probes.
- Liveness
Probe intHttp Get Port The port to which HTTP GET requests are sent when you use HTTP requests to perform liveness probes.
- Liveness
Probe stringHttp Get Scheme The protocol type of HTTP GET requests when you use HTTP requests for liveness probes.Valid values:HTTP and HTTPS.
- Liveness
Probe intInitial Delay Seconds The number of seconds after container has started before liveness probes are initiated.
- Liveness
Probe intPeriod Seconds The interval at which the liveness probe is performed. Unit: seconds. Default value: 10. Minimum value: 1.
- Liveness
Probe intSuccess Threshold The minimum number of consecutive successes for the liveness probe to be considered successful after having failed. Default value: 1. Set the value to 1.
- Liveness
Probe intTcp Socket Port The port detected by TCP sockets when you use TCP sockets to perform liveness probes.
- Liveness
Probe intTimeout Seconds The timeout period for the liveness probe. Unit: seconds. Default value: 1. Minimum value: 1.
- Memory float64
The amount of memory resources allocated to the container.
- Name string
The name of the mounted volume.
- Ports
[]Eci
Scaling Configuration Container Port The structure of port. See
ports
below for details.- Readiness
Probe []stringExec Commands Commands that you want to run in containers when you use the CLI to perform readiness probes.
- Readiness
Probe intFailure Threshold The minimum number of consecutive failures for the readiness probe to be considered failed after having been successful. Default value: 3.
- Readiness
Probe stringHttp Get Path The path to which HTTP GET requests are sent when you use HTTP requests to perform readiness probes.
- Readiness
Probe intHttp Get Port The port to which HTTP GET requests are sent when you use HTTP requests to perform readiness probes.
- Readiness
Probe stringHttp Get Scheme The protocol type of HTTP GET requests when you use HTTP requests for readiness probes. Valid values: HTTP and HTTPS.
- Readiness
Probe intInitial Delay Seconds The number of seconds after container N has started before readiness probes are initiated.
- Readiness
Probe intPeriod Seconds The interval at which the readiness probe is performed. Unit: seconds. Default value: 10. Minimum value: 1.
- Readiness
Probe intSuccess Threshold The minimum number of consecutive successes for the readiness probe to be considered successful after having failed. Default value: 1. Set the value to 1.
- Readiness
Probe intTcp Socket Port The port detected by Transmission Control Protocol (TCP) sockets when you use TCP sockets to perform readiness probes.
- Readiness
Probe intTimeout Seconds The timeout period for the readiness probe. Unit: seconds. Default value: 1. Minimum value: 1.
- Volume
Mounts []EciScaling Configuration Container Volume Mount The structure of volumeMounts. See
volume_mounts
below for details.- Working
Dir 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.
- environment
Vars List<EciScaling Configuration Container Environment Var> The structure of environmentVars. See
environment_vars
below for details.- gpu Integer
The number GPUs.
- image String
The image of the container.
- image
Pull StringPolicy The restart policy of the image.
- liveness
Probe List<String>Exec Commands Commands that you want to run in containers when you use the CLI to perform liveness probes.
- liveness
Probe IntegerFailure Threshold The minimum number of consecutive failures for the liveness probe to be considered failed after having been successful. Default value: 3.
- liveness
Probe StringHttp Get Path The path to which HTTP GET requests are sent when you use HTTP requests to perform liveness probes.
- liveness
Probe IntegerHttp Get Port The port to which HTTP GET requests are sent when you use HTTP requests to perform liveness probes.
- liveness
Probe StringHttp Get Scheme The protocol type of HTTP GET requests when you use HTTP requests for liveness probes.Valid values:HTTP and HTTPS.
- liveness
Probe IntegerInitial Delay Seconds The number of seconds after container has started before liveness probes are initiated.
- liveness
Probe IntegerPeriod Seconds The interval at which the liveness probe is performed. Unit: seconds. Default value: 10. Minimum value: 1.
- liveness
Probe IntegerSuccess Threshold The minimum number of consecutive successes for the liveness probe to be considered successful after having failed. Default value: 1. Set the value to 1.
- liveness
Probe IntegerTcp Socket Port The port detected by TCP sockets when you use TCP sockets to perform liveness probes.
- liveness
Probe IntegerTimeout Seconds The timeout period for the liveness probe. Unit: seconds. Default value: 1. Minimum value: 1.
- memory Double
The amount of memory resources allocated to the container.
- name String
The name of the mounted volume.
- ports
List<Eci
Scaling Configuration Container Port> The structure of port. See
ports
below for details.- readiness
Probe List<String>Exec Commands Commands that you want to run in containers when you use the CLI to perform readiness probes.
- readiness
Probe IntegerFailure Threshold The minimum number of consecutive failures for the readiness probe to be considered failed after having been successful. Default value: 3.
- readiness
Probe StringHttp Get Path The path to which HTTP GET requests are sent when you use HTTP requests to perform readiness probes.
- readiness
Probe IntegerHttp Get Port The port to which HTTP GET requests are sent when you use HTTP requests to perform readiness probes.
- readiness
Probe StringHttp Get Scheme The protocol type of HTTP GET requests when you use HTTP requests for readiness probes. Valid values: HTTP and HTTPS.
- readiness
Probe IntegerInitial Delay Seconds The number of seconds after container N has started before readiness probes are initiated.
- readiness
Probe IntegerPeriod Seconds The interval at which the readiness probe is performed. Unit: seconds. Default value: 10. Minimum value: 1.
- readiness
Probe IntegerSuccess Threshold The minimum number of consecutive successes for the readiness probe to be considered successful after having failed. Default value: 1. Set the value to 1.
- readiness
Probe IntegerTcp Socket Port The port detected by Transmission Control Protocol (TCP) sockets when you use TCP sockets to perform readiness probes.
- readiness
Probe IntegerTimeout Seconds The timeout period for the readiness probe. Unit: seconds. Default value: 1. Minimum value: 1.
- volume
Mounts List<EciScaling Configuration Container Volume Mount> The structure of volumeMounts. See
volume_mounts
below for details.- working
Dir 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.
- environment
Vars EciScaling Configuration Container Environment Var[] The structure of environmentVars. See
environment_vars
below for details.- gpu number
The number GPUs.
- image string
The image of the container.
- image
Pull stringPolicy The restart policy of the image.
- liveness
Probe string[]Exec Commands Commands that you want to run in containers when you use the CLI to perform liveness probes.
- liveness
Probe numberFailure Threshold The minimum number of consecutive failures for the liveness probe to be considered failed after having been successful. Default value: 3.
- liveness
Probe stringHttp Get Path The path to which HTTP GET requests are sent when you use HTTP requests to perform liveness probes.
- liveness
Probe numberHttp Get Port The port to which HTTP GET requests are sent when you use HTTP requests to perform liveness probes.
- liveness
Probe stringHttp Get Scheme The protocol type of HTTP GET requests when you use HTTP requests for liveness probes.Valid values:HTTP and HTTPS.
- liveness
Probe numberInitial Delay Seconds The number of seconds after container has started before liveness probes are initiated.
- liveness
Probe numberPeriod Seconds The interval at which the liveness probe is performed. Unit: seconds. Default value: 10. Minimum value: 1.
- liveness
Probe numberSuccess Threshold The minimum number of consecutive successes for the liveness probe to be considered successful after having failed. Default value: 1. Set the value to 1.
- liveness
Probe numberTcp Socket Port The port detected by TCP sockets when you use TCP sockets to perform liveness probes.
- liveness
Probe numberTimeout Seconds The timeout period for the liveness probe. Unit: seconds. Default value: 1. Minimum value: 1.
- memory number
The amount of memory resources allocated to the container.
- name string
The name of the mounted volume.
- ports
Eci
Scaling Configuration Container Port[] The structure of port. See
ports
below for details.- readiness
Probe string[]Exec Commands Commands that you want to run in containers when you use the CLI to perform readiness probes.
- readiness
Probe numberFailure Threshold The minimum number of consecutive failures for the readiness probe to be considered failed after having been successful. Default value: 3.
- readiness
Probe stringHttp Get Path The path to which HTTP GET requests are sent when you use HTTP requests to perform readiness probes.
- readiness
Probe numberHttp Get Port The port to which HTTP GET requests are sent when you use HTTP requests to perform readiness probes.
- readiness
Probe stringHttp Get Scheme The protocol type of HTTP GET requests when you use HTTP requests for readiness probes. Valid values: HTTP and HTTPS.
- readiness
Probe numberInitial Delay Seconds The number of seconds after container N has started before readiness probes are initiated.
- readiness
Probe numberPeriod Seconds The interval at which the readiness probe is performed. Unit: seconds. Default value: 10. Minimum value: 1.
- readiness
Probe numberSuccess Threshold The minimum number of consecutive successes for the readiness probe to be considered successful after having failed. Default value: 1. Set the value to 1.
- readiness
Probe numberTcp Socket Port The port detected by Transmission Control Protocol (TCP) sockets when you use TCP sockets to perform readiness probes.
- readiness
Probe numberTimeout Seconds The timeout period for the readiness probe. Unit: seconds. Default value: 1. Minimum value: 1.
- volume
Mounts EciScaling Configuration Container Volume Mount[] The structure of volumeMounts. See
volume_mounts
below for details.- working
Dir 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[EciScaling Configuration Container Environment Var] The structure of environmentVars. See
environment_vars
below for details.- gpu int
The number GPUs.
- image str
The image of the container.
- image_
pull_ strpolicy The restart policy of the image.
- liveness_
probe_ Sequence[str]exec_ commands Commands that you want to run in containers when you use the CLI to perform liveness probes.
- liveness_
probe_ intfailure_ threshold The minimum number of consecutive failures for the liveness probe to be considered failed after having been successful. Default value: 3.
- liveness_
probe_ strhttp_ get_ path The path to which HTTP GET requests are sent when you use HTTP requests to perform liveness probes.
- liveness_
probe_ inthttp_ get_ port The port to which HTTP GET requests are sent when you use HTTP requests to perform liveness probes.
- liveness_
probe_ strhttp_ get_ scheme The protocol type of HTTP GET requests when you use HTTP requests for liveness probes.Valid values:HTTP and HTTPS.
- liveness_
probe_ intinitial_ delay_ seconds The number of seconds after container has started before liveness probes are initiated.
- liveness_
probe_ intperiod_ seconds The interval at which the liveness probe is performed. Unit: seconds. Default value: 10. Minimum value: 1.
- liveness_
probe_ intsuccess_ threshold The minimum number of consecutive successes for the liveness probe to be considered successful after having failed. Default value: 1. Set the value to 1.
- liveness_
probe_ inttcp_ socket_ port The port detected by TCP sockets when you use TCP sockets to perform liveness probes.
- liveness_
probe_ inttimeout_ seconds The timeout period for the liveness probe. Unit: seconds. Default value: 1. Minimum value: 1.
- memory float
The amount of memory resources allocated to the container.
- name str
The name of the mounted volume.
- ports
Sequence[Eci
Scaling Configuration Container Port] The structure of port. See
ports
below for details.- readiness_
probe_ Sequence[str]exec_ commands Commands that you want to run in containers when you use the CLI to perform readiness probes.
- readiness_
probe_ intfailure_ threshold The minimum number of consecutive failures for the readiness probe to be considered failed after having been successful. Default value: 3.
- readiness_
probe_ strhttp_ get_ path The path to which HTTP GET requests are sent when you use HTTP requests to perform readiness probes.
- readiness_
probe_ inthttp_ get_ port The port to which HTTP GET requests are sent when you use HTTP requests to perform readiness probes.
- readiness_
probe_ strhttp_ get_ scheme The protocol type of HTTP GET requests when you use HTTP requests for readiness probes. Valid values: HTTP and HTTPS.
- readiness_
probe_ intinitial_ delay_ seconds The number of seconds after container N has started before readiness probes are initiated.
- readiness_
probe_ intperiod_ seconds The interval at which the readiness probe is performed. Unit: seconds. Default value: 10. Minimum value: 1.
- readiness_
probe_ intsuccess_ threshold The minimum number of consecutive successes for the readiness probe to be considered successful after having failed. Default value: 1. Set the value to 1.
- readiness_
probe_ inttcp_ socket_ port The port detected by Transmission Control Protocol (TCP) sockets when you use TCP sockets to perform readiness probes.
- readiness_
probe_ inttimeout_ seconds The timeout period for the readiness probe. Unit: seconds. Default value: 1. Minimum value: 1.
- volume_
mounts Sequence[EciScaling Configuration Container Volume Mount] The structure of volumeMounts. See
volume_mounts
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.
- environment
Vars List<Property Map> The structure of environmentVars. See
environment_vars
below for details.- gpu Number
The number GPUs.
- image String
The image of the container.
- image
Pull StringPolicy The restart policy of the image.
- liveness
Probe List<String>Exec Commands Commands that you want to run in containers when you use the CLI to perform liveness probes.
- liveness
Probe NumberFailure Threshold The minimum number of consecutive failures for the liveness probe to be considered failed after having been successful. Default value: 3.
- liveness
Probe StringHttp Get Path The path to which HTTP GET requests are sent when you use HTTP requests to perform liveness probes.
- liveness
Probe NumberHttp Get Port The port to which HTTP GET requests are sent when you use HTTP requests to perform liveness probes.
- liveness
Probe StringHttp Get Scheme The protocol type of HTTP GET requests when you use HTTP requests for liveness probes.Valid values:HTTP and HTTPS.
- liveness
Probe NumberInitial Delay Seconds The number of seconds after container has started before liveness probes are initiated.
- liveness
Probe NumberPeriod Seconds The interval at which the liveness probe is performed. Unit: seconds. Default value: 10. Minimum value: 1.
- liveness
Probe NumberSuccess Threshold The minimum number of consecutive successes for the liveness probe to be considered successful after having failed. Default value: 1. Set the value to 1.
- liveness
Probe NumberTcp Socket Port The port detected by TCP sockets when you use TCP sockets to perform liveness probes.
- liveness
Probe NumberTimeout Seconds The timeout period for the liveness probe. Unit: seconds. Default value: 1. Minimum value: 1.
- 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
ports
below for details.- readiness
Probe List<String>Exec Commands Commands that you want to run in containers when you use the CLI to perform readiness probes.
- readiness
Probe NumberFailure Threshold The minimum number of consecutive failures for the readiness probe to be considered failed after having been successful. Default value: 3.
- readiness
Probe StringHttp Get Path The path to which HTTP GET requests are sent when you use HTTP requests to perform readiness probes.
- readiness
Probe NumberHttp Get Port The port to which HTTP GET requests are sent when you use HTTP requests to perform readiness probes.
- readiness
Probe StringHttp Get Scheme The protocol type of HTTP GET requests when you use HTTP requests for readiness probes. Valid values: HTTP and HTTPS.
- readiness
Probe NumberInitial Delay Seconds The number of seconds after container N has started before readiness probes are initiated.
- readiness
Probe NumberPeriod Seconds The interval at which the readiness probe is performed. Unit: seconds. Default value: 10. Minimum value: 1.
- readiness
Probe NumberSuccess Threshold The minimum number of consecutive successes for the readiness probe to be considered successful after having failed. Default value: 1. Set the value to 1.
- readiness
Probe NumberTcp Socket Port The port detected by Transmission Control Protocol (TCP) sockets when you use TCP sockets to perform readiness probes.
- readiness
Probe NumberTimeout Seconds The timeout period for the readiness probe. Unit: seconds. Default value: 1. Minimum value: 1.
- volume
Mounts List<Property Map> The structure of volumeMounts. See
volume_mounts
below for details.- working
Dir String The working directory of the container.
EciScalingConfigurationContainerEnvironmentVar, EciScalingConfigurationContainerEnvironmentVarArgs
- 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. 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. 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. 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. 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. 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. 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, EciScalingConfigurationContainerPortArgs
EciScalingConfigurationContainerVolumeMount, EciScalingConfigurationContainerVolumeMountArgs
- mount_
path str The directory of the mounted volume. Data under this directory will be overwritten by the data in the volume. data in the volume.
- name str
The name of the volume.
- read_
only bool Default to
false
.
EciScalingConfigurationHostAlias, EciScalingConfigurationHostAliasArgs
EciScalingConfigurationImageRegistryCredential, EciScalingConfigurationImageRegistryCredentialArgs
- 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
The username used to log on to the image repository. It is required when
image_registry_credential
is configured.
- 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
The username used to log on to the image repository. It is required when
image_registry_credential
is configured.
- 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
The username used to log on to the image repository. It is required when
image_registry_credential
is configured.
- 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
The username used to log on to the image repository. It is required when
image_registry_credential
is configured.
- 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
The username used to log on to the image repository. It is required when
image_registry_credential
is configured.
- 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
The username used to log on to the image repository. It is required when
image_registry_credential
is configured.
EciScalingConfigurationInitContainer, EciScalingConfigurationInitContainerArgs
- 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.
- Environment
Vars List<Pulumi.Ali Cloud. Ess. Inputs. Eci Scaling Configuration Init Container Environment Var> The structure of environmentVars. See
environment_vars
below for details.- Gpu int
The number GPUs.
- Image string
The image of the container.
- Image
Pull stringPolicy 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.
Ali Cloud. Ess. Inputs. Eci Scaling Configuration Init Container Port> The structure of port. See
ports
below for details.- Volume
Mounts List<Pulumi.Ali Cloud. Ess. Inputs. Eci Scaling Configuration Init Container Volume Mount> The structure of volumeMounts. See
volume_mounts
below for details.- Working
Dir 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.
- Environment
Vars []EciScaling Configuration Init Container Environment Var The structure of environmentVars. See
environment_vars
below for details.- Gpu int
The number GPUs.
- Image string
The image of the container.
- Image
Pull stringPolicy 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
[]Eci
Scaling Configuration Init Container Port The structure of port. See
ports
below for details.- Volume
Mounts []EciScaling Configuration Init Container Volume Mount The structure of volumeMounts. See
volume_mounts
below for details.- Working
Dir 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.
- environment
Vars List<EciScaling Configuration Init Container Environment Var> The structure of environmentVars. See
environment_vars
below for details.- gpu Integer
The number GPUs.
- image String
The image of the container.
- image
Pull StringPolicy 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<Eci
Scaling Configuration Init Container Port> The structure of port. See
ports
below for details.- volume
Mounts List<EciScaling Configuration Init Container Volume Mount> The structure of volumeMounts. See
volume_mounts
below for details.- working
Dir 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.
- environment
Vars EciScaling Configuration Init Container Environment Var[] The structure of environmentVars. See
environment_vars
below for details.- gpu number
The number GPUs.
- image string
The image of the container.
- image
Pull stringPolicy 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
Eci
Scaling Configuration Init Container Port[] The structure of port. See
ports
below for details.- volume
Mounts EciScaling Configuration Init Container Volume Mount[] The structure of volumeMounts. See
volume_mounts
below for details.- working
Dir 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[EciScaling Configuration Init Container Environment Var] The structure of environmentVars. See
environment_vars
below for details.- gpu int
The number GPUs.
- image str
The image of the container.
- image_
pull_ strpolicy 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[Eci
Scaling Configuration Init Container Port] The structure of port. See
ports
below for details.- volume_
mounts Sequence[EciScaling Configuration Init Container Volume Mount] The structure of volumeMounts. See
volume_mounts
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.
- environment
Vars List<Property Map> The structure of environmentVars. See
environment_vars
below for details.- gpu Number
The number GPUs.
- image String
The image of the container.
- image
Pull StringPolicy 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
ports
below for details.- volume
Mounts List<Property Map> The structure of volumeMounts. See
volume_mounts
below for details.- working
Dir String The working directory of the container.
EciScalingConfigurationInitContainerEnvironmentVar, EciScalingConfigurationInitContainerEnvironmentVarArgs
- 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. 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. 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. 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. 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. 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. 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, EciScalingConfigurationInitContainerPortArgs
EciScalingConfigurationInitContainerVolumeMount, EciScalingConfigurationInitContainerVolumeMountArgs
- mount_
path str The directory of the mounted volume. Data under this directory will be overwritten by the data in the volume. data in the volume.
- name str
The name of the volume.
- read_
only bool Default to
false
.
EciScalingConfigurationVolume, EciScalingConfigurationVolumeArgs
- Config
File List<Pulumi.Volume Config File To Paths Ali Cloud. Ess. Inputs. Eci Scaling Configuration Volume Config File Volume Config File To Path> ConfigFileVolumeConfigFileToPaths. See
config_file_volume_config_file_to_paths
below for details.- Disk
Volume stringDisk Id The ID of DiskVolume.
- Disk
Volume intDisk Size The disk size of DiskVolume.
- Disk
Volume stringFs Type The system type of DiskVolume.
- Flex
Volume stringDriver The name of the FlexVolume driver.
- Flex
Volume stringFs Type The type of the mounted file system. The default value is determined by the script of FlexVolume.
- Flex
Volume stringOptions The list of FlexVolume objects. Each object is a key-value pair contained in a JSON string.
- Name string
The name of the volume.
- Nfs
Volume stringPath The path to the NFS volume.
- Nfs
Volume boolRead Only The nfs volume read only. Default to
false
.- Nfs
Volume stringServer The address of the NFS server.
NOTE: Every volume mounted must have a name and type attributes.
- Type string
The type of the volume.
- Config
File []EciVolume Config File To Paths Scaling Configuration Volume Config File Volume Config File To Path ConfigFileVolumeConfigFileToPaths. See
config_file_volume_config_file_to_paths
below for details.- Disk
Volume stringDisk Id The ID of DiskVolume.
- Disk
Volume intDisk Size The disk size of DiskVolume.
- Disk
Volume stringFs Type The system type of DiskVolume.
- Flex
Volume stringDriver The name of the FlexVolume driver.
- Flex
Volume stringFs Type The type of the mounted file system. The default value is determined by the script of FlexVolume.
- Flex
Volume stringOptions The list of FlexVolume objects. Each object is a key-value pair contained in a JSON string.
- Name string
The name of the volume.
- Nfs
Volume stringPath The path to the NFS volume.
- Nfs
Volume boolRead Only The nfs volume read only. Default to
false
.- Nfs
Volume stringServer The address of the NFS server.
NOTE: Every volume mounted must have a name and type attributes.
- Type string
The type of the volume.
- config
File List<EciVolume Config File To Paths Scaling Configuration Volume Config File Volume Config File To Path> ConfigFileVolumeConfigFileToPaths. See
config_file_volume_config_file_to_paths
below for details.- disk
Volume StringDisk Id The ID of DiskVolume.
- disk
Volume IntegerDisk Size The disk size of DiskVolume.
- disk
Volume StringFs Type The system type of DiskVolume.
- flex
Volume StringDriver The name of the FlexVolume driver.
- flex
Volume StringFs Type The type of the mounted file system. The default value is determined by the script of FlexVolume.
- flex
Volume StringOptions The list of FlexVolume objects. Each object is a key-value pair contained in a JSON string.
- name String
The name of the volume.
- nfs
Volume StringPath The path to the NFS volume.
- nfs
Volume BooleanRead Only The nfs volume read only. Default to
false
.- nfs
Volume StringServer The address of the NFS server.
NOTE: Every volume mounted must have a name and type attributes.
- type String
The type of the volume.
- config
File EciVolume Config File To Paths Scaling Configuration Volume Config File Volume Config File To Path[] ConfigFileVolumeConfigFileToPaths. See
config_file_volume_config_file_to_paths
below for details.- disk
Volume stringDisk Id The ID of DiskVolume.
- disk
Volume numberDisk Size The disk size of DiskVolume.
- disk
Volume stringFs Type The system type of DiskVolume.
- flex
Volume stringDriver The name of the FlexVolume driver.
- flex
Volume stringFs Type The type of the mounted file system. The default value is determined by the script of FlexVolume.
- flex
Volume stringOptions The list of FlexVolume objects. Each object is a key-value pair contained in a JSON string.
- name string
The name of the volume.
- nfs
Volume stringPath The path to the NFS volume.
- nfs
Volume booleanRead Only The nfs volume read only. Default to
false
.- nfs
Volume stringServer The address of the NFS server.
NOTE: Every volume mounted must have a name and type attributes.
- type string
The type of the volume.
- config_
file_ Sequence[Ecivolume_ config_ file_ to_ paths Scaling Configuration Volume Config File Volume Config File To Path] ConfigFileVolumeConfigFileToPaths. See
config_file_volume_config_file_to_paths
below for details.- disk_
volume_ strdisk_ id The ID of DiskVolume.
- disk_
volume_ intdisk_ size The disk size of DiskVolume.
- disk_
volume_ strfs_ type The system type of DiskVolume.
- flex_
volume_ strdriver The name of the FlexVolume driver.
- flex_
volume_ strfs_ type The type of the mounted file system. The default value is determined by the script of FlexVolume.
- flex_
volume_ stroptions The list of FlexVolume objects. Each object is a key-value pair contained in a JSON string.
- name str
The name of the volume.
- nfs_
volume_ strpath The path to the NFS volume.
- nfs_
volume_ boolread_ only The nfs volume read only. Default to
false
.- nfs_
volume_ strserver The address of the NFS server.
NOTE: Every volume mounted must have a name and type attributes.
- type str
The type of the volume.
- config
File List<Property Map>Volume Config File To Paths ConfigFileVolumeConfigFileToPaths. See
config_file_volume_config_file_to_paths
below for details.- disk
Volume StringDisk Id The ID of DiskVolume.
- disk
Volume NumberDisk Size The disk size of DiskVolume.
- disk
Volume StringFs Type The system type of DiskVolume.
- flex
Volume StringDriver The name of the FlexVolume driver.
- flex
Volume StringFs Type The type of the mounted file system. The default value is determined by the script of FlexVolume.
- flex
Volume StringOptions The list of FlexVolume objects. Each object is a key-value pair contained in a JSON string.
- name String
The name of the volume.
- nfs
Volume StringPath The path to the NFS volume.
- nfs
Volume BooleanRead Only The nfs volume read only. Default to
false
.- nfs
Volume StringServer The address of the NFS server.
NOTE: Every volume mounted must have a name and type attributes.
- type String
The type of the volume.
EciScalingConfigurationVolumeConfigFileVolumeConfigFileToPath, EciScalingConfigurationVolumeConfigFileVolumeConfigFileToPathArgs
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
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.