1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. eci
  5. ContainerGroup
Alibaba Cloud v3.49.0 published on Sunday, Feb 4, 2024 by Pulumi

alicloud.eci.ContainerGroup

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.49.0 published on Sunday, Feb 4, 2024 by Pulumi

    Provides ECI Container Group resource.

    For information about ECI Container Group and how to use it, see What is Container Group.

    NOTE: Available since v1.111.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") ?? "tf-example";
        var defaultZones = AliCloud.Eci.GetZones.Invoke();
    
        var defaultNetwork = new AliCloud.Vpc.Network("defaultNetwork", new()
        {
            VpcName = name,
            CidrBlock = "10.0.0.0/8",
        });
    
        var defaultSwitch = new AliCloud.Vpc.Switch("defaultSwitch", new()
        {
            VswitchName = name,
            CidrBlock = "10.1.0.0/16",
            VpcId = defaultNetwork.Id,
            ZoneId = defaultZones.Apply(getZonesResult => getZonesResult.Zones[0]?.ZoneIds[0]),
        });
    
        var defaultSecurityGroup = new AliCloud.Ecs.SecurityGroup("defaultSecurityGroup", new()
        {
            VpcId = defaultNetwork.Id,
        });
    
        var defaultContainerGroup = new AliCloud.Eci.ContainerGroup("defaultContainerGroup", new()
        {
            ContainerGroupName = name,
            Cpu = 8,
            Memory = 16,
            RestartPolicy = "OnFailure",
            SecurityGroupId = defaultSecurityGroup.Id,
            VswitchId = defaultSwitch.Id,
            AutoCreateEip = true,
            Tags = 
            {
                { "Created", "TF" },
                { "For", "example" },
            },
            Containers = new[]
            {
                new AliCloud.Eci.Inputs.ContainerGroupContainerArgs
                {
                    Image = "registry.cn-beijing.aliyuncs.com/eci_open/nginx:alpine",
                    Name = "nginx",
                    WorkingDir = "/tmp/nginx",
                    ImagePullPolicy = "IfNotPresent",
                    Commands = new[]
                    {
                        "/bin/sh",
                        "-c",
                        "sleep 9999",
                    },
                    VolumeMounts = new[]
                    {
                        new AliCloud.Eci.Inputs.ContainerGroupContainerVolumeMountArgs
                        {
                            MountPath = "/tmp/example",
                            ReadOnly = false,
                            Name = "empty1",
                        },
                    },
                    Ports = new[]
                    {
                        new AliCloud.Eci.Inputs.ContainerGroupContainerPortArgs
                        {
                            Port = 80,
                            Protocol = "TCP",
                        },
                    },
                    EnvironmentVars = new[]
                    {
                        new AliCloud.Eci.Inputs.ContainerGroupContainerEnvironmentVarArgs
                        {
                            Key = "name",
                            Value = "nginx",
                        },
                    },
                    LivenessProbes = new[]
                    {
                        new AliCloud.Eci.Inputs.ContainerGroupContainerLivenessProbeArgs
                        {
                            PeriodSeconds = 5,
                            InitialDelaySeconds = 5,
                            SuccessThreshold = 1,
                            FailureThreshold = 3,
                            TimeoutSeconds = 1,
                            Execs = new[]
                            {
                                new AliCloud.Eci.Inputs.ContainerGroupContainerLivenessProbeExecArgs
                                {
                                    Commands = new[]
                                    {
                                        "cat /tmp/healthy",
                                    },
                                },
                            },
                        },
                    },
                    ReadinessProbes = new[]
                    {
                        new AliCloud.Eci.Inputs.ContainerGroupContainerReadinessProbeArgs
                        {
                            PeriodSeconds = 5,
                            InitialDelaySeconds = 5,
                            SuccessThreshold = 1,
                            FailureThreshold = 3,
                            TimeoutSeconds = 1,
                            Execs = new[]
                            {
                                new AliCloud.Eci.Inputs.ContainerGroupContainerReadinessProbeExecArgs
                                {
                                    Commands = new[]
                                    {
                                        "cat /tmp/healthy",
                                    },
                                },
                            },
                        },
                    },
                },
            },
            InitContainers = new[]
            {
                new AliCloud.Eci.Inputs.ContainerGroupInitContainerArgs
                {
                    Name = "init-busybox",
                    Image = "registry.cn-beijing.aliyuncs.com/eci_open/busybox:1.30",
                    ImagePullPolicy = "IfNotPresent",
                    Commands = new[]
                    {
                        "echo",
                    },
                    Args = new[]
                    {
                        "hello initcontainer",
                    },
                },
            },
            Volumes = new[]
            {
                new AliCloud.Eci.Inputs.ContainerGroupVolumeArgs
                {
                    Name = "empty1",
                    Type = "EmptyDirVolume",
                },
                new AliCloud.Eci.Inputs.ContainerGroupVolumeArgs
                {
                    Name = "empty2",
                    Type = "EmptyDirVolume",
                },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/eci"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
    	"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 := "tf-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		defaultZones, err := eci.GetZones(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		defaultNetwork, err := vpc.NewNetwork(ctx, "defaultNetwork", &vpc.NetworkArgs{
    			VpcName:   pulumi.String(name),
    			CidrBlock: pulumi.String("10.0.0.0/8"),
    		})
    		if err != nil {
    			return err
    		}
    		defaultSwitch, err := vpc.NewSwitch(ctx, "defaultSwitch", &vpc.SwitchArgs{
    			VswitchName: pulumi.String(name),
    			CidrBlock:   pulumi.String("10.1.0.0/16"),
    			VpcId:       defaultNetwork.ID(),
    			ZoneId:      *pulumi.String(defaultZones.Zones[0].ZoneIds[0]),
    		})
    		if err != nil {
    			return err
    		}
    		defaultSecurityGroup, err := ecs.NewSecurityGroup(ctx, "defaultSecurityGroup", &ecs.SecurityGroupArgs{
    			VpcId: defaultNetwork.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = eci.NewContainerGroup(ctx, "defaultContainerGroup", &eci.ContainerGroupArgs{
    			ContainerGroupName: pulumi.String(name),
    			Cpu:                pulumi.Float64(8),
    			Memory:             pulumi.Float64(16),
    			RestartPolicy:      pulumi.String("OnFailure"),
    			SecurityGroupId:    defaultSecurityGroup.ID(),
    			VswitchId:          defaultSwitch.ID(),
    			AutoCreateEip:      pulumi.Bool(true),
    			Tags: pulumi.Map{
    				"Created": pulumi.Any("TF"),
    				"For":     pulumi.Any("example"),
    			},
    			Containers: eci.ContainerGroupContainerArray{
    				&eci.ContainerGroupContainerArgs{
    					Image:           pulumi.String("registry.cn-beijing.aliyuncs.com/eci_open/nginx:alpine"),
    					Name:            pulumi.String("nginx"),
    					WorkingDir:      pulumi.String("/tmp/nginx"),
    					ImagePullPolicy: pulumi.String("IfNotPresent"),
    					Commands: pulumi.StringArray{
    						pulumi.String("/bin/sh"),
    						pulumi.String("-c"),
    						pulumi.String("sleep 9999"),
    					},
    					VolumeMounts: eci.ContainerGroupContainerVolumeMountArray{
    						&eci.ContainerGroupContainerVolumeMountArgs{
    							MountPath: pulumi.String("/tmp/example"),
    							ReadOnly:  pulumi.Bool(false),
    							Name:      pulumi.String("empty1"),
    						},
    					},
    					Ports: eci.ContainerGroupContainerPortArray{
    						&eci.ContainerGroupContainerPortArgs{
    							Port:     pulumi.Int(80),
    							Protocol: pulumi.String("TCP"),
    						},
    					},
    					EnvironmentVars: eci.ContainerGroupContainerEnvironmentVarArray{
    						&eci.ContainerGroupContainerEnvironmentVarArgs{
    							Key:   pulumi.String("name"),
    							Value: pulumi.String("nginx"),
    						},
    					},
    					LivenessProbes: eci.ContainerGroupContainerLivenessProbeArray{
    						&eci.ContainerGroupContainerLivenessProbeArgs{
    							PeriodSeconds:       pulumi.Int(5),
    							InitialDelaySeconds: pulumi.Int(5),
    							SuccessThreshold:    pulumi.Int(1),
    							FailureThreshold:    pulumi.Int(3),
    							TimeoutSeconds:      pulumi.Int(1),
    							Execs: eci.ContainerGroupContainerLivenessProbeExecArray{
    								&eci.ContainerGroupContainerLivenessProbeExecArgs{
    									Commands: pulumi.StringArray{
    										pulumi.String("cat /tmp/healthy"),
    									},
    								},
    							},
    						},
    					},
    					ReadinessProbes: eci.ContainerGroupContainerReadinessProbeArray{
    						&eci.ContainerGroupContainerReadinessProbeArgs{
    							PeriodSeconds:       pulumi.Int(5),
    							InitialDelaySeconds: pulumi.Int(5),
    							SuccessThreshold:    pulumi.Int(1),
    							FailureThreshold:    pulumi.Int(3),
    							TimeoutSeconds:      pulumi.Int(1),
    							Execs: eci.ContainerGroupContainerReadinessProbeExecArray{
    								&eci.ContainerGroupContainerReadinessProbeExecArgs{
    									Commands: pulumi.StringArray{
    										pulumi.String("cat /tmp/healthy"),
    									},
    								},
    							},
    						},
    					},
    				},
    			},
    			InitContainers: eci.ContainerGroupInitContainerArray{
    				&eci.ContainerGroupInitContainerArgs{
    					Name:            pulumi.String("init-busybox"),
    					Image:           pulumi.String("registry.cn-beijing.aliyuncs.com/eci_open/busybox:1.30"),
    					ImagePullPolicy: pulumi.String("IfNotPresent"),
    					Commands: pulumi.StringArray{
    						pulumi.String("echo"),
    					},
    					Args: pulumi.StringArray{
    						pulumi.String("hello initcontainer"),
    					},
    				},
    			},
    			Volumes: eci.ContainerGroupVolumeArray{
    				&eci.ContainerGroupVolumeArgs{
    					Name: pulumi.String("empty1"),
    					Type: pulumi.String("EmptyDirVolume"),
    				},
    				&eci.ContainerGroupVolumeArgs{
    					Name: pulumi.String("empty2"),
    					Type: pulumi.String("EmptyDirVolume"),
    				},
    			},
    		})
    		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.eci.EciFunctions;
    import com.pulumi.alicloud.eci.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.eci.ContainerGroup;
    import com.pulumi.alicloud.eci.ContainerGroupArgs;
    import com.pulumi.alicloud.eci.inputs.ContainerGroupContainerArgs;
    import com.pulumi.alicloud.eci.inputs.ContainerGroupInitContainerArgs;
    import com.pulumi.alicloud.eci.inputs.ContainerGroupVolumeArgs;
    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("tf-example");
            final var defaultZones = EciFunctions.getZones();
    
            var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()        
                .vpcName(name)
                .cidrBlock("10.0.0.0/8")
                .build());
    
            var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()        
                .vswitchName(name)
                .cidrBlock("10.1.0.0/16")
                .vpcId(defaultNetwork.id())
                .zoneId(defaultZones.applyValue(getZonesResult -> getZonesResult.zones()[0].zoneIds()[0]))
                .build());
    
            var defaultSecurityGroup = new SecurityGroup("defaultSecurityGroup", SecurityGroupArgs.builder()        
                .vpcId(defaultNetwork.id())
                .build());
    
            var defaultContainerGroup = new ContainerGroup("defaultContainerGroup", ContainerGroupArgs.builder()        
                .containerGroupName(name)
                .cpu(8)
                .memory(16)
                .restartPolicy("OnFailure")
                .securityGroupId(defaultSecurityGroup.id())
                .vswitchId(defaultSwitch.id())
                .autoCreateEip(true)
                .tags(Map.ofEntries(
                    Map.entry("Created", "TF"),
                    Map.entry("For", "example")
                ))
                .containers(ContainerGroupContainerArgs.builder()
                    .image("registry.cn-beijing.aliyuncs.com/eci_open/nginx:alpine")
                    .name("nginx")
                    .workingDir("/tmp/nginx")
                    .imagePullPolicy("IfNotPresent")
                    .commands(                
                        "/bin/sh",
                        "-c",
                        "sleep 9999")
                    .volumeMounts(ContainerGroupContainerVolumeMountArgs.builder()
                        .mountPath("/tmp/example")
                        .readOnly(false)
                        .name("empty1")
                        .build())
                    .ports(ContainerGroupContainerPortArgs.builder()
                        .port(80)
                        .protocol("TCP")
                        .build())
                    .environmentVars(ContainerGroupContainerEnvironmentVarArgs.builder()
                        .key("name")
                        .value("nginx")
                        .build())
                    .livenessProbes(ContainerGroupContainerLivenessProbeArgs.builder()
                        .periodSeconds("5")
                        .initialDelaySeconds("5")
                        .successThreshold("1")
                        .failureThreshold("3")
                        .timeoutSeconds("1")
                        .execs(ContainerGroupContainerLivenessProbeExecArgs.builder()
                            .commands("cat /tmp/healthy")
                            .build())
                        .build())
                    .readinessProbes(ContainerGroupContainerReadinessProbeArgs.builder()
                        .periodSeconds("5")
                        .initialDelaySeconds("5")
                        .successThreshold("1")
                        .failureThreshold("3")
                        .timeoutSeconds("1")
                        .execs(ContainerGroupContainerReadinessProbeExecArgs.builder()
                            .commands("cat /tmp/healthy")
                            .build())
                        .build())
                    .build())
                .initContainers(ContainerGroupInitContainerArgs.builder()
                    .name("init-busybox")
                    .image("registry.cn-beijing.aliyuncs.com/eci_open/busybox:1.30")
                    .imagePullPolicy("IfNotPresent")
                    .commands("echo")
                    .args("hello initcontainer")
                    .build())
                .volumes(            
                    ContainerGroupVolumeArgs.builder()
                        .name("empty1")
                        .type("EmptyDirVolume")
                        .build(),
                    ContainerGroupVolumeArgs.builder()
                        .name("empty2")
                        .type("EmptyDirVolume")
                        .build())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "tf-example"
    default_zones = alicloud.eci.get_zones()
    default_network = alicloud.vpc.Network("defaultNetwork",
        vpc_name=name,
        cidr_block="10.0.0.0/8")
    default_switch = alicloud.vpc.Switch("defaultSwitch",
        vswitch_name=name,
        cidr_block="10.1.0.0/16",
        vpc_id=default_network.id,
        zone_id=default_zones.zones[0].zone_ids[0])
    default_security_group = alicloud.ecs.SecurityGroup("defaultSecurityGroup", vpc_id=default_network.id)
    default_container_group = alicloud.eci.ContainerGroup("defaultContainerGroup",
        container_group_name=name,
        cpu=8,
        memory=16,
        restart_policy="OnFailure",
        security_group_id=default_security_group.id,
        vswitch_id=default_switch.id,
        auto_create_eip=True,
        tags={
            "Created": "TF",
            "For": "example",
        },
        containers=[alicloud.eci.ContainerGroupContainerArgs(
            image="registry.cn-beijing.aliyuncs.com/eci_open/nginx:alpine",
            name="nginx",
            working_dir="/tmp/nginx",
            image_pull_policy="IfNotPresent",
            commands=[
                "/bin/sh",
                "-c",
                "sleep 9999",
            ],
            volume_mounts=[alicloud.eci.ContainerGroupContainerVolumeMountArgs(
                mount_path="/tmp/example",
                read_only=False,
                name="empty1",
            )],
            ports=[alicloud.eci.ContainerGroupContainerPortArgs(
                port=80,
                protocol="TCP",
            )],
            environment_vars=[alicloud.eci.ContainerGroupContainerEnvironmentVarArgs(
                key="name",
                value="nginx",
            )],
            liveness_probes=[alicloud.eci.ContainerGroupContainerLivenessProbeArgs(
                period_seconds=5,
                initial_delay_seconds=5,
                success_threshold=1,
                failure_threshold=3,
                timeout_seconds=1,
                execs=[alicloud.eci.ContainerGroupContainerLivenessProbeExecArgs(
                    commands=["cat /tmp/healthy"],
                )],
            )],
            readiness_probes=[alicloud.eci.ContainerGroupContainerReadinessProbeArgs(
                period_seconds=5,
                initial_delay_seconds=5,
                success_threshold=1,
                failure_threshold=3,
                timeout_seconds=1,
                execs=[alicloud.eci.ContainerGroupContainerReadinessProbeExecArgs(
                    commands=["cat /tmp/healthy"],
                )],
            )],
        )],
        init_containers=[alicloud.eci.ContainerGroupInitContainerArgs(
            name="init-busybox",
            image="registry.cn-beijing.aliyuncs.com/eci_open/busybox:1.30",
            image_pull_policy="IfNotPresent",
            commands=["echo"],
            args=["hello initcontainer"],
        )],
        volumes=[
            alicloud.eci.ContainerGroupVolumeArgs(
                name="empty1",
                type="EmptyDirVolume",
            ),
            alicloud.eci.ContainerGroupVolumeArgs(
                name="empty2",
                type="EmptyDirVolume",
            ),
        ])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "tf-example";
    const defaultZones = alicloud.eci.getZones({});
    const defaultNetwork = new alicloud.vpc.Network("defaultNetwork", {
        vpcName: name,
        cidrBlock: "10.0.0.0/8",
    });
    const defaultSwitch = new alicloud.vpc.Switch("defaultSwitch", {
        vswitchName: name,
        cidrBlock: "10.1.0.0/16",
        vpcId: defaultNetwork.id,
        zoneId: defaultZones.then(defaultZones => defaultZones.zones?.[0]?.zoneIds?.[0]),
    });
    const defaultSecurityGroup = new alicloud.ecs.SecurityGroup("defaultSecurityGroup", {vpcId: defaultNetwork.id});
    const defaultContainerGroup = new alicloud.eci.ContainerGroup("defaultContainerGroup", {
        containerGroupName: name,
        cpu: 8,
        memory: 16,
        restartPolicy: "OnFailure",
        securityGroupId: defaultSecurityGroup.id,
        vswitchId: defaultSwitch.id,
        autoCreateEip: true,
        tags: {
            Created: "TF",
            For: "example",
        },
        containers: [{
            image: "registry.cn-beijing.aliyuncs.com/eci_open/nginx:alpine",
            name: "nginx",
            workingDir: "/tmp/nginx",
            imagePullPolicy: "IfNotPresent",
            commands: [
                "/bin/sh",
                "-c",
                "sleep 9999",
            ],
            volumeMounts: [{
                mountPath: "/tmp/example",
                readOnly: false,
                name: "empty1",
            }],
            ports: [{
                port: 80,
                protocol: "TCP",
            }],
            environmentVars: [{
                key: "name",
                value: "nginx",
            }],
            livenessProbes: [{
                periodSeconds: 5,
                initialDelaySeconds: 5,
                successThreshold: 1,
                failureThreshold: 3,
                timeoutSeconds: 1,
                execs: [{
                    commands: ["cat /tmp/healthy"],
                }],
            }],
            readinessProbes: [{
                periodSeconds: 5,
                initialDelaySeconds: 5,
                successThreshold: 1,
                failureThreshold: 3,
                timeoutSeconds: 1,
                execs: [{
                    commands: ["cat /tmp/healthy"],
                }],
            }],
        }],
        initContainers: [{
            name: "init-busybox",
            image: "registry.cn-beijing.aliyuncs.com/eci_open/busybox:1.30",
            imagePullPolicy: "IfNotPresent",
            commands: ["echo"],
            args: ["hello initcontainer"],
        }],
        volumes: [
            {
                name: "empty1",
                type: "EmptyDirVolume",
            },
            {
                name: "empty2",
                type: "EmptyDirVolume",
            },
        ],
    });
    
    configuration:
      name:
        type: string
        default: tf-example
    resources:
      defaultNetwork:
        type: alicloud:vpc:Network
        properties:
          vpcName: ${name}
          cidrBlock: 10.0.0.0/8
      defaultSwitch:
        type: alicloud:vpc:Switch
        properties:
          vswitchName: ${name}
          cidrBlock: 10.1.0.0/16
          vpcId: ${defaultNetwork.id}
          zoneId: ${defaultZones.zones[0].zoneIds[0]}
      defaultSecurityGroup:
        type: alicloud:ecs:SecurityGroup
        properties:
          vpcId: ${defaultNetwork.id}
      defaultContainerGroup:
        type: alicloud:eci:ContainerGroup
        properties:
          containerGroupName: ${name}
          cpu: 8
          memory: 16
          restartPolicy: OnFailure
          securityGroupId: ${defaultSecurityGroup.id}
          vswitchId: ${defaultSwitch.id}
          autoCreateEip: true
          tags:
            Created: TF
            For: example
          containers:
            - image: registry.cn-beijing.aliyuncs.com/eci_open/nginx:alpine
              name: nginx
              workingDir: /tmp/nginx
              imagePullPolicy: IfNotPresent
              commands:
                - /bin/sh
                - -c
                - sleep 9999
              volumeMounts:
                - mountPath: /tmp/example
                  readOnly: false
                  name: empty1
              ports:
                - port: 80
                  protocol: TCP
              environmentVars:
                - key: name
                  value: nginx
              livenessProbes:
                - periodSeconds: '5'
                  initialDelaySeconds: '5'
                  successThreshold: '1'
                  failureThreshold: '3'
                  timeoutSeconds: '1'
                  execs:
                    - commands:
                        - cat /tmp/healthy
              readinessProbes:
                - periodSeconds: '5'
                  initialDelaySeconds: '5'
                  successThreshold: '1'
                  failureThreshold: '3'
                  timeoutSeconds: '1'
                  execs:
                    - commands:
                        - cat /tmp/healthy
          initContainers:
            - name: init-busybox
              image: registry.cn-beijing.aliyuncs.com/eci_open/busybox:1.30
              imagePullPolicy: IfNotPresent
              commands:
                - echo
              args:
                - hello initcontainer
          volumes:
            - name: empty1
              type: EmptyDirVolume
            - name: empty2
              type: EmptyDirVolume
    variables:
      defaultZones:
        fn::invoke:
          Function: alicloud:eci:getZones
          Arguments: {}
    

    Create ContainerGroup Resource

    new ContainerGroup(name: string, args: ContainerGroupArgs, opts?: CustomResourceOptions);
    @overload
    def ContainerGroup(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       acr_registry_infos: Optional[Sequence[ContainerGroupAcrRegistryInfoArgs]] = None,
                       auto_create_eip: Optional[bool] = None,
                       auto_match_image_cache: Optional[bool] = None,
                       container_group_name: Optional[str] = None,
                       containers: Optional[Sequence[ContainerGroupContainerArgs]] = None,
                       cpu: Optional[float] = None,
                       dns_config: Optional[ContainerGroupDnsConfigArgs] = None,
                       eip_bandwidth: Optional[int] = None,
                       eip_instance_id: Optional[str] = None,
                       host_aliases: Optional[Sequence[ContainerGroupHostAliasArgs]] = None,
                       image_registry_credentials: Optional[Sequence[ContainerGroupImageRegistryCredentialArgs]] = None,
                       init_containers: Optional[Sequence[ContainerGroupInitContainerArgs]] = None,
                       insecure_registry: Optional[str] = None,
                       instance_type: Optional[str] = None,
                       memory: Optional[float] = None,
                       plain_http_registry: Optional[str] = None,
                       ram_role_name: Optional[str] = None,
                       resource_group_id: Optional[str] = None,
                       restart_policy: Optional[str] = None,
                       security_context: Optional[ContainerGroupSecurityContextArgs] = None,
                       security_group_id: Optional[str] = None,
                       spot_price_limit: Optional[float] = None,
                       spot_strategy: Optional[str] = None,
                       tags: Optional[Mapping[str, Any]] = None,
                       termination_grace_period_seconds: Optional[int] = None,
                       volumes: Optional[Sequence[ContainerGroupVolumeArgs]] = None,
                       vswitch_id: Optional[str] = None,
                       zone_id: Optional[str] = None)
    @overload
    def ContainerGroup(resource_name: str,
                       args: ContainerGroupArgs,
                       opts: Optional[ResourceOptions] = None)
    func NewContainerGroup(ctx *Context, name string, args ContainerGroupArgs, opts ...ResourceOption) (*ContainerGroup, error)
    public ContainerGroup(string name, ContainerGroupArgs args, CustomResourceOptions? opts = null)
    public ContainerGroup(String name, ContainerGroupArgs args)
    public ContainerGroup(String name, ContainerGroupArgs args, CustomResourceOptions options)
    
    type: alicloud:eci:ContainerGroup
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args ContainerGroupArgs
    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 ContainerGroupArgs
    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 ContainerGroupArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ContainerGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ContainerGroupArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    ContainerGroupName string
    The name of the container group.
    Containers List<Pulumi.AliCloud.Eci.Inputs.ContainerGroupContainer>
    The list of containers. See containers below.
    SecurityGroupId string
    The ID of the security group to which the container group belongs. Container groups within the same security group can access each other.
    VswitchId string
    The ID of the VSwitch. Currently, container groups can only be deployed in VPC networks. The number of IP addresses in the VSwitch CIDR block determines the maximum number of container groups that can be created in the VSwitch. Before you can create an ECI instance, plan the CIDR block of the VSwitch. NOTE: From version 1.208.0, You can specify up to 10 vswitch_id. Separate multiple vSwitch IDs with commas (,), such as vsw-,vsw-. attribute vswitch_id updating diff will be ignored when you set multiple vSwitchIds, there is only one valid vswitch_id exists in the set vSwitchIds.
    AcrRegistryInfos List<Pulumi.AliCloud.Eci.Inputs.ContainerGroupAcrRegistryInfo>
    The ACR enterprise edition example properties. See acr_registry_info below.
    AutoCreateEip bool
    Specifies whether to automatically create an EIP and bind the EIP to the elastic container instance.
    AutoMatchImageCache bool
    Specifies whether to automatically match the image cache. Default value: false. Valid values: true and false.
    Cpu double
    The amount of CPU resources allocated to the container group.
    DnsConfig Pulumi.AliCloud.Eci.Inputs.ContainerGroupDnsConfig
    The structure of dnsConfig. See dns_config below.
    EipBandwidth int
    The bandwidth of the EIP. Default value: 5.
    EipInstanceId string
    The ID of the elastic IP address (EIP).
    HostAliases List<Pulumi.AliCloud.Eci.Inputs.ContainerGroupHostAlias>
    HostAliases. See host_aliases below.
    ImageRegistryCredentials List<Pulumi.AliCloud.Eci.Inputs.ContainerGroupImageRegistryCredential>
    The image registry credential. See image_registry_credential below.
    InitContainers List<Pulumi.AliCloud.Eci.Inputs.ContainerGroupInitContainer>
    The list of initContainers. See init_containers below.
    InsecureRegistry string
    The address of the self-built mirror warehouse. When creating an image cache using an image in a self-built image repository with a self-signed certificate, you need to configure this parameter to skip certificate authentication to avoid image pull failure due to certificate authentication failure.
    InstanceType string
    The type of the ECS instance.
    Memory double
    The amount of memory resources allocated to the container group.
    PlainHttpRegistry string
    The address of the self-built mirror warehouse. When creating an image cache from an image in a self-built image repository using the HTTP protocol, you need to configure this parameter so that the ECI uses the HTTP protocol to pull the image to avoid image pull failure due to different protocols.
    RamRoleName string
    The RAM role that the container group assumes. ECI and ECS share the same RAM role.
    ResourceGroupId string
    The ID of the resource group. NOTE: From version 1.208.0, resource_group_id can be modified.
    RestartPolicy string
    The restart policy of the container group. Valid values: Always, Never, OnFailure.
    SecurityContext Pulumi.AliCloud.Eci.Inputs.ContainerGroupSecurityContext
    The security context of the container group. See security_context below.
    SpotPriceLimit double
    The maximum hourly price of the ECI spot instance.
    SpotStrategy string
    Filter the results by ECI spot type. Valid values: NoSpot, SpotWithPriceLimit and SpotAsPriceGo. Default to NoSpot.
    Tags Dictionary<string, object>
    A mapping of tags to assign to the resource.

    • Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
    • Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
    TerminationGracePeriodSeconds int
    The buffer time during which the program handles operations before the program stops. Unit: seconds.
    Volumes List<Pulumi.AliCloud.Eci.Inputs.ContainerGroupVolume>
    The list of volumes. See volumes below.
    ZoneId string
    The ID of the zone where you want to deploy the container group. If no value is specified, the system assigns a zone to the container group. By default, no value is specified.
    ContainerGroupName string
    The name of the container group.
    Containers []ContainerGroupContainerArgs
    The list of containers. See containers below.
    SecurityGroupId string
    The ID of the security group to which the container group belongs. Container groups within the same security group can access each other.
    VswitchId string
    The ID of the VSwitch. Currently, container groups can only be deployed in VPC networks. The number of IP addresses in the VSwitch CIDR block determines the maximum number of container groups that can be created in the VSwitch. Before you can create an ECI instance, plan the CIDR block of the VSwitch. NOTE: From version 1.208.0, You can specify up to 10 vswitch_id. Separate multiple vSwitch IDs with commas (,), such as vsw-,vsw-. attribute vswitch_id updating diff will be ignored when you set multiple vSwitchIds, there is only one valid vswitch_id exists in the set vSwitchIds.
    AcrRegistryInfos []ContainerGroupAcrRegistryInfoArgs
    The ACR enterprise edition example properties. See acr_registry_info below.
    AutoCreateEip bool
    Specifies whether to automatically create an EIP and bind the EIP to the elastic container instance.
    AutoMatchImageCache bool
    Specifies whether to automatically match the image cache. Default value: false. Valid values: true and false.
    Cpu float64
    The amount of CPU resources allocated to the container group.
    DnsConfig ContainerGroupDnsConfigArgs
    The structure of dnsConfig. See dns_config below.
    EipBandwidth int
    The bandwidth of the EIP. Default value: 5.
    EipInstanceId string
    The ID of the elastic IP address (EIP).
    HostAliases []ContainerGroupHostAliasArgs
    HostAliases. See host_aliases below.
    ImageRegistryCredentials []ContainerGroupImageRegistryCredentialArgs
    The image registry credential. See image_registry_credential below.
    InitContainers []ContainerGroupInitContainerArgs
    The list of initContainers. See init_containers below.
    InsecureRegistry string
    The address of the self-built mirror warehouse. When creating an image cache using an image in a self-built image repository with a self-signed certificate, you need to configure this parameter to skip certificate authentication to avoid image pull failure due to certificate authentication failure.
    InstanceType string
    The type of the ECS instance.
    Memory float64
    The amount of memory resources allocated to the container group.
    PlainHttpRegistry string
    The address of the self-built mirror warehouse. When creating an image cache from an image in a self-built image repository using the HTTP protocol, you need to configure this parameter so that the ECI uses the HTTP protocol to pull the image to avoid image pull failure due to different protocols.
    RamRoleName string
    The RAM role that the container group assumes. ECI and ECS share the same RAM role.
    ResourceGroupId string
    The ID of the resource group. NOTE: From version 1.208.0, resource_group_id can be modified.
    RestartPolicy string
    The restart policy of the container group. Valid values: Always, Never, OnFailure.
    SecurityContext ContainerGroupSecurityContextArgs
    The security context of the container group. See security_context below.
    SpotPriceLimit float64
    The maximum hourly price of the ECI spot instance.
    SpotStrategy string
    Filter the results by ECI spot type. Valid values: NoSpot, SpotWithPriceLimit and SpotAsPriceGo. Default to NoSpot.
    Tags map[string]interface{}
    A mapping of tags to assign to the resource.

    • Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
    • Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
    TerminationGracePeriodSeconds int
    The buffer time during which the program handles operations before the program stops. Unit: seconds.
    Volumes []ContainerGroupVolumeArgs
    The list of volumes. See volumes below.
    ZoneId string
    The ID of the zone where you want to deploy the container group. If no value is specified, the system assigns a zone to the container group. By default, no value is specified.
    containerGroupName String
    The name of the container group.
    containers List<ContainerGroupContainer>
    The list of containers. See containers below.
    securityGroupId String
    The ID of the security group to which the container group belongs. Container groups within the same security group can access each other.
    vswitchId String
    The ID of the VSwitch. Currently, container groups can only be deployed in VPC networks. The number of IP addresses in the VSwitch CIDR block determines the maximum number of container groups that can be created in the VSwitch. Before you can create an ECI instance, plan the CIDR block of the VSwitch. NOTE: From version 1.208.0, You can specify up to 10 vswitch_id. Separate multiple vSwitch IDs with commas (,), such as vsw-,vsw-. attribute vswitch_id updating diff will be ignored when you set multiple vSwitchIds, there is only one valid vswitch_id exists in the set vSwitchIds.
    acrRegistryInfos List<ContainerGroupAcrRegistryInfo>
    The ACR enterprise edition example properties. See acr_registry_info below.
    autoCreateEip Boolean
    Specifies whether to automatically create an EIP and bind the EIP to the elastic container instance.
    autoMatchImageCache Boolean
    Specifies whether to automatically match the image cache. Default value: false. Valid values: true and false.
    cpu Double
    The amount of CPU resources allocated to the container group.
    dnsConfig ContainerGroupDnsConfig
    The structure of dnsConfig. See dns_config below.
    eipBandwidth Integer
    The bandwidth of the EIP. Default value: 5.
    eipInstanceId String
    The ID of the elastic IP address (EIP).
    hostAliases List<ContainerGroupHostAlias>
    HostAliases. See host_aliases below.
    imageRegistryCredentials List<ContainerGroupImageRegistryCredential>
    The image registry credential. See image_registry_credential below.
    initContainers List<ContainerGroupInitContainer>
    The list of initContainers. See init_containers below.
    insecureRegistry String
    The address of the self-built mirror warehouse. When creating an image cache using an image in a self-built image repository with a self-signed certificate, you need to configure this parameter to skip certificate authentication to avoid image pull failure due to certificate authentication failure.
    instanceType String
    The type of the ECS instance.
    memory Double
    The amount of memory resources allocated to the container group.
    plainHttpRegistry String
    The address of the self-built mirror warehouse. When creating an image cache from an image in a self-built image repository using the HTTP protocol, you need to configure this parameter so that the ECI uses the HTTP protocol to pull the image to avoid image pull failure due to different protocols.
    ramRoleName String
    The RAM role that the container group assumes. ECI and ECS share the same RAM role.
    resourceGroupId String
    The ID of the resource group. NOTE: From version 1.208.0, resource_group_id can be modified.
    restartPolicy String
    The restart policy of the container group. Valid values: Always, Never, OnFailure.
    securityContext ContainerGroupSecurityContext
    The security context of the container group. See security_context below.
    spotPriceLimit Double
    The maximum hourly price of the ECI spot instance.
    spotStrategy String
    Filter the results by ECI spot type. Valid values: NoSpot, SpotWithPriceLimit and SpotAsPriceGo. Default to NoSpot.
    tags Map<String,Object>
    A mapping of tags to assign to the resource.

    • Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
    • Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
    terminationGracePeriodSeconds Integer
    The buffer time during which the program handles operations before the program stops. Unit: seconds.
    volumes List<ContainerGroupVolume>
    The list of volumes. See volumes below.
    zoneId String
    The ID of the zone where you want to deploy the container group. If no value is specified, the system assigns a zone to the container group. By default, no value is specified.
    containerGroupName string
    The name of the container group.
    containers ContainerGroupContainer[]
    The list of containers. See containers below.
    securityGroupId string
    The ID of the security group to which the container group belongs. Container groups within the same security group can access each other.
    vswitchId string
    The ID of the VSwitch. Currently, container groups can only be deployed in VPC networks. The number of IP addresses in the VSwitch CIDR block determines the maximum number of container groups that can be created in the VSwitch. Before you can create an ECI instance, plan the CIDR block of the VSwitch. NOTE: From version 1.208.0, You can specify up to 10 vswitch_id. Separate multiple vSwitch IDs with commas (,), such as vsw-,vsw-. attribute vswitch_id updating diff will be ignored when you set multiple vSwitchIds, there is only one valid vswitch_id exists in the set vSwitchIds.
    acrRegistryInfos ContainerGroupAcrRegistryInfo[]
    The ACR enterprise edition example properties. See acr_registry_info below.
    autoCreateEip boolean
    Specifies whether to automatically create an EIP and bind the EIP to the elastic container instance.
    autoMatchImageCache boolean
    Specifies whether to automatically match the image cache. Default value: false. Valid values: true and false.
    cpu number
    The amount of CPU resources allocated to the container group.
    dnsConfig ContainerGroupDnsConfig
    The structure of dnsConfig. See dns_config below.
    eipBandwidth number
    The bandwidth of the EIP. Default value: 5.
    eipInstanceId string
    The ID of the elastic IP address (EIP).
    hostAliases ContainerGroupHostAlias[]
    HostAliases. See host_aliases below.
    imageRegistryCredentials ContainerGroupImageRegistryCredential[]
    The image registry credential. See image_registry_credential below.
    initContainers ContainerGroupInitContainer[]
    The list of initContainers. See init_containers below.
    insecureRegistry string
    The address of the self-built mirror warehouse. When creating an image cache using an image in a self-built image repository with a self-signed certificate, you need to configure this parameter to skip certificate authentication to avoid image pull failure due to certificate authentication failure.
    instanceType string
    The type of the ECS instance.
    memory number
    The amount of memory resources allocated to the container group.
    plainHttpRegistry string
    The address of the self-built mirror warehouse. When creating an image cache from an image in a self-built image repository using the HTTP protocol, you need to configure this parameter so that the ECI uses the HTTP protocol to pull the image to avoid image pull failure due to different protocols.
    ramRoleName string
    The RAM role that the container group assumes. ECI and ECS share the same RAM role.
    resourceGroupId string
    The ID of the resource group. NOTE: From version 1.208.0, resource_group_id can be modified.
    restartPolicy string
    The restart policy of the container group. Valid values: Always, Never, OnFailure.
    securityContext ContainerGroupSecurityContext
    The security context of the container group. See security_context below.
    spotPriceLimit number
    The maximum hourly price of the ECI spot instance.
    spotStrategy string
    Filter the results by ECI spot type. Valid values: NoSpot, SpotWithPriceLimit and SpotAsPriceGo. Default to NoSpot.
    tags {[key: string]: any}
    A mapping of tags to assign to the resource.

    • Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
    • Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
    terminationGracePeriodSeconds number
    The buffer time during which the program handles operations before the program stops. Unit: seconds.
    volumes ContainerGroupVolume[]
    The list of volumes. See volumes below.
    zoneId string
    The ID of the zone where you want to deploy the container group. If no value is specified, the system assigns a zone to the container group. By default, no value is specified.
    container_group_name str
    The name of the container group.
    containers Sequence[ContainerGroupContainerArgs]
    The list of containers. See containers below.
    security_group_id str
    The ID of the security group to which the container group belongs. Container groups within the same security group can access each other.
    vswitch_id str
    The ID of the VSwitch. Currently, container groups can only be deployed in VPC networks. The number of IP addresses in the VSwitch CIDR block determines the maximum number of container groups that can be created in the VSwitch. Before you can create an ECI instance, plan the CIDR block of the VSwitch. NOTE: From version 1.208.0, You can specify up to 10 vswitch_id. Separate multiple vSwitch IDs with commas (,), such as vsw-,vsw-. attribute vswitch_id updating diff will be ignored when you set multiple vSwitchIds, there is only one valid vswitch_id exists in the set vSwitchIds.
    acr_registry_infos Sequence[ContainerGroupAcrRegistryInfoArgs]
    The ACR enterprise edition example properties. See acr_registry_info below.
    auto_create_eip bool
    Specifies whether to automatically create an EIP and bind the EIP to the elastic container instance.
    auto_match_image_cache bool
    Specifies whether to automatically match the image cache. Default value: false. Valid values: true and false.
    cpu float
    The amount of CPU resources allocated to the container group.
    dns_config ContainerGroupDnsConfigArgs
    The structure of dnsConfig. See dns_config below.
    eip_bandwidth int
    The bandwidth of the EIP. Default value: 5.
    eip_instance_id str
    The ID of the elastic IP address (EIP).
    host_aliases Sequence[ContainerGroupHostAliasArgs]
    HostAliases. See host_aliases below.
    image_registry_credentials Sequence[ContainerGroupImageRegistryCredentialArgs]
    The image registry credential. See image_registry_credential below.
    init_containers Sequence[ContainerGroupInitContainerArgs]
    The list of initContainers. See init_containers below.
    insecure_registry str
    The address of the self-built mirror warehouse. When creating an image cache using an image in a self-built image repository with a self-signed certificate, you need to configure this parameter to skip certificate authentication to avoid image pull failure due to certificate authentication failure.
    instance_type str
    The type of the ECS instance.
    memory float
    The amount of memory resources allocated to the container group.
    plain_http_registry str
    The address of the self-built mirror warehouse. When creating an image cache from an image in a self-built image repository using the HTTP protocol, you need to configure this parameter so that the ECI uses the HTTP protocol to pull the image to avoid image pull failure due to different protocols.
    ram_role_name str
    The RAM role that the container group assumes. ECI and ECS share the same RAM role.
    resource_group_id str
    The ID of the resource group. NOTE: From version 1.208.0, resource_group_id can be modified.
    restart_policy str
    The restart policy of the container group. Valid values: Always, Never, OnFailure.
    security_context ContainerGroupSecurityContextArgs
    The security context of the container group. See security_context below.
    spot_price_limit float
    The maximum hourly price of the ECI spot instance.
    spot_strategy str
    Filter the results by ECI spot type. Valid values: NoSpot, SpotWithPriceLimit and SpotAsPriceGo. Default to NoSpot.
    tags Mapping[str, Any]
    A mapping of tags to assign to the resource.

    • Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
    • Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
    termination_grace_period_seconds int
    The buffer time during which the program handles operations before the program stops. Unit: seconds.
    volumes Sequence[ContainerGroupVolumeArgs]
    The list of volumes. See volumes below.
    zone_id str
    The ID of the zone where you want to deploy the container group. If no value is specified, the system assigns a zone to the container group. By default, no value is specified.
    containerGroupName String
    The name of the container group.
    containers List<Property Map>
    The list of containers. See containers below.
    securityGroupId String
    The ID of the security group to which the container group belongs. Container groups within the same security group can access each other.
    vswitchId String
    The ID of the VSwitch. Currently, container groups can only be deployed in VPC networks. The number of IP addresses in the VSwitch CIDR block determines the maximum number of container groups that can be created in the VSwitch. Before you can create an ECI instance, plan the CIDR block of the VSwitch. NOTE: From version 1.208.0, You can specify up to 10 vswitch_id. Separate multiple vSwitch IDs with commas (,), such as vsw-,vsw-. attribute vswitch_id updating diff will be ignored when you set multiple vSwitchIds, there is only one valid vswitch_id exists in the set vSwitchIds.
    acrRegistryInfos List<Property Map>
    The ACR enterprise edition example properties. See acr_registry_info below.
    autoCreateEip Boolean
    Specifies whether to automatically create an EIP and bind the EIP to the elastic container instance.
    autoMatchImageCache Boolean
    Specifies whether to automatically match the image cache. Default value: false. Valid values: true and false.
    cpu Number
    The amount of CPU resources allocated to the container group.
    dnsConfig Property Map
    The structure of dnsConfig. See dns_config below.
    eipBandwidth Number
    The bandwidth of the EIP. Default value: 5.
    eipInstanceId String
    The ID of the elastic IP address (EIP).
    hostAliases List<Property Map>
    HostAliases. See host_aliases below.
    imageRegistryCredentials List<Property Map>
    The image registry credential. See image_registry_credential below.
    initContainers List<Property Map>
    The list of initContainers. See init_containers below.
    insecureRegistry String
    The address of the self-built mirror warehouse. When creating an image cache using an image in a self-built image repository with a self-signed certificate, you need to configure this parameter to skip certificate authentication to avoid image pull failure due to certificate authentication failure.
    instanceType String
    The type of the ECS instance.
    memory Number
    The amount of memory resources allocated to the container group.
    plainHttpRegistry String
    The address of the self-built mirror warehouse. When creating an image cache from an image in a self-built image repository using the HTTP protocol, you need to configure this parameter so that the ECI uses the HTTP protocol to pull the image to avoid image pull failure due to different protocols.
    ramRoleName String
    The RAM role that the container group assumes. ECI and ECS share the same RAM role.
    resourceGroupId String
    The ID of the resource group. NOTE: From version 1.208.0, resource_group_id can be modified.
    restartPolicy String
    The restart policy of the container group. Valid values: Always, Never, OnFailure.
    securityContext Property Map
    The security context of the container group. See security_context below.
    spotPriceLimit Number
    The maximum hourly price of the ECI spot instance.
    spotStrategy String
    Filter the results by ECI spot type. Valid values: NoSpot, SpotWithPriceLimit and SpotAsPriceGo. Default to NoSpot.
    tags Map<Any>
    A mapping of tags to assign to the resource.

    • Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
    • Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
    terminationGracePeriodSeconds Number
    The buffer time during which the program handles operations before the program stops. Unit: seconds.
    volumes List<Property Map>
    The list of volumes. See volumes below.
    zoneId String
    The ID of the zone where you want to deploy the container group. If no value is specified, the system assigns a zone to the container group. By default, no value is specified.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ContainerGroup resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    InternetIp string
    (Available since v1.170.0) The Public IP of the container group.
    IntranetIp string
    (Available since v1.170.0) The Private IP of the container group.
    Status string
    The status of container group.
    Id string
    The provider-assigned unique ID for this managed resource.
    InternetIp string
    (Available since v1.170.0) The Public IP of the container group.
    IntranetIp string
    (Available since v1.170.0) The Private IP of the container group.
    Status string
    The status of container group.
    id String
    The provider-assigned unique ID for this managed resource.
    internetIp String
    (Available since v1.170.0) The Public IP of the container group.
    intranetIp String
    (Available since v1.170.0) The Private IP of the container group.
    status String
    The status of container group.
    id string
    The provider-assigned unique ID for this managed resource.
    internetIp string
    (Available since v1.170.0) The Public IP of the container group.
    intranetIp string
    (Available since v1.170.0) The Private IP of the container group.
    status string
    The status of container group.
    id str
    The provider-assigned unique ID for this managed resource.
    internet_ip str
    (Available since v1.170.0) The Public IP of the container group.
    intranet_ip str
    (Available since v1.170.0) The Private IP of the container group.
    status str
    The status of container group.
    id String
    The provider-assigned unique ID for this managed resource.
    internetIp String
    (Available since v1.170.0) The Public IP of the container group.
    intranetIp String
    (Available since v1.170.0) The Private IP of the container group.
    status String
    The status of container group.

    Look up Existing ContainerGroup Resource

    Get an existing ContainerGroup 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?: ContainerGroupState, opts?: CustomResourceOptions): ContainerGroup
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            acr_registry_infos: Optional[Sequence[ContainerGroupAcrRegistryInfoArgs]] = None,
            auto_create_eip: Optional[bool] = None,
            auto_match_image_cache: Optional[bool] = None,
            container_group_name: Optional[str] = None,
            containers: Optional[Sequence[ContainerGroupContainerArgs]] = None,
            cpu: Optional[float] = None,
            dns_config: Optional[ContainerGroupDnsConfigArgs] = None,
            eip_bandwidth: Optional[int] = None,
            eip_instance_id: Optional[str] = None,
            host_aliases: Optional[Sequence[ContainerGroupHostAliasArgs]] = None,
            image_registry_credentials: Optional[Sequence[ContainerGroupImageRegistryCredentialArgs]] = None,
            init_containers: Optional[Sequence[ContainerGroupInitContainerArgs]] = None,
            insecure_registry: Optional[str] = None,
            instance_type: Optional[str] = None,
            internet_ip: Optional[str] = None,
            intranet_ip: Optional[str] = None,
            memory: Optional[float] = None,
            plain_http_registry: Optional[str] = None,
            ram_role_name: Optional[str] = None,
            resource_group_id: Optional[str] = None,
            restart_policy: Optional[str] = None,
            security_context: Optional[ContainerGroupSecurityContextArgs] = None,
            security_group_id: Optional[str] = None,
            spot_price_limit: Optional[float] = None,
            spot_strategy: Optional[str] = None,
            status: Optional[str] = None,
            tags: Optional[Mapping[str, Any]] = None,
            termination_grace_period_seconds: Optional[int] = None,
            volumes: Optional[Sequence[ContainerGroupVolumeArgs]] = None,
            vswitch_id: Optional[str] = None,
            zone_id: Optional[str] = None) -> ContainerGroup
    func GetContainerGroup(ctx *Context, name string, id IDInput, state *ContainerGroupState, opts ...ResourceOption) (*ContainerGroup, error)
    public static ContainerGroup Get(string name, Input<string> id, ContainerGroupState? state, CustomResourceOptions? opts = null)
    public static ContainerGroup get(String name, Output<String> id, ContainerGroupState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AcrRegistryInfos List<Pulumi.AliCloud.Eci.Inputs.ContainerGroupAcrRegistryInfo>
    The ACR enterprise edition example properties. See acr_registry_info below.
    AutoCreateEip bool
    Specifies whether to automatically create an EIP and bind the EIP to the elastic container instance.
    AutoMatchImageCache bool
    Specifies whether to automatically match the image cache. Default value: false. Valid values: true and false.
    ContainerGroupName string
    The name of the container group.
    Containers List<Pulumi.AliCloud.Eci.Inputs.ContainerGroupContainer>
    The list of containers. See containers below.
    Cpu double
    The amount of CPU resources allocated to the container group.
    DnsConfig Pulumi.AliCloud.Eci.Inputs.ContainerGroupDnsConfig
    The structure of dnsConfig. See dns_config below.
    EipBandwidth int
    The bandwidth of the EIP. Default value: 5.
    EipInstanceId string
    The ID of the elastic IP address (EIP).
    HostAliases List<Pulumi.AliCloud.Eci.Inputs.ContainerGroupHostAlias>
    HostAliases. See host_aliases below.
    ImageRegistryCredentials List<Pulumi.AliCloud.Eci.Inputs.ContainerGroupImageRegistryCredential>
    The image registry credential. See image_registry_credential below.
    InitContainers List<Pulumi.AliCloud.Eci.Inputs.ContainerGroupInitContainer>
    The list of initContainers. See init_containers below.
    InsecureRegistry string
    The address of the self-built mirror warehouse. When creating an image cache using an image in a self-built image repository with a self-signed certificate, you need to configure this parameter to skip certificate authentication to avoid image pull failure due to certificate authentication failure.
    InstanceType string
    The type of the ECS instance.
    InternetIp string
    (Available since v1.170.0) The Public IP of the container group.
    IntranetIp string
    (Available since v1.170.0) The Private IP of the container group.
    Memory double
    The amount of memory resources allocated to the container group.
    PlainHttpRegistry string
    The address of the self-built mirror warehouse. When creating an image cache from an image in a self-built image repository using the HTTP protocol, you need to configure this parameter so that the ECI uses the HTTP protocol to pull the image to avoid image pull failure due to different protocols.
    RamRoleName string
    The RAM role that the container group assumes. ECI and ECS share the same RAM role.
    ResourceGroupId string
    The ID of the resource group. NOTE: From version 1.208.0, resource_group_id can be modified.
    RestartPolicy string
    The restart policy of the container group. Valid values: Always, Never, OnFailure.
    SecurityContext Pulumi.AliCloud.Eci.Inputs.ContainerGroupSecurityContext
    The security context of the container group. See security_context below.
    SecurityGroupId string
    The ID of the security group to which the container group belongs. Container groups within the same security group can access each other.
    SpotPriceLimit double
    The maximum hourly price of the ECI spot instance.
    SpotStrategy string
    Filter the results by ECI spot type. Valid values: NoSpot, SpotWithPriceLimit and SpotAsPriceGo. Default to NoSpot.
    Status string
    The status of container group.
    Tags Dictionary<string, object>
    A mapping of tags to assign to the resource.

    • Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
    • Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
    TerminationGracePeriodSeconds int
    The buffer time during which the program handles operations before the program stops. Unit: seconds.
    Volumes List<Pulumi.AliCloud.Eci.Inputs.ContainerGroupVolume>
    The list of volumes. See volumes below.
    VswitchId string
    The ID of the VSwitch. Currently, container groups can only be deployed in VPC networks. The number of IP addresses in the VSwitch CIDR block determines the maximum number of container groups that can be created in the VSwitch. Before you can create an ECI instance, plan the CIDR block of the VSwitch. NOTE: From version 1.208.0, You can specify up to 10 vswitch_id. Separate multiple vSwitch IDs with commas (,), such as vsw-,vsw-. attribute vswitch_id updating diff will be ignored when you set multiple vSwitchIds, there is only one valid vswitch_id exists in the set vSwitchIds.
    ZoneId string
    The ID of the zone where you want to deploy the container group. If no value is specified, the system assigns a zone to the container group. By default, no value is specified.
    AcrRegistryInfos []ContainerGroupAcrRegistryInfoArgs
    The ACR enterprise edition example properties. See acr_registry_info below.
    AutoCreateEip bool
    Specifies whether to automatically create an EIP and bind the EIP to the elastic container instance.
    AutoMatchImageCache bool
    Specifies whether to automatically match the image cache. Default value: false. Valid values: true and false.
    ContainerGroupName string
    The name of the container group.
    Containers []ContainerGroupContainerArgs
    The list of containers. See containers below.
    Cpu float64
    The amount of CPU resources allocated to the container group.
    DnsConfig ContainerGroupDnsConfigArgs
    The structure of dnsConfig. See dns_config below.
    EipBandwidth int
    The bandwidth of the EIP. Default value: 5.
    EipInstanceId string
    The ID of the elastic IP address (EIP).
    HostAliases []ContainerGroupHostAliasArgs
    HostAliases. See host_aliases below.
    ImageRegistryCredentials []ContainerGroupImageRegistryCredentialArgs
    The image registry credential. See image_registry_credential below.
    InitContainers []ContainerGroupInitContainerArgs
    The list of initContainers. See init_containers below.
    InsecureRegistry string
    The address of the self-built mirror warehouse. When creating an image cache using an image in a self-built image repository with a self-signed certificate, you need to configure this parameter to skip certificate authentication to avoid image pull failure due to certificate authentication failure.
    InstanceType string
    The type of the ECS instance.
    InternetIp string
    (Available since v1.170.0) The Public IP of the container group.
    IntranetIp string
    (Available since v1.170.0) The Private IP of the container group.
    Memory float64
    The amount of memory resources allocated to the container group.
    PlainHttpRegistry string
    The address of the self-built mirror warehouse. When creating an image cache from an image in a self-built image repository using the HTTP protocol, you need to configure this parameter so that the ECI uses the HTTP protocol to pull the image to avoid image pull failure due to different protocols.
    RamRoleName string
    The RAM role that the container group assumes. ECI and ECS share the same RAM role.
    ResourceGroupId string
    The ID of the resource group. NOTE: From version 1.208.0, resource_group_id can be modified.
    RestartPolicy string
    The restart policy of the container group. Valid values: Always, Never, OnFailure.
    SecurityContext ContainerGroupSecurityContextArgs
    The security context of the container group. See security_context below.
    SecurityGroupId string
    The ID of the security group to which the container group belongs. Container groups within the same security group can access each other.
    SpotPriceLimit float64
    The maximum hourly price of the ECI spot instance.
    SpotStrategy string
    Filter the results by ECI spot type. Valid values: NoSpot, SpotWithPriceLimit and SpotAsPriceGo. Default to NoSpot.
    Status string
    The status of container group.
    Tags map[string]interface{}
    A mapping of tags to assign to the resource.

    • Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
    • Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
    TerminationGracePeriodSeconds int
    The buffer time during which the program handles operations before the program stops. Unit: seconds.
    Volumes []ContainerGroupVolumeArgs
    The list of volumes. See volumes below.
    VswitchId string
    The ID of the VSwitch. Currently, container groups can only be deployed in VPC networks. The number of IP addresses in the VSwitch CIDR block determines the maximum number of container groups that can be created in the VSwitch. Before you can create an ECI instance, plan the CIDR block of the VSwitch. NOTE: From version 1.208.0, You can specify up to 10 vswitch_id. Separate multiple vSwitch IDs with commas (,), such as vsw-,vsw-. attribute vswitch_id updating diff will be ignored when you set multiple vSwitchIds, there is only one valid vswitch_id exists in the set vSwitchIds.
    ZoneId string
    The ID of the zone where you want to deploy the container group. If no value is specified, the system assigns a zone to the container group. By default, no value is specified.
    acrRegistryInfos List<ContainerGroupAcrRegistryInfo>
    The ACR enterprise edition example properties. See acr_registry_info below.
    autoCreateEip Boolean
    Specifies whether to automatically create an EIP and bind the EIP to the elastic container instance.
    autoMatchImageCache Boolean
    Specifies whether to automatically match the image cache. Default value: false. Valid values: true and false.
    containerGroupName String
    The name of the container group.
    containers List<ContainerGroupContainer>
    The list of containers. See containers below.
    cpu Double
    The amount of CPU resources allocated to the container group.
    dnsConfig ContainerGroupDnsConfig
    The structure of dnsConfig. See dns_config below.
    eipBandwidth Integer
    The bandwidth of the EIP. Default value: 5.
    eipInstanceId String
    The ID of the elastic IP address (EIP).
    hostAliases List<ContainerGroupHostAlias>
    HostAliases. See host_aliases below.
    imageRegistryCredentials List<ContainerGroupImageRegistryCredential>
    The image registry credential. See image_registry_credential below.
    initContainers List<ContainerGroupInitContainer>
    The list of initContainers. See init_containers below.
    insecureRegistry String
    The address of the self-built mirror warehouse. When creating an image cache using an image in a self-built image repository with a self-signed certificate, you need to configure this parameter to skip certificate authentication to avoid image pull failure due to certificate authentication failure.
    instanceType String
    The type of the ECS instance.
    internetIp String
    (Available since v1.170.0) The Public IP of the container group.
    intranetIp String
    (Available since v1.170.0) The Private IP of the container group.
    memory Double
    The amount of memory resources allocated to the container group.
    plainHttpRegistry String
    The address of the self-built mirror warehouse. When creating an image cache from an image in a self-built image repository using the HTTP protocol, you need to configure this parameter so that the ECI uses the HTTP protocol to pull the image to avoid image pull failure due to different protocols.
    ramRoleName String
    The RAM role that the container group assumes. ECI and ECS share the same RAM role.
    resourceGroupId String
    The ID of the resource group. NOTE: From version 1.208.0, resource_group_id can be modified.
    restartPolicy String
    The restart policy of the container group. Valid values: Always, Never, OnFailure.
    securityContext ContainerGroupSecurityContext
    The security context of the container group. See security_context below.
    securityGroupId String
    The ID of the security group to which the container group belongs. Container groups within the same security group can access each other.
    spotPriceLimit Double
    The maximum hourly price of the ECI spot instance.
    spotStrategy String
    Filter the results by ECI spot type. Valid values: NoSpot, SpotWithPriceLimit and SpotAsPriceGo. Default to NoSpot.
    status String
    The status of container group.
    tags Map<String,Object>
    A mapping of tags to assign to the resource.

    • Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
    • Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
    terminationGracePeriodSeconds Integer
    The buffer time during which the program handles operations before the program stops. Unit: seconds.
    volumes List<ContainerGroupVolume>
    The list of volumes. See volumes below.
    vswitchId String
    The ID of the VSwitch. Currently, container groups can only be deployed in VPC networks. The number of IP addresses in the VSwitch CIDR block determines the maximum number of container groups that can be created in the VSwitch. Before you can create an ECI instance, plan the CIDR block of the VSwitch. NOTE: From version 1.208.0, You can specify up to 10 vswitch_id. Separate multiple vSwitch IDs with commas (,), such as vsw-,vsw-. attribute vswitch_id updating diff will be ignored when you set multiple vSwitchIds, there is only one valid vswitch_id exists in the set vSwitchIds.
    zoneId String
    The ID of the zone where you want to deploy the container group. If no value is specified, the system assigns a zone to the container group. By default, no value is specified.
    acrRegistryInfos ContainerGroupAcrRegistryInfo[]
    The ACR enterprise edition example properties. See acr_registry_info below.
    autoCreateEip boolean
    Specifies whether to automatically create an EIP and bind the EIP to the elastic container instance.
    autoMatchImageCache boolean
    Specifies whether to automatically match the image cache. Default value: false. Valid values: true and false.
    containerGroupName string
    The name of the container group.
    containers ContainerGroupContainer[]
    The list of containers. See containers below.
    cpu number
    The amount of CPU resources allocated to the container group.
    dnsConfig ContainerGroupDnsConfig
    The structure of dnsConfig. See dns_config below.
    eipBandwidth number
    The bandwidth of the EIP. Default value: 5.
    eipInstanceId string
    The ID of the elastic IP address (EIP).
    hostAliases ContainerGroupHostAlias[]
    HostAliases. See host_aliases below.
    imageRegistryCredentials ContainerGroupImageRegistryCredential[]
    The image registry credential. See image_registry_credential below.
    initContainers ContainerGroupInitContainer[]
    The list of initContainers. See init_containers below.
    insecureRegistry string
    The address of the self-built mirror warehouse. When creating an image cache using an image in a self-built image repository with a self-signed certificate, you need to configure this parameter to skip certificate authentication to avoid image pull failure due to certificate authentication failure.
    instanceType string
    The type of the ECS instance.
    internetIp string
    (Available since v1.170.0) The Public IP of the container group.
    intranetIp string
    (Available since v1.170.0) The Private IP of the container group.
    memory number
    The amount of memory resources allocated to the container group.
    plainHttpRegistry string
    The address of the self-built mirror warehouse. When creating an image cache from an image in a self-built image repository using the HTTP protocol, you need to configure this parameter so that the ECI uses the HTTP protocol to pull the image to avoid image pull failure due to different protocols.
    ramRoleName string
    The RAM role that the container group assumes. ECI and ECS share the same RAM role.
    resourceGroupId string
    The ID of the resource group. NOTE: From version 1.208.0, resource_group_id can be modified.
    restartPolicy string
    The restart policy of the container group. Valid values: Always, Never, OnFailure.
    securityContext ContainerGroupSecurityContext
    The security context of the container group. See security_context below.
    securityGroupId string
    The ID of the security group to which the container group belongs. Container groups within the same security group can access each other.
    spotPriceLimit number
    The maximum hourly price of the ECI spot instance.
    spotStrategy string
    Filter the results by ECI spot type. Valid values: NoSpot, SpotWithPriceLimit and SpotAsPriceGo. Default to NoSpot.
    status string
    The status of container group.
    tags {[key: string]: any}
    A mapping of tags to assign to the resource.

    • Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
    • Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
    terminationGracePeriodSeconds number
    The buffer time during which the program handles operations before the program stops. Unit: seconds.
    volumes ContainerGroupVolume[]
    The list of volumes. See volumes below.
    vswitchId string
    The ID of the VSwitch. Currently, container groups can only be deployed in VPC networks. The number of IP addresses in the VSwitch CIDR block determines the maximum number of container groups that can be created in the VSwitch. Before you can create an ECI instance, plan the CIDR block of the VSwitch. NOTE: From version 1.208.0, You can specify up to 10 vswitch_id. Separate multiple vSwitch IDs with commas (,), such as vsw-,vsw-. attribute vswitch_id updating diff will be ignored when you set multiple vSwitchIds, there is only one valid vswitch_id exists in the set vSwitchIds.
    zoneId string
    The ID of the zone where you want to deploy the container group. If no value is specified, the system assigns a zone to the container group. By default, no value is specified.
    acr_registry_infos Sequence[ContainerGroupAcrRegistryInfoArgs]
    The ACR enterprise edition example properties. See acr_registry_info below.
    auto_create_eip bool
    Specifies whether to automatically create an EIP and bind the EIP to the elastic container instance.
    auto_match_image_cache bool
    Specifies whether to automatically match the image cache. Default value: false. Valid values: true and false.
    container_group_name str
    The name of the container group.
    containers Sequence[ContainerGroupContainerArgs]
    The list of containers. See containers below.
    cpu float
    The amount of CPU resources allocated to the container group.
    dns_config ContainerGroupDnsConfigArgs
    The structure of dnsConfig. See dns_config below.
    eip_bandwidth int
    The bandwidth of the EIP. Default value: 5.
    eip_instance_id str
    The ID of the elastic IP address (EIP).
    host_aliases Sequence[ContainerGroupHostAliasArgs]
    HostAliases. See host_aliases below.
    image_registry_credentials Sequence[ContainerGroupImageRegistryCredentialArgs]
    The image registry credential. See image_registry_credential below.
    init_containers Sequence[ContainerGroupInitContainerArgs]
    The list of initContainers. See init_containers below.
    insecure_registry str
    The address of the self-built mirror warehouse. When creating an image cache using an image in a self-built image repository with a self-signed certificate, you need to configure this parameter to skip certificate authentication to avoid image pull failure due to certificate authentication failure.
    instance_type str
    The type of the ECS instance.
    internet_ip str
    (Available since v1.170.0) The Public IP of the container group.
    intranet_ip str
    (Available since v1.170.0) The Private IP of the container group.
    memory float
    The amount of memory resources allocated to the container group.
    plain_http_registry str
    The address of the self-built mirror warehouse. When creating an image cache from an image in a self-built image repository using the HTTP protocol, you need to configure this parameter so that the ECI uses the HTTP protocol to pull the image to avoid image pull failure due to different protocols.
    ram_role_name str
    The RAM role that the container group assumes. ECI and ECS share the same RAM role.
    resource_group_id str
    The ID of the resource group. NOTE: From version 1.208.0, resource_group_id can be modified.
    restart_policy str
    The restart policy of the container group. Valid values: Always, Never, OnFailure.
    security_context ContainerGroupSecurityContextArgs
    The security context of the container group. See security_context below.
    security_group_id str
    The ID of the security group to which the container group belongs. Container groups within the same security group can access each other.
    spot_price_limit float
    The maximum hourly price of the ECI spot instance.
    spot_strategy str
    Filter the results by ECI spot type. Valid values: NoSpot, SpotWithPriceLimit and SpotAsPriceGo. Default to NoSpot.
    status str
    The status of container group.
    tags Mapping[str, Any]
    A mapping of tags to assign to the resource.

    • Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
    • Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
    termination_grace_period_seconds int
    The buffer time during which the program handles operations before the program stops. Unit: seconds.
    volumes Sequence[ContainerGroupVolumeArgs]
    The list of volumes. See volumes below.
    vswitch_id str
    The ID of the VSwitch. Currently, container groups can only be deployed in VPC networks. The number of IP addresses in the VSwitch CIDR block determines the maximum number of container groups that can be created in the VSwitch. Before you can create an ECI instance, plan the CIDR block of the VSwitch. NOTE: From version 1.208.0, You can specify up to 10 vswitch_id. Separate multiple vSwitch IDs with commas (,), such as vsw-,vsw-. attribute vswitch_id updating diff will be ignored when you set multiple vSwitchIds, there is only one valid vswitch_id exists in the set vSwitchIds.
    zone_id str
    The ID of the zone where you want to deploy the container group. If no value is specified, the system assigns a zone to the container group. By default, no value is specified.
    acrRegistryInfos List<Property Map>
    The ACR enterprise edition example properties. See acr_registry_info below.
    autoCreateEip Boolean
    Specifies whether to automatically create an EIP and bind the EIP to the elastic container instance.
    autoMatchImageCache Boolean
    Specifies whether to automatically match the image cache. Default value: false. Valid values: true and false.
    containerGroupName String
    The name of the container group.
    containers List<Property Map>
    The list of containers. See containers below.
    cpu Number
    The amount of CPU resources allocated to the container group.
    dnsConfig Property Map
    The structure of dnsConfig. See dns_config below.
    eipBandwidth Number
    The bandwidth of the EIP. Default value: 5.
    eipInstanceId String
    The ID of the elastic IP address (EIP).
    hostAliases List<Property Map>
    HostAliases. See host_aliases below.
    imageRegistryCredentials List<Property Map>
    The image registry credential. See image_registry_credential below.
    initContainers List<Property Map>
    The list of initContainers. See init_containers below.
    insecureRegistry String
    The address of the self-built mirror warehouse. When creating an image cache using an image in a self-built image repository with a self-signed certificate, you need to configure this parameter to skip certificate authentication to avoid image pull failure due to certificate authentication failure.
    instanceType String
    The type of the ECS instance.
    internetIp String
    (Available since v1.170.0) The Public IP of the container group.
    intranetIp String
    (Available since v1.170.0) The Private IP of the container group.
    memory Number
    The amount of memory resources allocated to the container group.
    plainHttpRegistry String
    The address of the self-built mirror warehouse. When creating an image cache from an image in a self-built image repository using the HTTP protocol, you need to configure this parameter so that the ECI uses the HTTP protocol to pull the image to avoid image pull failure due to different protocols.
    ramRoleName String
    The RAM role that the container group assumes. ECI and ECS share the same RAM role.
    resourceGroupId String
    The ID of the resource group. NOTE: From version 1.208.0, resource_group_id can be modified.
    restartPolicy String
    The restart policy of the container group. Valid values: Always, Never, OnFailure.
    securityContext Property Map
    The security context of the container group. See security_context below.
    securityGroupId String
    The ID of the security group to which the container group belongs. Container groups within the same security group can access each other.
    spotPriceLimit Number
    The maximum hourly price of the ECI spot instance.
    spotStrategy String
    Filter the results by ECI spot type. Valid values: NoSpot, SpotWithPriceLimit and SpotAsPriceGo. Default to NoSpot.
    status String
    The status of container group.
    tags Map<Any>
    A mapping of tags to assign to the resource.

    • Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
    • Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
    terminationGracePeriodSeconds Number
    The buffer time during which the program handles operations before the program stops. Unit: seconds.
    volumes List<Property Map>
    The list of volumes. See volumes below.
    vswitchId String
    The ID of the VSwitch. Currently, container groups can only be deployed in VPC networks. The number of IP addresses in the VSwitch CIDR block determines the maximum number of container groups that can be created in the VSwitch. Before you can create an ECI instance, plan the CIDR block of the VSwitch. NOTE: From version 1.208.0, You can specify up to 10 vswitch_id. Separate multiple vSwitch IDs with commas (,), such as vsw-,vsw-. attribute vswitch_id updating diff will be ignored when you set multiple vSwitchIds, there is only one valid vswitch_id exists in the set vSwitchIds.
    zoneId String
    The ID of the zone where you want to deploy the container group. If no value is specified, the system assigns a zone to the container group. By default, no value is specified.

    Supporting Types

    ContainerGroupAcrRegistryInfo, ContainerGroupAcrRegistryInfoArgs

    Domains List<string>
    The domain name of the ACR Enterprise Edition instance. Defaults to all domain names of the corresponding instance. Support specifying individual domain names, multiple separated by half comma.
    InstanceId string
    The ACR enterprise edition example ID.
    InstanceName string
    The name of the ACR enterprise edition instance.
    RegionId string
    The ACR enterprise edition instance belongs to the region.
    Domains []string
    The domain name of the ACR Enterprise Edition instance. Defaults to all domain names of the corresponding instance. Support specifying individual domain names, multiple separated by half comma.
    InstanceId string
    The ACR enterprise edition example ID.
    InstanceName string
    The name of the ACR enterprise edition instance.
    RegionId string
    The ACR enterprise edition instance belongs to the region.
    domains List<String>
    The domain name of the ACR Enterprise Edition instance. Defaults to all domain names of the corresponding instance. Support specifying individual domain names, multiple separated by half comma.
    instanceId String
    The ACR enterprise edition example ID.
    instanceName String
    The name of the ACR enterprise edition instance.
    regionId String
    The ACR enterprise edition instance belongs to the region.
    domains string[]
    The domain name of the ACR Enterprise Edition instance. Defaults to all domain names of the corresponding instance. Support specifying individual domain names, multiple separated by half comma.
    instanceId string
    The ACR enterprise edition example ID.
    instanceName string
    The name of the ACR enterprise edition instance.
    regionId string
    The ACR enterprise edition instance belongs to the region.
    domains Sequence[str]
    The domain name of the ACR Enterprise Edition instance. Defaults to all domain names of the corresponding instance. Support specifying individual domain names, multiple separated by half comma.
    instance_id str
    The ACR enterprise edition example ID.
    instance_name str
    The name of the ACR enterprise edition instance.
    region_id str
    The ACR enterprise edition instance belongs to the region.
    domains List<String>
    The domain name of the ACR Enterprise Edition instance. Defaults to all domain names of the corresponding instance. Support specifying individual domain names, multiple separated by half comma.
    instanceId String
    The ACR enterprise edition example ID.
    instanceName String
    The name of the ACR enterprise edition instance.
    regionId String
    The ACR enterprise edition instance belongs to the region.

    ContainerGroupContainer, ContainerGroupContainerArgs

    Image string
    The image of the container.
    Name string
    The name of the mounted volume.
    Args List<string>
    The arguments passed to the commands.
    Commands List<string>
    Commands to be executed inside the container when performing health checks using the command line method.
    Cpu double
    The amount of CPU resources allocated to the container. Default value: 0.
    EnvironmentVars List<Pulumi.AliCloud.Eci.Inputs.ContainerGroupContainerEnvironmentVar>
    The structure of environmentVars. See environment_vars below.
    Gpu int
    The number GPUs. Default value: 0.
    ImagePullPolicy string
    The restart policy of the image. Default value: IfNotPresent. Valid values: Always, IfNotPresent, Never.
    LifecyclePreStopHandlerExecs List<string>
    The commands to be executed in containers when you use the CLI to specify the preStop callback function.
    LivenessProbes List<Pulumi.AliCloud.Eci.Inputs.ContainerGroupContainerLivenessProbe>
    The health check of the container. See liveness_probe below.
    Memory double
    The amount of memory resources allocated to the container. Default value: 0.
    Ports List<Pulumi.AliCloud.Eci.Inputs.ContainerGroupContainerPort>
    The structure of port. See ports below.
    ReadinessProbes List<Pulumi.AliCloud.Eci.Inputs.ContainerGroupContainerReadinessProbe>
    The health check of the container. See readiness_probe below.
    Ready bool
    Indicates whether the container passed the readiness probe.
    RestartCount int
    The number of times that the container restarted.
    SecurityContexts List<Pulumi.AliCloud.Eci.Inputs.ContainerGroupContainerSecurityContext>
    The security context of the container. See security_context below.
    VolumeMounts List<Pulumi.AliCloud.Eci.Inputs.ContainerGroupContainerVolumeMount>
    The structure of volumeMounts. See volume_mounts below.
    WorkingDir string
    The working directory of the container.
    Image string
    The image of the container.
    Name string
    The name of the mounted volume.
    Args []string
    The arguments passed to the commands.
    Commands []string
    Commands to be executed inside the container when performing health checks using the command line method.
    Cpu float64
    The amount of CPU resources allocated to the container. Default value: 0.
    EnvironmentVars []ContainerGroupContainerEnvironmentVar
    The structure of environmentVars. See environment_vars below.
    Gpu int
    The number GPUs. Default value: 0.
    ImagePullPolicy string
    The restart policy of the image. Default value: IfNotPresent. Valid values: Always, IfNotPresent, Never.
    LifecyclePreStopHandlerExecs []string
    The commands to be executed in containers when you use the CLI to specify the preStop callback function.
    LivenessProbes []ContainerGroupContainerLivenessProbe
    The health check of the container. See liveness_probe below.
    Memory float64
    The amount of memory resources allocated to the container. Default value: 0.
    Ports []ContainerGroupContainerPort
    The structure of port. See ports below.
    ReadinessProbes []ContainerGroupContainerReadinessProbe
    The health check of the container. See readiness_probe below.
    Ready bool
    Indicates whether the container passed the readiness probe.
    RestartCount int
    The number of times that the container restarted.
    SecurityContexts []ContainerGroupContainerSecurityContext
    The security context of the container. See security_context below.
    VolumeMounts []ContainerGroupContainerVolumeMount
    The structure of volumeMounts. See volume_mounts below.
    WorkingDir string
    The working directory of the container.
    image String
    The image of the container.
    name String
    The name of the mounted volume.
    args List<String>
    The arguments passed to the commands.
    commands List<String>
    Commands to be executed inside the container when performing health checks using the command line method.
    cpu Double
    The amount of CPU resources allocated to the container. Default value: 0.
    environmentVars List<ContainerGroupContainerEnvironmentVar>
    The structure of environmentVars. See environment_vars below.
    gpu Integer
    The number GPUs. Default value: 0.
    imagePullPolicy String
    The restart policy of the image. Default value: IfNotPresent. Valid values: Always, IfNotPresent, Never.
    lifecyclePreStopHandlerExecs List<String>
    The commands to be executed in containers when you use the CLI to specify the preStop callback function.
    livenessProbes List<ContainerGroupContainerLivenessProbe>
    The health check of the container. See liveness_probe below.
    memory Double
    The amount of memory resources allocated to the container. Default value: 0.
    ports List<ContainerGroupContainerPort>
    The structure of port. See ports below.
    readinessProbes List<ContainerGroupContainerReadinessProbe>
    The health check of the container. See readiness_probe below.
    ready Boolean
    Indicates whether the container passed the readiness probe.
    restartCount Integer
    The number of times that the container restarted.
    securityContexts List<ContainerGroupContainerSecurityContext>
    The security context of the container. See security_context below.
    volumeMounts List<ContainerGroupContainerVolumeMount>
    The structure of volumeMounts. See volume_mounts below.
    workingDir String
    The working directory of the container.
    image string
    The image of the container.
    name string
    The name of the mounted volume.
    args string[]
    The arguments passed to the commands.
    commands string[]
    Commands to be executed inside the container when performing health checks using the command line method.
    cpu number
    The amount of CPU resources allocated to the container. Default value: 0.
    environmentVars ContainerGroupContainerEnvironmentVar[]
    The structure of environmentVars. See environment_vars below.
    gpu number
    The number GPUs. Default value: 0.
    imagePullPolicy string
    The restart policy of the image. Default value: IfNotPresent. Valid values: Always, IfNotPresent, Never.
    lifecyclePreStopHandlerExecs string[]
    The commands to be executed in containers when you use the CLI to specify the preStop callback function.
    livenessProbes ContainerGroupContainerLivenessProbe[]
    The health check of the container. See liveness_probe below.
    memory number
    The amount of memory resources allocated to the container. Default value: 0.
    ports ContainerGroupContainerPort[]
    The structure of port. See ports below.
    readinessProbes ContainerGroupContainerReadinessProbe[]
    The health check of the container. See readiness_probe below.
    ready boolean
    Indicates whether the container passed the readiness probe.
    restartCount number
    The number of times that the container restarted.
    securityContexts ContainerGroupContainerSecurityContext[]
    The security context of the container. See security_context below.
    volumeMounts ContainerGroupContainerVolumeMount[]
    The structure of volumeMounts. See volume_mounts below.
    workingDir string
    The working directory of the container.
    image str
    The image of the container.
    name str
    The name of the mounted volume.
    args Sequence[str]
    The arguments passed to the commands.
    commands Sequence[str]
    Commands to be executed inside the container when performing health checks using the command line method.
    cpu float
    The amount of CPU resources allocated to the container. Default value: 0.
    environment_vars Sequence[ContainerGroupContainerEnvironmentVar]
    The structure of environmentVars. See environment_vars below.
    gpu int
    The number GPUs. Default value: 0.
    image_pull_policy str
    The restart policy of the image. Default value: IfNotPresent. Valid values: Always, IfNotPresent, Never.
    lifecycle_pre_stop_handler_execs Sequence[str]
    The commands to be executed in containers when you use the CLI to specify the preStop callback function.
    liveness_probes Sequence[ContainerGroupContainerLivenessProbe]
    The health check of the container. See liveness_probe below.
    memory float
    The amount of memory resources allocated to the container. Default value: 0.
    ports Sequence[ContainerGroupContainerPort]
    The structure of port. See ports below.
    readiness_probes Sequence[ContainerGroupContainerReadinessProbe]
    The health check of the container. See readiness_probe below.
    ready bool
    Indicates whether the container passed the readiness probe.
    restart_count int
    The number of times that the container restarted.
    security_contexts Sequence[ContainerGroupContainerSecurityContext]
    The security context of the container. See security_context below.
    volume_mounts Sequence[ContainerGroupContainerVolumeMount]
    The structure of volumeMounts. See volume_mounts below.
    working_dir str
    The working directory of the container.
    image String
    The image of the container.
    name String
    The name of the mounted volume.
    args List<String>
    The arguments passed to the commands.
    commands List<String>
    Commands to be executed inside the container when performing health checks using the command line method.
    cpu Number
    The amount of CPU resources allocated to the container. Default value: 0.
    environmentVars List<Property Map>
    The structure of environmentVars. See environment_vars below.
    gpu Number
    The number GPUs. Default value: 0.
    imagePullPolicy String
    The restart policy of the image. Default value: IfNotPresent. Valid values: Always, IfNotPresent, Never.
    lifecyclePreStopHandlerExecs List<String>
    The commands to be executed in containers when you use the CLI to specify the preStop callback function.
    livenessProbes List<Property Map>
    The health check of the container. See liveness_probe below.
    memory Number
    The amount of memory resources allocated to the container. Default value: 0.
    ports List<Property Map>
    The structure of port. See ports below.
    readinessProbes List<Property Map>
    The health check of the container. See readiness_probe below.
    ready Boolean
    Indicates whether the container passed the readiness probe.
    restartCount Number
    The number of times that the container restarted.
    securityContexts List<Property Map>
    The security context of the container. See security_context below.
    volumeMounts List<Property Map>
    The structure of volumeMounts. See volume_mounts below.
    workingDir String
    The working directory of the container.

    ContainerGroupContainerEnvironmentVar, ContainerGroupContainerEnvironmentVarArgs

    FieldReves List<Pulumi.AliCloud.Eci.Inputs.ContainerGroupContainerEnvironmentVarFieldRef>
    The reference of the environment variable. See field_ref below.
    Key string
    The name of the variable. The name can be 1 to 128 characters in length and can contain letters, digits, and underscores (_). It cannot start with a digit.
    Value string
    The value of the variable. The value can be 0 to 256 characters in length.
    FieldReves []ContainerGroupContainerEnvironmentVarFieldRef
    The reference of the environment variable. See field_ref below.
    Key string
    The name of the variable. The name can be 1 to 128 characters in length and can contain letters, digits, and underscores (_). It cannot start with a digit.
    Value string
    The value of the variable. The value can be 0 to 256 characters in length.
    fieldReves List<ContainerGroupContainerEnvironmentVarFieldRef>
    The reference of the environment variable. See field_ref below.
    key String
    The name of the variable. The name can be 1 to 128 characters in length and can contain letters, digits, and underscores (_). It cannot start with a digit.
    value String
    The value of the variable. The value can be 0 to 256 characters in length.
    fieldReves ContainerGroupContainerEnvironmentVarFieldRef[]
    The reference of the environment variable. See field_ref below.
    key string
    The name of the variable. The name can be 1 to 128 characters in length and can contain letters, digits, and underscores (_). It cannot start with a digit.
    value string
    The value of the variable. The value can be 0 to 256 characters in length.
    field_reves Sequence[ContainerGroupContainerEnvironmentVarFieldRef]
    The reference of the environment variable. See field_ref below.
    key str
    The name of the variable. The name can be 1 to 128 characters in length and can contain letters, digits, and underscores (_). It cannot start with a digit.
    value str
    The value of the variable. The value can be 0 to 256 characters in length.
    fieldReves List<Property Map>
    The reference of the environment variable. See field_ref below.
    key String
    The name of the variable. The name can be 1 to 128 characters in length and can contain letters, digits, and underscores (_). It cannot start with a digit.
    value String
    The value of the variable. The value can be 0 to 256 characters in length.

    ContainerGroupContainerEnvironmentVarFieldRef, ContainerGroupContainerEnvironmentVarFieldRefArgs

    FieldPath string
    The path of the reference.
    FieldPath string
    The path of the reference.
    fieldPath String
    The path of the reference.
    fieldPath string
    The path of the reference.
    field_path str
    The path of the reference.
    fieldPath String
    The path of the reference.

    ContainerGroupContainerLivenessProbe, ContainerGroupContainerLivenessProbeArgs

    Execs List<Pulumi.AliCloud.Eci.Inputs.ContainerGroupContainerLivenessProbeExec>
    Health check using command line method. See exec below.
    FailureThreshold int
    Threshold for the number of checks that are determined to have failed since the last successful check (must be consecutive failures), default is 3.
    HttpGets List<Pulumi.AliCloud.Eci.Inputs.ContainerGroupContainerLivenessProbeHttpGet>
    Health check using HTTP request method. See http_get below.
    InitialDelaySeconds int
    Check the time to start execution, calculated from the completion of container startup.
    PeriodSeconds int
    Buffer time for the program to handle operations before closing.
    SuccessThreshold int
    The check count threshold for re-identifying successful checks since the last failed check (must be consecutive successes), default is 1. Current must be 1.
    TcpSockets List<Pulumi.AliCloud.Eci.Inputs.ContainerGroupContainerLivenessProbeTcpSocket>
    Health check using TCP socket method. See tcp_socket below.
    TimeoutSeconds int
    Check the timeout, the default is 1 second, the minimum is 1 second.
    Execs []ContainerGroupContainerLivenessProbeExec
    Health check using command line method. See exec below.
    FailureThreshold int
    Threshold for the number of checks that are determined to have failed since the last successful check (must be consecutive failures), default is 3.
    HttpGets []ContainerGroupContainerLivenessProbeHttpGet
    Health check using HTTP request method. See http_get below.
    InitialDelaySeconds int
    Check the time to start execution, calculated from the completion of container startup.
    PeriodSeconds int
    Buffer time for the program to handle operations before closing.
    SuccessThreshold int
    The check count threshold for re-identifying successful checks since the last failed check (must be consecutive successes), default is 1. Current must be 1.
    TcpSockets []ContainerGroupContainerLivenessProbeTcpSocket
    Health check using TCP socket method. See tcp_socket below.
    TimeoutSeconds int
    Check the timeout, the default is 1 second, the minimum is 1 second.
    execs List<ContainerGroupContainerLivenessProbeExec>
    Health check using command line method. See exec below.
    failureThreshold Integer
    Threshold for the number of checks that are determined to have failed since the last successful check (must be consecutive failures), default is 3.
    httpGets List<ContainerGroupContainerLivenessProbeHttpGet>
    Health check using HTTP request method. See http_get below.
    initialDelaySeconds Integer
    Check the time to start execution, calculated from the completion of container startup.
    periodSeconds Integer
    Buffer time for the program to handle operations before closing.
    successThreshold Integer
    The check count threshold for re-identifying successful checks since the last failed check (must be consecutive successes), default is 1. Current must be 1.
    tcpSockets List<ContainerGroupContainerLivenessProbeTcpSocket>
    Health check using TCP socket method. See tcp_socket below.
    timeoutSeconds Integer
    Check the timeout, the default is 1 second, the minimum is 1 second.
    execs ContainerGroupContainerLivenessProbeExec[]
    Health check using command line method. See exec below.
    failureThreshold number
    Threshold for the number of checks that are determined to have failed since the last successful check (must be consecutive failures), default is 3.
    httpGets ContainerGroupContainerLivenessProbeHttpGet[]
    Health check using HTTP request method. See http_get below.
    initialDelaySeconds number
    Check the time to start execution, calculated from the completion of container startup.
    periodSeconds number
    Buffer time for the program to handle operations before closing.
    successThreshold number
    The check count threshold for re-identifying successful checks since the last failed check (must be consecutive successes), default is 1. Current must be 1.
    tcpSockets ContainerGroupContainerLivenessProbeTcpSocket[]
    Health check using TCP socket method. See tcp_socket below.
    timeoutSeconds number
    Check the timeout, the default is 1 second, the minimum is 1 second.
    execs Sequence[ContainerGroupContainerLivenessProbeExec]
    Health check using command line method. See exec below.
    failure_threshold int
    Threshold for the number of checks that are determined to have failed since the last successful check (must be consecutive failures), default is 3.
    http_gets Sequence[ContainerGroupContainerLivenessProbeHttpGet]
    Health check using HTTP request method. See http_get below.
    initial_delay_seconds int
    Check the time to start execution, calculated from the completion of container startup.
    period_seconds int
    Buffer time for the program to handle operations before closing.
    success_threshold int
    The check count threshold for re-identifying successful checks since the last failed check (must be consecutive successes), default is 1. Current must be 1.
    tcp_sockets Sequence[ContainerGroupContainerLivenessProbeTcpSocket]
    Health check using TCP socket method. See tcp_socket below.
    timeout_seconds int
    Check the timeout, the default is 1 second, the minimum is 1 second.
    execs List<Property Map>
    Health check using command line method. See exec below.
    failureThreshold Number
    Threshold for the number of checks that are determined to have failed since the last successful check (must be consecutive failures), default is 3.
    httpGets List<Property Map>
    Health check using HTTP request method. See http_get below.
    initialDelaySeconds Number
    Check the time to start execution, calculated from the completion of container startup.
    periodSeconds Number
    Buffer time for the program to handle operations before closing.
    successThreshold Number
    The check count threshold for re-identifying successful checks since the last failed check (must be consecutive successes), default is 1. Current must be 1.
    tcpSockets List<Property Map>
    Health check using TCP socket method. See tcp_socket below.
    timeoutSeconds Number
    Check the timeout, the default is 1 second, the minimum is 1 second.

    ContainerGroupContainerLivenessProbeExec, ContainerGroupContainerLivenessProbeExecArgs

    Commands List<string>
    Commands to be executed inside the container when performing health checks using the command line method.
    Commands []string
    Commands to be executed inside the container when performing health checks using the command line method.
    commands List<String>
    Commands to be executed inside the container when performing health checks using the command line method.
    commands string[]
    Commands to be executed inside the container when performing health checks using the command line method.
    commands Sequence[str]
    Commands to be executed inside the container when performing health checks using the command line method.
    commands List<String>
    Commands to be executed inside the container when performing health checks using the command line method.

    ContainerGroupContainerLivenessProbeHttpGet, ContainerGroupContainerLivenessProbeHttpGetArgs

    Path string
    The path of HTTP Get request detection when setting the postStart callback function using the HTTP request method.
    Port int
    When using the HTTP request method for health check, the port number for HTTP Get request detection.
    Scheme string
    The protocol type corresponding to the HTTP Get request when using the HTTP request method for health checks. Valid values: HTTP, HTTPS.
    Path string
    The path of HTTP Get request detection when setting the postStart callback function using the HTTP request method.
    Port int
    When using the HTTP request method for health check, the port number for HTTP Get request detection.
    Scheme string
    The protocol type corresponding to the HTTP Get request when using the HTTP request method for health checks. Valid values: HTTP, HTTPS.
    path String
    The path of HTTP Get request detection when setting the postStart callback function using the HTTP request method.
    port Integer
    When using the HTTP request method for health check, the port number for HTTP Get request detection.
    scheme String
    The protocol type corresponding to the HTTP Get request when using the HTTP request method for health checks. Valid values: HTTP, HTTPS.
    path string
    The path of HTTP Get request detection when setting the postStart callback function using the HTTP request method.
    port number
    When using the HTTP request method for health check, the port number for HTTP Get request detection.
    scheme string
    The protocol type corresponding to the HTTP Get request when using the HTTP request method for health checks. Valid values: HTTP, HTTPS.
    path str
    The path of HTTP Get request detection when setting the postStart callback function using the HTTP request method.
    port int
    When using the HTTP request method for health check, the port number for HTTP Get request detection.
    scheme str
    The protocol type corresponding to the HTTP Get request when using the HTTP request method for health checks. Valid values: HTTP, HTTPS.
    path String
    The path of HTTP Get request detection when setting the postStart callback function using the HTTP request method.
    port Number
    When using the HTTP request method for health check, the port number for HTTP Get request detection.
    scheme String
    The protocol type corresponding to the HTTP Get request when using the HTTP request method for health checks. Valid values: HTTP, HTTPS.

    ContainerGroupContainerLivenessProbeTcpSocket, ContainerGroupContainerLivenessProbeTcpSocketArgs

    Port int
    When using the HTTP request method for health check, the port number for HTTP Get request detection.
    Port int
    When using the HTTP request method for health check, the port number for HTTP Get request detection.
    port Integer
    When using the HTTP request method for health check, the port number for HTTP Get request detection.
    port number
    When using the HTTP request method for health check, the port number for HTTP Get request detection.
    port int
    When using the HTTP request method for health check, the port number for HTTP Get request detection.
    port Number
    When using the HTTP request method for health check, the port number for HTTP Get request detection.

    ContainerGroupContainerPort, ContainerGroupContainerPortArgs

    Port int
    When using the HTTP request method for health check, the port number for HTTP Get request detection.
    Protocol string
    The type of the protocol. Valid values: TCP and UDP.
    Port int
    When using the HTTP request method for health check, the port number for HTTP Get request detection.
    Protocol string
    The type of the protocol. Valid values: TCP and UDP.
    port Integer
    When using the HTTP request method for health check, the port number for HTTP Get request detection.
    protocol String
    The type of the protocol. Valid values: TCP and UDP.
    port number
    When using the HTTP request method for health check, the port number for HTTP Get request detection.
    protocol string
    The type of the protocol. Valid values: TCP and UDP.
    port int
    When using the HTTP request method for health check, the port number for HTTP Get request detection.
    protocol str
    The type of the protocol. Valid values: TCP and UDP.
    port Number
    When using the HTTP request method for health check, the port number for HTTP Get request detection.
    protocol String
    The type of the protocol. Valid values: TCP and UDP.

    ContainerGroupContainerReadinessProbe, ContainerGroupContainerReadinessProbeArgs

    Execs List<Pulumi.AliCloud.Eci.Inputs.ContainerGroupContainerReadinessProbeExec>
    Health check using command line method. See exec below.
    FailureThreshold int
    Threshold for the number of checks that are determined to have failed since the last successful check (must be consecutive failures), default is 3.
    HttpGets List<Pulumi.AliCloud.Eci.Inputs.ContainerGroupContainerReadinessProbeHttpGet>
    Health check using HTTP request method. See http_get below.
    InitialDelaySeconds int
    Check the time to start execution, calculated from the completion of container startup.
    PeriodSeconds int
    Buffer time for the program to handle operations before closing.
    SuccessThreshold int
    The check count threshold for re-identifying successful checks since the last failed check (must be consecutive successes), default is 1. Current must be 1.
    TcpSockets List<Pulumi.AliCloud.Eci.Inputs.ContainerGroupContainerReadinessProbeTcpSocket>
    Health check using TCP socket method. See tcp_socket below.
    TimeoutSeconds int
    Check the timeout, the default is 1 second, the minimum is 1 second.
    Execs []ContainerGroupContainerReadinessProbeExec
    Health check using command line method. See exec below.
    FailureThreshold int
    Threshold for the number of checks that are determined to have failed since the last successful check (must be consecutive failures), default is 3.
    HttpGets []ContainerGroupContainerReadinessProbeHttpGet
    Health check using HTTP request method. See http_get below.
    InitialDelaySeconds int
    Check the time to start execution, calculated from the completion of container startup.
    PeriodSeconds int
    Buffer time for the program to handle operations before closing.
    SuccessThreshold int
    The check count threshold for re-identifying successful checks since the last failed check (must be consecutive successes), default is 1. Current must be 1.
    TcpSockets []ContainerGroupContainerReadinessProbeTcpSocket
    Health check using TCP socket method. See tcp_socket below.
    TimeoutSeconds int
    Check the timeout, the default is 1 second, the minimum is 1 second.
    execs List<ContainerGroupContainerReadinessProbeExec>
    Health check using command line method. See exec below.
    failureThreshold Integer
    Threshold for the number of checks that are determined to have failed since the last successful check (must be consecutive failures), default is 3.
    httpGets List<ContainerGroupContainerReadinessProbeHttpGet>
    Health check using HTTP request method. See http_get below.
    initialDelaySeconds Integer
    Check the time to start execution, calculated from the completion of container startup.
    periodSeconds Integer
    Buffer time for the program to handle operations before closing.
    successThreshold Integer
    The check count threshold for re-identifying successful checks since the last failed check (must be consecutive successes), default is 1. Current must be 1.
    tcpSockets List<ContainerGroupContainerReadinessProbeTcpSocket>
    Health check using TCP socket method. See tcp_socket below.
    timeoutSeconds Integer
    Check the timeout, the default is 1 second, the minimum is 1 second.
    execs ContainerGroupContainerReadinessProbeExec[]
    Health check using command line method. See exec below.
    failureThreshold number
    Threshold for the number of checks that are determined to have failed since the last successful check (must be consecutive failures), default is 3.
    httpGets ContainerGroupContainerReadinessProbeHttpGet[]
    Health check using HTTP request method. See http_get below.
    initialDelaySeconds number
    Check the time to start execution, calculated from the completion of container startup.
    periodSeconds number
    Buffer time for the program to handle operations before closing.
    successThreshold number
    The check count threshold for re-identifying successful checks since the last failed check (must be consecutive successes), default is 1. Current must be 1.
    tcpSockets ContainerGroupContainerReadinessProbeTcpSocket[]
    Health check using TCP socket method. See tcp_socket below.
    timeoutSeconds number
    Check the timeout, the default is 1 second, the minimum is 1 second.
    execs Sequence[ContainerGroupContainerReadinessProbeExec]
    Health check using command line method. See exec below.
    failure_threshold int
    Threshold for the number of checks that are determined to have failed since the last successful check (must be consecutive failures), default is 3.
    http_gets Sequence[ContainerGroupContainerReadinessProbeHttpGet]
    Health check using HTTP request method. See http_get below.
    initial_delay_seconds int
    Check the time to start execution, calculated from the completion of container startup.
    period_seconds int
    Buffer time for the program to handle operations before closing.
    success_threshold int
    The check count threshold for re-identifying successful checks since the last failed check (must be consecutive successes), default is 1. Current must be 1.
    tcp_sockets Sequence[ContainerGroupContainerReadinessProbeTcpSocket]
    Health check using TCP socket method. See tcp_socket below.
    timeout_seconds int
    Check the timeout, the default is 1 second, the minimum is 1 second.
    execs List<Property Map>
    Health check using command line method. See exec below.
    failureThreshold Number
    Threshold for the number of checks that are determined to have failed since the last successful check (must be consecutive failures), default is 3.
    httpGets List<Property Map>
    Health check using HTTP request method. See http_get below.
    initialDelaySeconds Number
    Check the time to start execution, calculated from the completion of container startup.
    periodSeconds Number
    Buffer time for the program to handle operations before closing.
    successThreshold Number
    The check count threshold for re-identifying successful checks since the last failed check (must be consecutive successes), default is 1. Current must be 1.
    tcpSockets List<Property Map>
    Health check using TCP socket method. See tcp_socket below.
    timeoutSeconds Number
    Check the timeout, the default is 1 second, the minimum is 1 second.

    ContainerGroupContainerReadinessProbeExec, ContainerGroupContainerReadinessProbeExecArgs

    Commands List<string>
    Commands to be executed inside the container when performing health checks using the command line method.
    Commands []string
    Commands to be executed inside the container when performing health checks using the command line method.
    commands List<String>
    Commands to be executed inside the container when performing health checks using the command line method.
    commands string[]
    Commands to be executed inside the container when performing health checks using the command line method.
    commands Sequence[str]
    Commands to be executed inside the container when performing health checks using the command line method.
    commands List<String>
    Commands to be executed inside the container when performing health checks using the command line method.

    ContainerGroupContainerReadinessProbeHttpGet, ContainerGroupContainerReadinessProbeHttpGetArgs

    Path string
    The path of HTTP Get request detection when setting the postStart callback function using the HTTP request method.
    Port int
    When using the HTTP request method for health check, the port number for HTTP Get request detection.
    Scheme string
    The protocol type corresponding to the HTTP Get request when using the HTTP request method for health checks. Valid values: HTTP, HTTPS.
    Path string
    The path of HTTP Get request detection when setting the postStart callback function using the HTTP request method.
    Port int
    When using the HTTP request method for health check, the port number for HTTP Get request detection.
    Scheme string
    The protocol type corresponding to the HTTP Get request when using the HTTP request method for health checks. Valid values: HTTP, HTTPS.
    path String
    The path of HTTP Get request detection when setting the postStart callback function using the HTTP request method.
    port Integer
    When using the HTTP request method for health check, the port number for HTTP Get request detection.
    scheme String
    The protocol type corresponding to the HTTP Get request when using the HTTP request method for health checks. Valid values: HTTP, HTTPS.
    path string
    The path of HTTP Get request detection when setting the postStart callback function using the HTTP request method.
    port number
    When using the HTTP request method for health check, the port number for HTTP Get request detection.
    scheme string
    The protocol type corresponding to the HTTP Get request when using the HTTP request method for health checks. Valid values: HTTP, HTTPS.
    path str
    The path of HTTP Get request detection when setting the postStart callback function using the HTTP request method.
    port int
    When using the HTTP request method for health check, the port number for HTTP Get request detection.
    scheme str
    The protocol type corresponding to the HTTP Get request when using the HTTP request method for health checks. Valid values: HTTP, HTTPS.
    path String
    The path of HTTP Get request detection when setting the postStart callback function using the HTTP request method.
    port Number
    When using the HTTP request method for health check, the port number for HTTP Get request detection.
    scheme String
    The protocol type corresponding to the HTTP Get request when using the HTTP request method for health checks. Valid values: HTTP, HTTPS.

    ContainerGroupContainerReadinessProbeTcpSocket, ContainerGroupContainerReadinessProbeTcpSocketArgs

    Port int
    When using the HTTP request method for health check, the port number for HTTP Get request detection.
    Port int
    When using the HTTP request method for health check, the port number for HTTP Get request detection.
    port Integer
    When using the HTTP request method for health check, the port number for HTTP Get request detection.
    port number
    When using the HTTP request method for health check, the port number for HTTP Get request detection.
    port int
    When using the HTTP request method for health check, the port number for HTTP Get request detection.
    port Number
    When using the HTTP request method for health check, the port number for HTTP Get request detection.

    ContainerGroupContainerSecurityContext, ContainerGroupContainerSecurityContextArgs

    Capabilities List<Pulumi.AliCloud.Eci.Inputs.ContainerGroupContainerSecurityContextCapability>
    The permissions that you want to grant to the processes in the containers. See capability below.
    RunAsUser int
    The ID of the user who runs the container.
    Capabilities []ContainerGroupContainerSecurityContextCapability
    The permissions that you want to grant to the processes in the containers. See capability below.
    RunAsUser int
    The ID of the user who runs the container.
    capabilities List<ContainerGroupContainerSecurityContextCapability>
    The permissions that you want to grant to the processes in the containers. See capability below.
    runAsUser Integer
    The ID of the user who runs the container.
    capabilities ContainerGroupContainerSecurityContextCapability[]
    The permissions that you want to grant to the processes in the containers. See capability below.
    runAsUser number
    The ID of the user who runs the container.
    capabilities Sequence[ContainerGroupContainerSecurityContextCapability]
    The permissions that you want to grant to the processes in the containers. See capability below.
    run_as_user int
    The ID of the user who runs the container.
    capabilities List<Property Map>
    The permissions that you want to grant to the processes in the containers. See capability below.
    runAsUser Number
    The ID of the user who runs the container.

    ContainerGroupContainerSecurityContextCapability, ContainerGroupContainerSecurityContextCapabilityArgs

    Adds List<string>
    The permissions that you want to grant to the processes in the containers.
    Adds []string
    The permissions that you want to grant to the processes in the containers.
    adds List<String>
    The permissions that you want to grant to the processes in the containers.
    adds string[]
    The permissions that you want to grant to the processes in the containers.
    adds Sequence[str]
    The permissions that you want to grant to the processes in the containers.
    adds List<String>
    The permissions that you want to grant to the processes in the containers.

    ContainerGroupContainerVolumeMount, ContainerGroupContainerVolumeMountArgs

    MountPath string
    The directory of the mounted volume. Data under this directory will be overwritten by the data in the volume.
    Name string
    The name of the mounted volume.
    ReadOnly bool
    Specifies whether the volume is read-only. Default value: false.
    MountPath string
    The directory of the mounted volume. Data under this directory will be overwritten by the data in the volume.
    Name string
    The name of the mounted volume.
    ReadOnly bool
    Specifies whether the volume is read-only. Default value: false.
    mountPath String
    The directory of the mounted volume. Data under this directory will be overwritten by the data in the volume.
    name String
    The name of the mounted volume.
    readOnly Boolean
    Specifies whether the volume is read-only. Default value: false.
    mountPath string
    The directory of the mounted volume. Data under this directory will be overwritten by the data in the volume.
    name string
    The name of the mounted volume.
    readOnly boolean
    Specifies whether the volume is read-only. Default value: false.
    mount_path str
    The directory of the mounted volume. Data under this directory will be overwritten by the data in the volume.
    name str
    The name of the mounted volume.
    read_only bool
    Specifies whether the volume is read-only. Default value: false.
    mountPath String
    The directory of the mounted volume. Data under this directory will be overwritten by the data in the volume.
    name String
    The name of the mounted volume.
    readOnly Boolean
    Specifies whether the volume is read-only. Default value: false.

    ContainerGroupDnsConfig, ContainerGroupDnsConfigArgs

    NameServers List<string>
    The list of DNS server IP addresses.
    Options List<Pulumi.AliCloud.Eci.Inputs.ContainerGroupDnsConfigOption>
    The structure of options. See options below.
    Searches List<string>
    The list of DNS lookup domains.
    NameServers []string
    The list of DNS server IP addresses.
    Options []ContainerGroupDnsConfigOption
    The structure of options. See options below.
    Searches []string
    The list of DNS lookup domains.
    nameServers List<String>
    The list of DNS server IP addresses.
    options List<ContainerGroupDnsConfigOption>
    The structure of options. See options below.
    searches List<String>
    The list of DNS lookup domains.
    nameServers string[]
    The list of DNS server IP addresses.
    options ContainerGroupDnsConfigOption[]
    The structure of options. See options below.
    searches string[]
    The list of DNS lookup domains.
    name_servers Sequence[str]
    The list of DNS server IP addresses.
    options Sequence[ContainerGroupDnsConfigOption]
    The structure of options. See options below.
    searches Sequence[str]
    The list of DNS lookup domains.
    nameServers List<String>
    The list of DNS server IP addresses.
    options List<Property Map>
    The structure of options. See options below.
    searches List<String>
    The list of DNS lookup domains.

    ContainerGroupDnsConfigOption, ContainerGroupDnsConfigOptionArgs

    Name string
    The name of the mounted volume.
    Value string
    The value of the variable. The value can be 0 to 256 characters in length.
    Name string
    The name of the mounted volume.
    Value string
    The value of the variable. The value can be 0 to 256 characters in length.
    name String
    The name of the mounted volume.
    value String
    The value of the variable. The value can be 0 to 256 characters in length.
    name string
    The name of the mounted volume.
    value string
    The value of the variable. The value can be 0 to 256 characters in length.
    name str
    The name of the mounted volume.
    value str
    The value of the variable. The value can be 0 to 256 characters in length.
    name String
    The name of the mounted volume.
    value String
    The value of the variable. The value can be 0 to 256 characters in length.

    ContainerGroupHostAlias, ContainerGroupHostAliasArgs

    Hostnames List<string>
    The information about the host.
    Ip string
    The IP address of the host.
    Hostnames []string
    The information about the host.
    Ip string
    The IP address of the host.
    hostnames List<String>
    The information about the host.
    ip String
    The IP address of the host.
    hostnames string[]
    The information about the host.
    ip string
    The IP address of the host.
    hostnames Sequence[str]
    The information about the host.
    ip str
    The IP address of the host.
    hostnames List<String>
    The information about the host.
    ip String
    The IP address of the host.

    ContainerGroupImageRegistryCredential, ContainerGroupImageRegistryCredentialArgs

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

    ContainerGroupInitContainer, ContainerGroupInitContainerArgs

    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. Default value: 0.
    EnvironmentVars List<Pulumi.AliCloud.Eci.Inputs.ContainerGroupInitContainerEnvironmentVar>
    The structure of environmentVars. See environment_vars below.
    Gpu int
    The number GPUs. Default value: 0.
    Image string
    The image of the container.
    ImagePullPolicy string
    The restart policy of the image. Default value: IfNotPresent. Valid values: Always, IfNotPresent, Never.
    Memory double
    The amount of memory resources allocated to the container. Default value: 0.
    Name string
    The name of the mounted volume.
    Ports List<Pulumi.AliCloud.Eci.Inputs.ContainerGroupInitContainerPort>
    The structure of port. See ports below.
    Ready bool
    Indicates whether the container passed the readiness probe.
    RestartCount int
    The number of times that the container restarted.
    SecurityContexts List<Pulumi.AliCloud.Eci.Inputs.ContainerGroupInitContainerSecurityContext>
    The security context of the container. See security_context below.
    VolumeMounts List<Pulumi.AliCloud.Eci.Inputs.ContainerGroupInitContainerVolumeMount>
    The structure of volumeMounts. See volume_mounts below.
    WorkingDir string
    The working directory of the container.
    Args []string
    The arguments passed to the commands.
    Commands []string
    The commands run by the init container.
    Cpu float64
    The amount of CPU resources allocated to the container. Default value: 0.
    EnvironmentVars []ContainerGroupInitContainerEnvironmentVar
    The structure of environmentVars. See environment_vars below.
    Gpu int
    The number GPUs. Default value: 0.
    Image string
    The image of the container.
    ImagePullPolicy string
    The restart policy of the image. Default value: IfNotPresent. Valid values: Always, IfNotPresent, Never.
    Memory float64
    The amount of memory resources allocated to the container. Default value: 0.
    Name string
    The name of the mounted volume.
    Ports []ContainerGroupInitContainerPort
    The structure of port. See ports below.
    Ready bool
    Indicates whether the container passed the readiness probe.
    RestartCount int
    The number of times that the container restarted.
    SecurityContexts []ContainerGroupInitContainerSecurityContext
    The security context of the container. See security_context below.
    VolumeMounts []ContainerGroupInitContainerVolumeMount
    The structure of volumeMounts. See volume_mounts below.
    WorkingDir string
    The working directory of the container.
    args List<String>
    The arguments passed to the commands.
    commands List<String>
    The commands run by the init container.
    cpu Double
    The amount of CPU resources allocated to the container. Default value: 0.
    environmentVars List<ContainerGroupInitContainerEnvironmentVar>
    The structure of environmentVars. See environment_vars below.
    gpu Integer
    The number GPUs. Default value: 0.
    image String
    The image of the container.
    imagePullPolicy String
    The restart policy of the image. Default value: IfNotPresent. Valid values: Always, IfNotPresent, Never.
    memory Double
    The amount of memory resources allocated to the container. Default value: 0.
    name String
    The name of the mounted volume.
    ports List<ContainerGroupInitContainerPort>
    The structure of port. See ports below.
    ready Boolean
    Indicates whether the container passed the readiness probe.
    restartCount Integer
    The number of times that the container restarted.
    securityContexts List<ContainerGroupInitContainerSecurityContext>
    The security context of the container. See security_context below.
    volumeMounts List<ContainerGroupInitContainerVolumeMount>
    The structure of volumeMounts. See volume_mounts below.
    workingDir String
    The working directory of the container.
    args string[]
    The arguments passed to the commands.
    commands string[]
    The commands run by the init container.
    cpu number
    The amount of CPU resources allocated to the container. Default value: 0.
    environmentVars ContainerGroupInitContainerEnvironmentVar[]
    The structure of environmentVars. See environment_vars below.
    gpu number
    The number GPUs. Default value: 0.
    image string
    The image of the container.
    imagePullPolicy string
    The restart policy of the image. Default value: IfNotPresent. Valid values: Always, IfNotPresent, Never.
    memory number
    The amount of memory resources allocated to the container. Default value: 0.
    name string
    The name of the mounted volume.
    ports ContainerGroupInitContainerPort[]
    The structure of port. See ports below.
    ready boolean
    Indicates whether the container passed the readiness probe.
    restartCount number
    The number of times that the container restarted.
    securityContexts ContainerGroupInitContainerSecurityContext[]
    The security context of the container. See security_context below.
    volumeMounts ContainerGroupInitContainerVolumeMount[]
    The structure of volumeMounts. See volume_mounts below.
    workingDir string
    The working directory of the container.
    args Sequence[str]
    The arguments passed to the commands.
    commands Sequence[str]
    The commands run by the init container.
    cpu float
    The amount of CPU resources allocated to the container. Default value: 0.
    environment_vars Sequence[ContainerGroupInitContainerEnvironmentVar]
    The structure of environmentVars. See environment_vars below.
    gpu int
    The number GPUs. Default value: 0.
    image str
    The image of the container.
    image_pull_policy str
    The restart policy of the image. Default value: IfNotPresent. Valid values: Always, IfNotPresent, Never.
    memory float
    The amount of memory resources allocated to the container. Default value: 0.
    name str
    The name of the mounted volume.
    ports Sequence[ContainerGroupInitContainerPort]
    The structure of port. See ports below.
    ready bool
    Indicates whether the container passed the readiness probe.
    restart_count int
    The number of times that the container restarted.
    security_contexts Sequence[ContainerGroupInitContainerSecurityContext]
    The security context of the container. See security_context below.
    volume_mounts Sequence[ContainerGroupInitContainerVolumeMount]
    The structure of volumeMounts. See volume_mounts below.
    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. Default value: 0.
    environmentVars List<Property Map>
    The structure of environmentVars. See environment_vars below.
    gpu Number
    The number GPUs. Default value: 0.
    image String
    The image of the container.
    imagePullPolicy String
    The restart policy of the image. Default value: IfNotPresent. Valid values: Always, IfNotPresent, Never.
    memory Number
    The amount of memory resources allocated to the container. Default value: 0.
    name String
    The name of the mounted volume.
    ports List<Property Map>
    The structure of port. See ports below.
    ready Boolean
    Indicates whether the container passed the readiness probe.
    restartCount Number
    The number of times that the container restarted.
    securityContexts List<Property Map>
    The security context of the container. See security_context below.
    volumeMounts List<Property Map>
    The structure of volumeMounts. See volume_mounts below.
    workingDir String
    The working directory of the container.

    ContainerGroupInitContainerEnvironmentVar, ContainerGroupInitContainerEnvironmentVarArgs

    FieldReves List<Pulumi.AliCloud.Eci.Inputs.ContainerGroupInitContainerEnvironmentVarFieldRef>
    The reference of the environment variable. See field_ref below.
    Key string
    The name of the variable. The name can be 1 to 128 characters in length and can contain letters, digits, and underscores (_). It cannot start with a digit.
    Value string
    The value of the variable. The value can be 0 to 256 characters in length.
    FieldReves []ContainerGroupInitContainerEnvironmentVarFieldRef
    The reference of the environment variable. See field_ref below.
    Key string
    The name of the variable. The name can be 1 to 128 characters in length and can contain letters, digits, and underscores (_). It cannot start with a digit.
    Value string
    The value of the variable. The value can be 0 to 256 characters in length.
    fieldReves List<ContainerGroupInitContainerEnvironmentVarFieldRef>
    The reference of the environment variable. See field_ref below.
    key String
    The name of the variable. The name can be 1 to 128 characters in length and can contain letters, digits, and underscores (_). It cannot start with a digit.
    value String
    The value of the variable. The value can be 0 to 256 characters in length.
    fieldReves ContainerGroupInitContainerEnvironmentVarFieldRef[]
    The reference of the environment variable. See field_ref below.
    key string
    The name of the variable. The name can be 1 to 128 characters in length and can contain letters, digits, and underscores (_). It cannot start with a digit.
    value string
    The value of the variable. The value can be 0 to 256 characters in length.
    field_reves Sequence[ContainerGroupInitContainerEnvironmentVarFieldRef]
    The reference of the environment variable. See field_ref below.
    key str
    The name of the variable. The name can be 1 to 128 characters in length and can contain letters, digits, and underscores (_). It cannot start with a digit.
    value str
    The value of the variable. The value can be 0 to 256 characters in length.
    fieldReves List<Property Map>
    The reference of the environment variable. See field_ref below.
    key String
    The name of the variable. The name can be 1 to 128 characters in length and can contain letters, digits, and underscores (_). It cannot start with a digit.
    value String
    The value of the variable. The value can be 0 to 256 characters in length.

    ContainerGroupInitContainerEnvironmentVarFieldRef, ContainerGroupInitContainerEnvironmentVarFieldRefArgs

    FieldPath string
    The path of the reference.
    FieldPath string
    The path of the reference.
    fieldPath String
    The path of the reference.
    fieldPath string
    The path of the reference.
    field_path str
    The path of the reference.
    fieldPath String
    The path of the reference.

    ContainerGroupInitContainerPort, ContainerGroupInitContainerPortArgs

    Port int
    When using the HTTP request method for health check, the port number for HTTP Get request detection.
    Protocol string
    The type of the protocol. Valid values: TCP and UDP.
    Port int
    When using the HTTP request method for health check, the port number for HTTP Get request detection.
    Protocol string
    The type of the protocol. Valid values: TCP and UDP.
    port Integer
    When using the HTTP request method for health check, the port number for HTTP Get request detection.
    protocol String
    The type of the protocol. Valid values: TCP and UDP.
    port number
    When using the HTTP request method for health check, the port number for HTTP Get request detection.
    protocol string
    The type of the protocol. Valid values: TCP and UDP.
    port int
    When using the HTTP request method for health check, the port number for HTTP Get request detection.
    protocol str
    The type of the protocol. Valid values: TCP and UDP.
    port Number
    When using the HTTP request method for health check, the port number for HTTP Get request detection.
    protocol String
    The type of the protocol. Valid values: TCP and UDP.

    ContainerGroupInitContainerSecurityContext, ContainerGroupInitContainerSecurityContextArgs

    Capabilities List<Pulumi.AliCloud.Eci.Inputs.ContainerGroupInitContainerSecurityContextCapability>
    The permissions that you want to grant to the processes in the containers. See capability below.
    RunAsUser int
    The ID of the user who runs the container.
    Capabilities []ContainerGroupInitContainerSecurityContextCapability
    The permissions that you want to grant to the processes in the containers. See capability below.
    RunAsUser int
    The ID of the user who runs the container.
    capabilities List<ContainerGroupInitContainerSecurityContextCapability>
    The permissions that you want to grant to the processes in the containers. See capability below.
    runAsUser Integer
    The ID of the user who runs the container.
    capabilities ContainerGroupInitContainerSecurityContextCapability[]
    The permissions that you want to grant to the processes in the containers. See capability below.
    runAsUser number
    The ID of the user who runs the container.
    capabilities Sequence[ContainerGroupInitContainerSecurityContextCapability]
    The permissions that you want to grant to the processes in the containers. See capability below.
    run_as_user int
    The ID of the user who runs the container.
    capabilities List<Property Map>
    The permissions that you want to grant to the processes in the containers. See capability below.
    runAsUser Number
    The ID of the user who runs the container.

    ContainerGroupInitContainerSecurityContextCapability, ContainerGroupInitContainerSecurityContextCapabilityArgs

    Adds List<string>
    The permissions that you want to grant to the processes in the containers.
    Adds []string
    The permissions that you want to grant to the processes in the containers.
    adds List<String>
    The permissions that you want to grant to the processes in the containers.
    adds string[]
    The permissions that you want to grant to the processes in the containers.
    adds Sequence[str]
    The permissions that you want to grant to the processes in the containers.
    adds List<String>
    The permissions that you want to grant to the processes in the containers.

    ContainerGroupInitContainerVolumeMount, ContainerGroupInitContainerVolumeMountArgs

    MountPath string
    The directory of the mounted volume. Data under this directory will be overwritten by the data in the volume.
    Name string
    The name of the mounted volume.
    ReadOnly bool
    Specifies whether the volume is read-only. Default value: false.
    MountPath string
    The directory of the mounted volume. Data under this directory will be overwritten by the data in the volume.
    Name string
    The name of the mounted volume.
    ReadOnly bool
    Specifies whether the volume is read-only. Default value: false.
    mountPath String
    The directory of the mounted volume. Data under this directory will be overwritten by the data in the volume.
    name String
    The name of the mounted volume.
    readOnly Boolean
    Specifies whether the volume is read-only. Default value: false.
    mountPath string
    The directory of the mounted volume. Data under this directory will be overwritten by the data in the volume.
    name string
    The name of the mounted volume.
    readOnly boolean
    Specifies whether the volume is read-only. Default value: false.
    mount_path str
    The directory of the mounted volume. Data under this directory will be overwritten by the data in the volume.
    name str
    The name of the mounted volume.
    read_only bool
    Specifies whether the volume is read-only. Default value: false.
    mountPath String
    The directory of the mounted volume. Data under this directory will be overwritten by the data in the volume.
    name String
    The name of the mounted volume.
    readOnly Boolean
    Specifies whether the volume is read-only. Default value: false.

    ContainerGroupSecurityContext, ContainerGroupSecurityContextArgs

    Sysctls List<Pulumi.AliCloud.Eci.Inputs.ContainerGroupSecurityContextSysctl>
    Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. See sysctl below.
    Sysctls []ContainerGroupSecurityContextSysctl
    Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. See sysctl below.
    sysctls List<ContainerGroupSecurityContextSysctl>
    Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. See sysctl below.
    sysctls ContainerGroupSecurityContextSysctl[]
    Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. See sysctl below.
    sysctls Sequence[ContainerGroupSecurityContextSysctl]
    Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. See sysctl below.
    sysctls List<Property Map>
    Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. See sysctl below.

    ContainerGroupSecurityContextSysctl, ContainerGroupSecurityContextSysctlArgs

    Name string
    The name of the mounted volume.
    Value string
    The value of the variable. The value can be 0 to 256 characters in length.
    Name string
    The name of the mounted volume.
    Value string
    The value of the variable. The value can be 0 to 256 characters in length.
    name String
    The name of the mounted volume.
    value String
    The value of the variable. The value can be 0 to 256 characters in length.
    name string
    The name of the mounted volume.
    value string
    The value of the variable. The value can be 0 to 256 characters in length.
    name str
    The name of the mounted volume.
    value str
    The value of the variable. The value can be 0 to 256 characters in length.
    name String
    The name of the mounted volume.
    value String
    The value of the variable. The value can be 0 to 256 characters in length.

    ContainerGroupVolume, ContainerGroupVolumeArgs

    ConfigFileVolumeConfigFileToPaths List<Pulumi.AliCloud.Eci.Inputs.ContainerGroupVolumeConfigFileVolumeConfigFileToPath>

    The paths of the ConfigFile volume. See config_file_volume_config_file_to_paths below.

    NOTE: Every volumes mounted must have name and type attributes.

    DiskVolumeDiskId string
    The ID of DiskVolume.
    DiskVolumeFsType string
    The system type of DiskVolume.
    FlexVolumeDriver string
    The name of the FlexVolume driver.
    FlexVolumeFsType string
    The type of the mounted file system. The default value is determined by the script of FlexVolume.
    FlexVolumeOptions string
    The list of FlexVolume objects. Each object is a key-value pair contained in a JSON string.
    Name string
    The name of the volume.
    NfsVolumePath string
    The path to the NFS volume.
    NfsVolumeReadOnly bool
    The nfs volume read only. Default value: false.
    NfsVolumeServer string
    The address of the NFS server.
    Type string
    The type of the volume.
    ConfigFileVolumeConfigFileToPaths []ContainerGroupVolumeConfigFileVolumeConfigFileToPath

    The paths of the ConfigFile volume. See config_file_volume_config_file_to_paths below.

    NOTE: Every volumes mounted must have name and type attributes.

    DiskVolumeDiskId string
    The ID of DiskVolume.
    DiskVolumeFsType string
    The system type of DiskVolume.
    FlexVolumeDriver string
    The name of the FlexVolume driver.
    FlexVolumeFsType string
    The type of the mounted file system. The default value is determined by the script of FlexVolume.
    FlexVolumeOptions string
    The list of FlexVolume objects. Each object is a key-value pair contained in a JSON string.
    Name string
    The name of the volume.
    NfsVolumePath string
    The path to the NFS volume.
    NfsVolumeReadOnly bool
    The nfs volume read only. Default value: false.
    NfsVolumeServer string
    The address of the NFS server.
    Type string
    The type of the volume.
    configFileVolumeConfigFileToPaths List<ContainerGroupVolumeConfigFileVolumeConfigFileToPath>

    The paths of the ConfigFile volume. See config_file_volume_config_file_to_paths below.

    NOTE: Every volumes mounted must have name and type attributes.

    diskVolumeDiskId String
    The ID of DiskVolume.
    diskVolumeFsType String
    The system type of DiskVolume.
    flexVolumeDriver String
    The name of the FlexVolume driver.
    flexVolumeFsType String
    The type of the mounted file system. The default value is determined by the script of FlexVolume.
    flexVolumeOptions String
    The list of FlexVolume objects. Each object is a key-value pair contained in a JSON string.
    name String
    The name of the volume.
    nfsVolumePath String
    The path to the NFS volume.
    nfsVolumeReadOnly Boolean
    The nfs volume read only. Default value: false.
    nfsVolumeServer String
    The address of the NFS server.
    type String
    The type of the volume.
    configFileVolumeConfigFileToPaths ContainerGroupVolumeConfigFileVolumeConfigFileToPath[]

    The paths of the ConfigFile volume. See config_file_volume_config_file_to_paths below.

    NOTE: Every volumes mounted must have name and type attributes.

    diskVolumeDiskId string
    The ID of DiskVolume.
    diskVolumeFsType string
    The system type of DiskVolume.
    flexVolumeDriver string
    The name of the FlexVolume driver.
    flexVolumeFsType string
    The type of the mounted file system. The default value is determined by the script of FlexVolume.
    flexVolumeOptions string
    The list of FlexVolume objects. Each object is a key-value pair contained in a JSON string.
    name string
    The name of the volume.
    nfsVolumePath string
    The path to the NFS volume.
    nfsVolumeReadOnly boolean
    The nfs volume read only. Default value: false.
    nfsVolumeServer string
    The address of the NFS server.
    type string
    The type of the volume.
    config_file_volume_config_file_to_paths Sequence[ContainerGroupVolumeConfigFileVolumeConfigFileToPath]

    The paths of the ConfigFile volume. See config_file_volume_config_file_to_paths below.

    NOTE: Every volumes mounted must have name and type attributes.

    disk_volume_disk_id str
    The ID of DiskVolume.
    disk_volume_fs_type str
    The system type of DiskVolume.
    flex_volume_driver str
    The name of the FlexVolume driver.
    flex_volume_fs_type str
    The type of the mounted file system. The default value is determined by the script of FlexVolume.
    flex_volume_options str
    The list of FlexVolume objects. Each object is a key-value pair contained in a JSON string.
    name str
    The name of the volume.
    nfs_volume_path str
    The path to the NFS volume.
    nfs_volume_read_only bool
    The nfs volume read only. Default value: false.
    nfs_volume_server str
    The address of the NFS server.
    type str
    The type of the volume.
    configFileVolumeConfigFileToPaths List<Property Map>

    The paths of the ConfigFile volume. See config_file_volume_config_file_to_paths below.

    NOTE: Every volumes mounted must have name and type attributes.

    diskVolumeDiskId String
    The ID of DiskVolume.
    diskVolumeFsType String
    The system type of DiskVolume.
    flexVolumeDriver String
    The name of the FlexVolume driver.
    flexVolumeFsType String
    The type of the mounted file system. The default value is determined by the script of FlexVolume.
    flexVolumeOptions String
    The list of FlexVolume objects. Each object is a key-value pair contained in a JSON string.
    name String
    The name of the volume.
    nfsVolumePath String
    The path to the NFS volume.
    nfsVolumeReadOnly Boolean
    The nfs volume read only. Default value: false.
    nfsVolumeServer String
    The address of the NFS server.
    type String
    The type of the volume.

    ContainerGroupVolumeConfigFileVolumeConfigFileToPath, ContainerGroupVolumeConfigFileVolumeConfigFileToPathArgs

    Content string
    The content of the configuration file. Maximum size: 32 KB.
    Path string
    The path of HTTP Get request detection when setting the postStart callback function using the HTTP request method.
    Content string
    The content of the configuration file. Maximum size: 32 KB.
    Path string
    The path of HTTP Get request detection when setting the postStart callback function using the HTTP request method.
    content String
    The content of the configuration file. Maximum size: 32 KB.
    path String
    The path of HTTP Get request detection when setting the postStart callback function using the HTTP request method.
    content string
    The content of the configuration file. Maximum size: 32 KB.
    path string
    The path of HTTP Get request detection when setting the postStart callback function using the HTTP request method.
    content str
    The content of the configuration file. Maximum size: 32 KB.
    path str
    The path of HTTP Get request detection when setting the postStart callback function using the HTTP request method.
    content String
    The content of the configuration file. Maximum size: 32 KB.
    path String
    The path of HTTP Get request detection when setting the postStart callback function using the HTTP request method.

    Import

    ECI Container Group can be imported using the id, e.g.

     $ pulumi import alicloud:eci/containerGroup:ContainerGroup example <container_group_id>
    

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.49.0 published on Sunday, Feb 4, 2024 by Pulumi