1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. ecs
  5. EcsImagePipeline
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

alicloud.ecs.EcsImagePipeline

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

    Provides a ECS Image Pipeline resource.

    For information about ECS Image Pipeline and how to use it, see What is Image Pipeline.

    NOTE: Available in v1.163.0+.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const default = alicloud.resourcemanager.getResourceGroups({
        nameRegex: "default",
    });
    const defaultGetZones = alicloud.getZones({
        availableResourceCreation: "VSwitch",
    });
    const defaultGetImages = alicloud.ecs.getImages({
        nameRegex: "^ubuntu_18.*64",
        mostRecent: true,
        owners: "system",
    });
    const defaultGetInstanceTypes = defaultGetImages.then(defaultGetImages => alicloud.ecs.getInstanceTypes({
        imageId: defaultGetImages.ids?.[0],
    }));
    const defaultGetAccount = alicloud.getAccount({});
    const defaultNetwork = new alicloud.vpc.Network("default", {
        vpcName: "terraform-example",
        cidrBlock: "172.17.3.0/24",
    });
    const defaultSwitch = new alicloud.vpc.Switch("default", {
        vswitchName: "terraform-example",
        cidrBlock: "172.17.3.0/24",
        vpcId: defaultNetwork.id,
        zoneId: defaultGetZones.then(defaultGetZones => defaultGetZones.zones?.[0]?.id),
    });
    const defaultEcsImagePipeline = new alicloud.ecs.EcsImagePipeline("default", {
        addAccounts: [defaultGetAccount.then(defaultGetAccount => defaultGetAccount.id)],
        baseImage: defaultGetImages.then(defaultGetImages => defaultGetImages.ids?.[0]),
        baseImageType: "IMAGE",
        buildContent: "RUN yum update -y",
        deleteInstanceOnFailure: false,
        imageName: "terraform-example",
        name: "terraform-example",
        description: "terraform-example",
        instanceType: defaultGetInstanceTypes.then(defaultGetInstanceTypes => defaultGetInstanceTypes.ids?.[0]),
        resourceGroupId: _default.then(_default => _default.groups?.[0]?.id),
        internetMaxBandwidthOut: 20,
        systemDiskSize: 40,
        toRegionIds: [
            "cn-qingdao",
            "cn-zhangjiakou",
        ],
        vswitchId: defaultSwitch.id,
        tags: {
            Created: "TF",
            For: "Acceptance-test",
        },
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    default = alicloud.resourcemanager.get_resource_groups(name_regex="default")
    default_get_zones = alicloud.get_zones(available_resource_creation="VSwitch")
    default_get_images = alicloud.ecs.get_images(name_regex="^ubuntu_18.*64",
        most_recent=True,
        owners="system")
    default_get_instance_types = alicloud.ecs.get_instance_types(image_id=default_get_images.ids[0])
    default_get_account = alicloud.get_account()
    default_network = alicloud.vpc.Network("default",
        vpc_name="terraform-example",
        cidr_block="172.17.3.0/24")
    default_switch = alicloud.vpc.Switch("default",
        vswitch_name="terraform-example",
        cidr_block="172.17.3.0/24",
        vpc_id=default_network.id,
        zone_id=default_get_zones.zones[0].id)
    default_ecs_image_pipeline = alicloud.ecs.EcsImagePipeline("default",
        add_accounts=[default_get_account.id],
        base_image=default_get_images.ids[0],
        base_image_type="IMAGE",
        build_content="RUN yum update -y",
        delete_instance_on_failure=False,
        image_name="terraform-example",
        name="terraform-example",
        description="terraform-example",
        instance_type=default_get_instance_types.ids[0],
        resource_group_id=default.groups[0].id,
        internet_max_bandwidth_out=20,
        system_disk_size=40,
        to_region_ids=[
            "cn-qingdao",
            "cn-zhangjiakou",
        ],
        vswitch_id=default_switch.id,
        tags={
            "Created": "TF",
            "For": "Acceptance-test",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_default, err := resourcemanager.GetResourceGroups(ctx, &resourcemanager.GetResourceGroupsArgs{
    			NameRegex: pulumi.StringRef("default"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		defaultGetZones, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
    			AvailableResourceCreation: pulumi.StringRef("VSwitch"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		defaultGetImages, err := ecs.GetImages(ctx, &ecs.GetImagesArgs{
    			NameRegex:  pulumi.StringRef("^ubuntu_18.*64"),
    			MostRecent: pulumi.BoolRef(true),
    			Owners:     pulumi.StringRef("system"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		defaultGetInstanceTypes, err := ecs.GetInstanceTypes(ctx, &ecs.GetInstanceTypesArgs{
    			ImageId: pulumi.StringRef(defaultGetImages.Ids[0]),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		defaultGetAccount, err := alicloud.GetAccount(ctx, map[string]interface{}{}, nil)
    		if err != nil {
    			return err
    		}
    		defaultNetwork, err := vpc.NewNetwork(ctx, "default", &vpc.NetworkArgs{
    			VpcName:   pulumi.String("terraform-example"),
    			CidrBlock: pulumi.String("172.17.3.0/24"),
    		})
    		if err != nil {
    			return err
    		}
    		defaultSwitch, err := vpc.NewSwitch(ctx, "default", &vpc.SwitchArgs{
    			VswitchName: pulumi.String("terraform-example"),
    			CidrBlock:   pulumi.String("172.17.3.0/24"),
    			VpcId:       defaultNetwork.ID(),
    			ZoneId:      pulumi.String(defaultGetZones.Zones[0].Id),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = ecs.NewEcsImagePipeline(ctx, "default", &ecs.EcsImagePipelineArgs{
    			AddAccounts: pulumi.StringArray{
    				pulumi.String(defaultGetAccount.Id),
    			},
    			BaseImage:               pulumi.String(defaultGetImages.Ids[0]),
    			BaseImageType:           pulumi.String("IMAGE"),
    			BuildContent:            pulumi.String("RUN yum update -y"),
    			DeleteInstanceOnFailure: pulumi.Bool(false),
    			ImageName:               pulumi.String("terraform-example"),
    			Name:                    pulumi.String("terraform-example"),
    			Description:             pulumi.String("terraform-example"),
    			InstanceType:            pulumi.String(defaultGetInstanceTypes.Ids[0]),
    			ResourceGroupId:         pulumi.String(_default.Groups[0].Id),
    			InternetMaxBandwidthOut: pulumi.Int(20),
    			SystemDiskSize:          pulumi.Int(40),
    			ToRegionIds: pulumi.StringArray{
    				pulumi.String("cn-qingdao"),
    				pulumi.String("cn-zhangjiakou"),
    			},
    			VswitchId: defaultSwitch.ID(),
    			Tags: pulumi.StringMap{
    				"Created": pulumi.String("TF"),
    				"For":     pulumi.String("Acceptance-test"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = AliCloud.ResourceManager.GetResourceGroups.Invoke(new()
        {
            NameRegex = "default",
        });
    
        var defaultGetZones = AliCloud.GetZones.Invoke(new()
        {
            AvailableResourceCreation = "VSwitch",
        });
    
        var defaultGetImages = AliCloud.Ecs.GetImages.Invoke(new()
        {
            NameRegex = "^ubuntu_18.*64",
            MostRecent = true,
            Owners = "system",
        });
    
        var defaultGetInstanceTypes = AliCloud.Ecs.GetInstanceTypes.Invoke(new()
        {
            ImageId = defaultGetImages.Apply(getImagesResult => getImagesResult.Ids[0]),
        });
    
        var defaultGetAccount = AliCloud.GetAccount.Invoke();
    
        var defaultNetwork = new AliCloud.Vpc.Network("default", new()
        {
            VpcName = "terraform-example",
            CidrBlock = "172.17.3.0/24",
        });
    
        var defaultSwitch = new AliCloud.Vpc.Switch("default", new()
        {
            VswitchName = "terraform-example",
            CidrBlock = "172.17.3.0/24",
            VpcId = defaultNetwork.Id,
            ZoneId = defaultGetZones.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
        });
    
        var defaultEcsImagePipeline = new AliCloud.Ecs.EcsImagePipeline("default", new()
        {
            AddAccounts = new[]
            {
                defaultGetAccount.Apply(getAccountResult => getAccountResult.Id),
            },
            BaseImage = defaultGetImages.Apply(getImagesResult => getImagesResult.Ids[0]),
            BaseImageType = "IMAGE",
            BuildContent = "RUN yum update -y",
            DeleteInstanceOnFailure = false,
            ImageName = "terraform-example",
            Name = "terraform-example",
            Description = "terraform-example",
            InstanceType = defaultGetInstanceTypes.Apply(getInstanceTypesResult => getInstanceTypesResult.Ids[0]),
            ResourceGroupId = @default.Apply(@default => @default.Apply(getResourceGroupsResult => getResourceGroupsResult.Groups[0]?.Id)),
            InternetMaxBandwidthOut = 20,
            SystemDiskSize = 40,
            ToRegionIds = new[]
            {
                "cn-qingdao",
                "cn-zhangjiakou",
            },
            VswitchId = defaultSwitch.Id,
            Tags = 
            {
                { "Created", "TF" },
                { "For", "Acceptance-test" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
    import com.pulumi.alicloud.resourcemanager.inputs.GetResourceGroupsArgs;
    import com.pulumi.alicloud.AlicloudFunctions;
    import com.pulumi.alicloud.inputs.GetZonesArgs;
    import com.pulumi.alicloud.ecs.EcsFunctions;
    import com.pulumi.alicloud.ecs.inputs.GetImagesArgs;
    import com.pulumi.alicloud.ecs.inputs.GetInstanceTypesArgs;
    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.EcsImagePipeline;
    import com.pulumi.alicloud.ecs.EcsImagePipelineArgs;
    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 default = ResourcemanagerFunctions.getResourceGroups(GetResourceGroupsArgs.builder()
                .nameRegex("default")
                .build());
    
            final var defaultGetZones = AlicloudFunctions.getZones(GetZonesArgs.builder()
                .availableResourceCreation("VSwitch")
                .build());
    
            final var defaultGetImages = EcsFunctions.getImages(GetImagesArgs.builder()
                .nameRegex("^ubuntu_18.*64")
                .mostRecent(true)
                .owners("system")
                .build());
    
            final var defaultGetInstanceTypes = EcsFunctions.getInstanceTypes(GetInstanceTypesArgs.builder()
                .imageId(defaultGetImages.applyValue(getImagesResult -> getImagesResult.ids()[0]))
                .build());
    
            final var defaultGetAccount = AlicloudFunctions.getAccount();
    
            var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
                .vpcName("terraform-example")
                .cidrBlock("172.17.3.0/24")
                .build());
    
            var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()
                .vswitchName("terraform-example")
                .cidrBlock("172.17.3.0/24")
                .vpcId(defaultNetwork.id())
                .zoneId(defaultGetZones.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
                .build());
    
            var defaultEcsImagePipeline = new EcsImagePipeline("defaultEcsImagePipeline", EcsImagePipelineArgs.builder()
                .addAccounts(defaultGetAccount.applyValue(getAccountResult -> getAccountResult.id()))
                .baseImage(defaultGetImages.applyValue(getImagesResult -> getImagesResult.ids()[0]))
                .baseImageType("IMAGE")
                .buildContent("RUN yum update -y")
                .deleteInstanceOnFailure(false)
                .imageName("terraform-example")
                .name("terraform-example")
                .description("terraform-example")
                .instanceType(defaultGetInstanceTypes.applyValue(getInstanceTypesResult -> getInstanceTypesResult.ids()[0]))
                .resourceGroupId(default_.groups()[0].id())
                .internetMaxBandwidthOut(20)
                .systemDiskSize(40)
                .toRegionIds(            
                    "cn-qingdao",
                    "cn-zhangjiakou")
                .vswitchId(defaultSwitch.id())
                .tags(Map.ofEntries(
                    Map.entry("Created", "TF"),
                    Map.entry("For", "Acceptance-test")
                ))
                .build());
    
        }
    }
    
    resources:
      defaultNetwork:
        type: alicloud:vpc:Network
        name: default
        properties:
          vpcName: terraform-example
          cidrBlock: 172.17.3.0/24
      defaultSwitch:
        type: alicloud:vpc:Switch
        name: default
        properties:
          vswitchName: terraform-example
          cidrBlock: 172.17.3.0/24
          vpcId: ${defaultNetwork.id}
          zoneId: ${defaultGetZones.zones[0].id}
      defaultEcsImagePipeline:
        type: alicloud:ecs:EcsImagePipeline
        name: default
        properties:
          addAccounts:
            - ${defaultGetAccount.id}
          baseImage: ${defaultGetImages.ids[0]}
          baseImageType: IMAGE
          buildContent: RUN yum update -y
          deleteInstanceOnFailure: false
          imageName: terraform-example
          name: terraform-example
          description: terraform-example
          instanceType: ${defaultGetInstanceTypes.ids[0]}
          resourceGroupId: ${default.groups[0].id}
          internetMaxBandwidthOut: 20
          systemDiskSize: 40
          toRegionIds:
            - cn-qingdao
            - cn-zhangjiakou
          vswitchId: ${defaultSwitch.id}
          tags:
            Created: TF
            For: Acceptance-test
    variables:
      default:
        fn::invoke:
          Function: alicloud:resourcemanager:getResourceGroups
          Arguments:
            nameRegex: default
      defaultGetZones:
        fn::invoke:
          Function: alicloud:getZones
          Arguments:
            availableResourceCreation: VSwitch
      defaultGetImages:
        fn::invoke:
          Function: alicloud:ecs:getImages
          Arguments:
            nameRegex: ^ubuntu_18.*64
            mostRecent: true
            owners: system
      defaultGetInstanceTypes:
        fn::invoke:
          Function: alicloud:ecs:getInstanceTypes
          Arguments:
            imageId: ${defaultGetImages.ids[0]}
      defaultGetAccount:
        fn::invoke:
          Function: alicloud:getAccount
          Arguments: {}
    

    Create EcsImagePipeline Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new EcsImagePipeline(name: string, args: EcsImagePipelineArgs, opts?: CustomResourceOptions);
    @overload
    def EcsImagePipeline(resource_name: str,
                         args: EcsImagePipelineArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def EcsImagePipeline(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         base_image_type: Optional[str] = None,
                         base_image: Optional[str] = None,
                         image_name: Optional[str] = None,
                         build_content: Optional[str] = None,
                         delete_instance_on_failure: Optional[bool] = None,
                         description: Optional[str] = None,
                         add_accounts: Optional[Sequence[str]] = None,
                         instance_type: Optional[str] = None,
                         internet_max_bandwidth_out: Optional[int] = None,
                         name: Optional[str] = None,
                         resource_group_id: Optional[str] = None,
                         system_disk_size: Optional[int] = None,
                         tags: Optional[Mapping[str, str]] = None,
                         to_region_ids: Optional[Sequence[str]] = None,
                         vswitch_id: Optional[str] = None)
    func NewEcsImagePipeline(ctx *Context, name string, args EcsImagePipelineArgs, opts ...ResourceOption) (*EcsImagePipeline, error)
    public EcsImagePipeline(string name, EcsImagePipelineArgs args, CustomResourceOptions? opts = null)
    public EcsImagePipeline(String name, EcsImagePipelineArgs args)
    public EcsImagePipeline(String name, EcsImagePipelineArgs args, CustomResourceOptions options)
    
    type: alicloud:ecs:EcsImagePipeline
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

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

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var ecsImagePipelineResource = new AliCloud.Ecs.EcsImagePipeline("ecsImagePipelineResource", new()
    {
        BaseImageType = "string",
        BaseImage = "string",
        ImageName = "string",
        BuildContent = "string",
        DeleteInstanceOnFailure = false,
        Description = "string",
        AddAccounts = new[]
        {
            "string",
        },
        InstanceType = "string",
        InternetMaxBandwidthOut = 0,
        Name = "string",
        ResourceGroupId = "string",
        SystemDiskSize = 0,
        Tags = 
        {
            { "string", "string" },
        },
        ToRegionIds = new[]
        {
            "string",
        },
        VswitchId = "string",
    });
    
    example, err := ecs.NewEcsImagePipeline(ctx, "ecsImagePipelineResource", &ecs.EcsImagePipelineArgs{
    	BaseImageType:           pulumi.String("string"),
    	BaseImage:               pulumi.String("string"),
    	ImageName:               pulumi.String("string"),
    	BuildContent:            pulumi.String("string"),
    	DeleteInstanceOnFailure: pulumi.Bool(false),
    	Description:             pulumi.String("string"),
    	AddAccounts: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	InstanceType:            pulumi.String("string"),
    	InternetMaxBandwidthOut: pulumi.Int(0),
    	Name:                    pulumi.String("string"),
    	ResourceGroupId:         pulumi.String("string"),
    	SystemDiskSize:          pulumi.Int(0),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	ToRegionIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	VswitchId: pulumi.String("string"),
    })
    
    var ecsImagePipelineResource = new EcsImagePipeline("ecsImagePipelineResource", EcsImagePipelineArgs.builder()
        .baseImageType("string")
        .baseImage("string")
        .imageName("string")
        .buildContent("string")
        .deleteInstanceOnFailure(false)
        .description("string")
        .addAccounts("string")
        .instanceType("string")
        .internetMaxBandwidthOut(0)
        .name("string")
        .resourceGroupId("string")
        .systemDiskSize(0)
        .tags(Map.of("string", "string"))
        .toRegionIds("string")
        .vswitchId("string")
        .build());
    
    ecs_image_pipeline_resource = alicloud.ecs.EcsImagePipeline("ecsImagePipelineResource",
        base_image_type="string",
        base_image="string",
        image_name="string",
        build_content="string",
        delete_instance_on_failure=False,
        description="string",
        add_accounts=["string"],
        instance_type="string",
        internet_max_bandwidth_out=0,
        name="string",
        resource_group_id="string",
        system_disk_size=0,
        tags={
            "string": "string",
        },
        to_region_ids=["string"],
        vswitch_id="string")
    
    const ecsImagePipelineResource = new alicloud.ecs.EcsImagePipeline("ecsImagePipelineResource", {
        baseImageType: "string",
        baseImage: "string",
        imageName: "string",
        buildContent: "string",
        deleteInstanceOnFailure: false,
        description: "string",
        addAccounts: ["string"],
        instanceType: "string",
        internetMaxBandwidthOut: 0,
        name: "string",
        resourceGroupId: "string",
        systemDiskSize: 0,
        tags: {
            string: "string",
        },
        toRegionIds: ["string"],
        vswitchId: "string",
    });
    
    type: alicloud:ecs:EcsImagePipeline
    properties:
        addAccounts:
            - string
        baseImage: string
        baseImageType: string
        buildContent: string
        deleteInstanceOnFailure: false
        description: string
        imageName: string
        instanceType: string
        internetMaxBandwidthOut: 0
        name: string
        resourceGroupId: string
        systemDiskSize: 0
        tags:
            string: string
        toRegionIds:
            - string
        vswitchId: string
    

    EcsImagePipeline Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The EcsImagePipeline resource accepts the following input properties:

    BaseImage string
    The source image. When you set base_image_type to IMAGE, set base_image to the ID of a custom image. When you set base_image_type to IMAGE_FAMILY, set base_image to the name of an image family.
    BaseImageType string
    The type of the source image. Valid values: IMAGE, IMAGE_FAMILY.

    • IMAGE: custom image.
    • IMAGE_FAMILY: image family.
    AddAccounts List<string>
    The ID of Alibaba Cloud account to which to share the created image.
    BuildContent string
    The content of the image template. The content cannot be greater than 16 KB in size, and can contain up to 127 commands.
    DeleteInstanceOnFailure bool
    Specifies whether to release the intermediate instance if the image cannot be created.
    Description string
    The description of the image template. The description must be 2 to 256 characters in length and cannot start with http:// or https://. Note: If the intermediate instance cannot be started, the instance is released by default.
    ImageName string
    The name prefix of the image to be created. The prefix must be 2 to 64 characters in length. It must start with a letter and cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), periods (.),and hyphens (-).
    InstanceType string
    The instance type of the instance. You can call the DescribeInstanceTypes operation to query instance types. If you do not specify this parameter, an instance type that provides the fewest vCPUs and memory resources is automatically selected. This configuration is subject to resource availability of instance types. For example, the ecs.g6.large instance type is selected by default. If available ecs.g6.large resources are insufficient, the ecs.g6.xlarge instance type is selected.
    InternetMaxBandwidthOut int
    The size of the outbound public bandwidth for the intermediate instance. Unit: Mbit/s. Valid values: 0 to 100. Default value: 0.
    Name string
    The name of the image template. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), periods (.),and hyphens (-).
    ResourceGroupId string
    The ID of the resource group.
    SystemDiskSize int
    The size of the system disk of the intermediate instance. Unit: GiB. Valid values: 20 to 500. Default value: 40.
    Tags Dictionary<string, string>
    A mapping of tags to assign to the resource.
    ToRegionIds List<string>
    The ID of region to which to distribute the created image.
    VswitchId string
    The ID of the vSwitch. If you do not specify this parameter, a virtual private cloud (VPC) and a vSwitch are created by default.
    BaseImage string
    The source image. When you set base_image_type to IMAGE, set base_image to the ID of a custom image. When you set base_image_type to IMAGE_FAMILY, set base_image to the name of an image family.
    BaseImageType string
    The type of the source image. Valid values: IMAGE, IMAGE_FAMILY.

    • IMAGE: custom image.
    • IMAGE_FAMILY: image family.
    AddAccounts []string
    The ID of Alibaba Cloud account to which to share the created image.
    BuildContent string
    The content of the image template. The content cannot be greater than 16 KB in size, and can contain up to 127 commands.
    DeleteInstanceOnFailure bool
    Specifies whether to release the intermediate instance if the image cannot be created.
    Description string
    The description of the image template. The description must be 2 to 256 characters in length and cannot start with http:// or https://. Note: If the intermediate instance cannot be started, the instance is released by default.
    ImageName string
    The name prefix of the image to be created. The prefix must be 2 to 64 characters in length. It must start with a letter and cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), periods (.),and hyphens (-).
    InstanceType string
    The instance type of the instance. You can call the DescribeInstanceTypes operation to query instance types. If you do not specify this parameter, an instance type that provides the fewest vCPUs and memory resources is automatically selected. This configuration is subject to resource availability of instance types. For example, the ecs.g6.large instance type is selected by default. If available ecs.g6.large resources are insufficient, the ecs.g6.xlarge instance type is selected.
    InternetMaxBandwidthOut int
    The size of the outbound public bandwidth for the intermediate instance. Unit: Mbit/s. Valid values: 0 to 100. Default value: 0.
    Name string
    The name of the image template. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), periods (.),and hyphens (-).
    ResourceGroupId string
    The ID of the resource group.
    SystemDiskSize int
    The size of the system disk of the intermediate instance. Unit: GiB. Valid values: 20 to 500. Default value: 40.
    Tags map[string]string
    A mapping of tags to assign to the resource.
    ToRegionIds []string
    The ID of region to which to distribute the created image.
    VswitchId string
    The ID of the vSwitch. If you do not specify this parameter, a virtual private cloud (VPC) and a vSwitch are created by default.
    baseImage String
    The source image. When you set base_image_type to IMAGE, set base_image to the ID of a custom image. When you set base_image_type to IMAGE_FAMILY, set base_image to the name of an image family.
    baseImageType String
    The type of the source image. Valid values: IMAGE, IMAGE_FAMILY.

    • IMAGE: custom image.
    • IMAGE_FAMILY: image family.
    addAccounts List<String>
    The ID of Alibaba Cloud account to which to share the created image.
    buildContent String
    The content of the image template. The content cannot be greater than 16 KB in size, and can contain up to 127 commands.
    deleteInstanceOnFailure Boolean
    Specifies whether to release the intermediate instance if the image cannot be created.
    description String
    The description of the image template. The description must be 2 to 256 characters in length and cannot start with http:// or https://. Note: If the intermediate instance cannot be started, the instance is released by default.
    imageName String
    The name prefix of the image to be created. The prefix must be 2 to 64 characters in length. It must start with a letter and cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), periods (.),and hyphens (-).
    instanceType String
    The instance type of the instance. You can call the DescribeInstanceTypes operation to query instance types. If you do not specify this parameter, an instance type that provides the fewest vCPUs and memory resources is automatically selected. This configuration is subject to resource availability of instance types. For example, the ecs.g6.large instance type is selected by default. If available ecs.g6.large resources are insufficient, the ecs.g6.xlarge instance type is selected.
    internetMaxBandwidthOut Integer
    The size of the outbound public bandwidth for the intermediate instance. Unit: Mbit/s. Valid values: 0 to 100. Default value: 0.
    name String
    The name of the image template. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), periods (.),and hyphens (-).
    resourceGroupId String
    The ID of the resource group.
    systemDiskSize Integer
    The size of the system disk of the intermediate instance. Unit: GiB. Valid values: 20 to 500. Default value: 40.
    tags Map<String,String>
    A mapping of tags to assign to the resource.
    toRegionIds List<String>
    The ID of region to which to distribute the created image.
    vswitchId String
    The ID of the vSwitch. If you do not specify this parameter, a virtual private cloud (VPC) and a vSwitch are created by default.
    baseImage string
    The source image. When you set base_image_type to IMAGE, set base_image to the ID of a custom image. When you set base_image_type to IMAGE_FAMILY, set base_image to the name of an image family.
    baseImageType string
    The type of the source image. Valid values: IMAGE, IMAGE_FAMILY.

    • IMAGE: custom image.
    • IMAGE_FAMILY: image family.
    addAccounts string[]
    The ID of Alibaba Cloud account to which to share the created image.
    buildContent string
    The content of the image template. The content cannot be greater than 16 KB in size, and can contain up to 127 commands.
    deleteInstanceOnFailure boolean
    Specifies whether to release the intermediate instance if the image cannot be created.
    description string
    The description of the image template. The description must be 2 to 256 characters in length and cannot start with http:// or https://. Note: If the intermediate instance cannot be started, the instance is released by default.
    imageName string
    The name prefix of the image to be created. The prefix must be 2 to 64 characters in length. It must start with a letter and cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), periods (.),and hyphens (-).
    instanceType string
    The instance type of the instance. You can call the DescribeInstanceTypes operation to query instance types. If you do not specify this parameter, an instance type that provides the fewest vCPUs and memory resources is automatically selected. This configuration is subject to resource availability of instance types. For example, the ecs.g6.large instance type is selected by default. If available ecs.g6.large resources are insufficient, the ecs.g6.xlarge instance type is selected.
    internetMaxBandwidthOut number
    The size of the outbound public bandwidth for the intermediate instance. Unit: Mbit/s. Valid values: 0 to 100. Default value: 0.
    name string
    The name of the image template. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), periods (.),and hyphens (-).
    resourceGroupId string
    The ID of the resource group.
    systemDiskSize number
    The size of the system disk of the intermediate instance. Unit: GiB. Valid values: 20 to 500. Default value: 40.
    tags {[key: string]: string}
    A mapping of tags to assign to the resource.
    toRegionIds string[]
    The ID of region to which to distribute the created image.
    vswitchId string
    The ID of the vSwitch. If you do not specify this parameter, a virtual private cloud (VPC) and a vSwitch are created by default.
    base_image str
    The source image. When you set base_image_type to IMAGE, set base_image to the ID of a custom image. When you set base_image_type to IMAGE_FAMILY, set base_image to the name of an image family.
    base_image_type str
    The type of the source image. Valid values: IMAGE, IMAGE_FAMILY.

    • IMAGE: custom image.
    • IMAGE_FAMILY: image family.
    add_accounts Sequence[str]
    The ID of Alibaba Cloud account to which to share the created image.
    build_content str
    The content of the image template. The content cannot be greater than 16 KB in size, and can contain up to 127 commands.
    delete_instance_on_failure bool
    Specifies whether to release the intermediate instance if the image cannot be created.
    description str
    The description of the image template. The description must be 2 to 256 characters in length and cannot start with http:// or https://. Note: If the intermediate instance cannot be started, the instance is released by default.
    image_name str
    The name prefix of the image to be created. The prefix must be 2 to 64 characters in length. It must start with a letter and cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), periods (.),and hyphens (-).
    instance_type str
    The instance type of the instance. You can call the DescribeInstanceTypes operation to query instance types. If you do not specify this parameter, an instance type that provides the fewest vCPUs and memory resources is automatically selected. This configuration is subject to resource availability of instance types. For example, the ecs.g6.large instance type is selected by default. If available ecs.g6.large resources are insufficient, the ecs.g6.xlarge instance type is selected.
    internet_max_bandwidth_out int
    The size of the outbound public bandwidth for the intermediate instance. Unit: Mbit/s. Valid values: 0 to 100. Default value: 0.
    name str
    The name of the image template. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), periods (.),and hyphens (-).
    resource_group_id str
    The ID of the resource group.
    system_disk_size int
    The size of the system disk of the intermediate instance. Unit: GiB. Valid values: 20 to 500. Default value: 40.
    tags Mapping[str, str]
    A mapping of tags to assign to the resource.
    to_region_ids Sequence[str]
    The ID of region to which to distribute the created image.
    vswitch_id str
    The ID of the vSwitch. If you do not specify this parameter, a virtual private cloud (VPC) and a vSwitch are created by default.
    baseImage String
    The source image. When you set base_image_type to IMAGE, set base_image to the ID of a custom image. When you set base_image_type to IMAGE_FAMILY, set base_image to the name of an image family.
    baseImageType String
    The type of the source image. Valid values: IMAGE, IMAGE_FAMILY.

    • IMAGE: custom image.
    • IMAGE_FAMILY: image family.
    addAccounts List<String>
    The ID of Alibaba Cloud account to which to share the created image.
    buildContent String
    The content of the image template. The content cannot be greater than 16 KB in size, and can contain up to 127 commands.
    deleteInstanceOnFailure Boolean
    Specifies whether to release the intermediate instance if the image cannot be created.
    description String
    The description of the image template. The description must be 2 to 256 characters in length and cannot start with http:// or https://. Note: If the intermediate instance cannot be started, the instance is released by default.
    imageName String
    The name prefix of the image to be created. The prefix must be 2 to 64 characters in length. It must start with a letter and cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), periods (.),and hyphens (-).
    instanceType String
    The instance type of the instance. You can call the DescribeInstanceTypes operation to query instance types. If you do not specify this parameter, an instance type that provides the fewest vCPUs and memory resources is automatically selected. This configuration is subject to resource availability of instance types. For example, the ecs.g6.large instance type is selected by default. If available ecs.g6.large resources are insufficient, the ecs.g6.xlarge instance type is selected.
    internetMaxBandwidthOut Number
    The size of the outbound public bandwidth for the intermediate instance. Unit: Mbit/s. Valid values: 0 to 100. Default value: 0.
    name String
    The name of the image template. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), periods (.),and hyphens (-).
    resourceGroupId String
    The ID of the resource group.
    systemDiskSize Number
    The size of the system disk of the intermediate instance. Unit: GiB. Valid values: 20 to 500. Default value: 40.
    tags Map<String>
    A mapping of tags to assign to the resource.
    toRegionIds List<String>
    The ID of region to which to distribute the created image.
    vswitchId String
    The ID of the vSwitch. If you do not specify this parameter, a virtual private cloud (VPC) and a vSwitch are created by default.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing EcsImagePipeline Resource

    Get an existing EcsImagePipeline 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?: EcsImagePipelineState, opts?: CustomResourceOptions): EcsImagePipeline
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            add_accounts: Optional[Sequence[str]] = None,
            base_image: Optional[str] = None,
            base_image_type: Optional[str] = None,
            build_content: Optional[str] = None,
            delete_instance_on_failure: Optional[bool] = None,
            description: Optional[str] = None,
            image_name: Optional[str] = None,
            instance_type: Optional[str] = None,
            internet_max_bandwidth_out: Optional[int] = None,
            name: Optional[str] = None,
            resource_group_id: Optional[str] = None,
            system_disk_size: Optional[int] = None,
            tags: Optional[Mapping[str, str]] = None,
            to_region_ids: Optional[Sequence[str]] = None,
            vswitch_id: Optional[str] = None) -> EcsImagePipeline
    func GetEcsImagePipeline(ctx *Context, name string, id IDInput, state *EcsImagePipelineState, opts ...ResourceOption) (*EcsImagePipeline, error)
    public static EcsImagePipeline Get(string name, Input<string> id, EcsImagePipelineState? state, CustomResourceOptions? opts = null)
    public static EcsImagePipeline get(String name, Output<String> id, EcsImagePipelineState 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:
    AddAccounts List<string>
    The ID of Alibaba Cloud account to which to share the created image.
    BaseImage string
    The source image. When you set base_image_type to IMAGE, set base_image to the ID of a custom image. When you set base_image_type to IMAGE_FAMILY, set base_image to the name of an image family.
    BaseImageType string
    The type of the source image. Valid values: IMAGE, IMAGE_FAMILY.

    • IMAGE: custom image.
    • IMAGE_FAMILY: image family.
    BuildContent string
    The content of the image template. The content cannot be greater than 16 KB in size, and can contain up to 127 commands.
    DeleteInstanceOnFailure bool
    Specifies whether to release the intermediate instance if the image cannot be created.
    Description string
    The description of the image template. The description must be 2 to 256 characters in length and cannot start with http:// or https://. Note: If the intermediate instance cannot be started, the instance is released by default.
    ImageName string
    The name prefix of the image to be created. The prefix must be 2 to 64 characters in length. It must start with a letter and cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), periods (.),and hyphens (-).
    InstanceType string
    The instance type of the instance. You can call the DescribeInstanceTypes operation to query instance types. If you do not specify this parameter, an instance type that provides the fewest vCPUs and memory resources is automatically selected. This configuration is subject to resource availability of instance types. For example, the ecs.g6.large instance type is selected by default. If available ecs.g6.large resources are insufficient, the ecs.g6.xlarge instance type is selected.
    InternetMaxBandwidthOut int
    The size of the outbound public bandwidth for the intermediate instance. Unit: Mbit/s. Valid values: 0 to 100. Default value: 0.
    Name string
    The name of the image template. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), periods (.),and hyphens (-).
    ResourceGroupId string
    The ID of the resource group.
    SystemDiskSize int
    The size of the system disk of the intermediate instance. Unit: GiB. Valid values: 20 to 500. Default value: 40.
    Tags Dictionary<string, string>
    A mapping of tags to assign to the resource.
    ToRegionIds List<string>
    The ID of region to which to distribute the created image.
    VswitchId string
    The ID of the vSwitch. If you do not specify this parameter, a virtual private cloud (VPC) and a vSwitch are created by default.
    AddAccounts []string
    The ID of Alibaba Cloud account to which to share the created image.
    BaseImage string
    The source image. When you set base_image_type to IMAGE, set base_image to the ID of a custom image. When you set base_image_type to IMAGE_FAMILY, set base_image to the name of an image family.
    BaseImageType string
    The type of the source image. Valid values: IMAGE, IMAGE_FAMILY.

    • IMAGE: custom image.
    • IMAGE_FAMILY: image family.
    BuildContent string
    The content of the image template. The content cannot be greater than 16 KB in size, and can contain up to 127 commands.
    DeleteInstanceOnFailure bool
    Specifies whether to release the intermediate instance if the image cannot be created.
    Description string
    The description of the image template. The description must be 2 to 256 characters in length and cannot start with http:// or https://. Note: If the intermediate instance cannot be started, the instance is released by default.
    ImageName string
    The name prefix of the image to be created. The prefix must be 2 to 64 characters in length. It must start with a letter and cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), periods (.),and hyphens (-).
    InstanceType string
    The instance type of the instance. You can call the DescribeInstanceTypes operation to query instance types. If you do not specify this parameter, an instance type that provides the fewest vCPUs and memory resources is automatically selected. This configuration is subject to resource availability of instance types. For example, the ecs.g6.large instance type is selected by default. If available ecs.g6.large resources are insufficient, the ecs.g6.xlarge instance type is selected.
    InternetMaxBandwidthOut int
    The size of the outbound public bandwidth for the intermediate instance. Unit: Mbit/s. Valid values: 0 to 100. Default value: 0.
    Name string
    The name of the image template. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), periods (.),and hyphens (-).
    ResourceGroupId string
    The ID of the resource group.
    SystemDiskSize int
    The size of the system disk of the intermediate instance. Unit: GiB. Valid values: 20 to 500. Default value: 40.
    Tags map[string]string
    A mapping of tags to assign to the resource.
    ToRegionIds []string
    The ID of region to which to distribute the created image.
    VswitchId string
    The ID of the vSwitch. If you do not specify this parameter, a virtual private cloud (VPC) and a vSwitch are created by default.
    addAccounts List<String>
    The ID of Alibaba Cloud account to which to share the created image.
    baseImage String
    The source image. When you set base_image_type to IMAGE, set base_image to the ID of a custom image. When you set base_image_type to IMAGE_FAMILY, set base_image to the name of an image family.
    baseImageType String
    The type of the source image. Valid values: IMAGE, IMAGE_FAMILY.

    • IMAGE: custom image.
    • IMAGE_FAMILY: image family.
    buildContent String
    The content of the image template. The content cannot be greater than 16 KB in size, and can contain up to 127 commands.
    deleteInstanceOnFailure Boolean
    Specifies whether to release the intermediate instance if the image cannot be created.
    description String
    The description of the image template. The description must be 2 to 256 characters in length and cannot start with http:// or https://. Note: If the intermediate instance cannot be started, the instance is released by default.
    imageName String
    The name prefix of the image to be created. The prefix must be 2 to 64 characters in length. It must start with a letter and cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), periods (.),and hyphens (-).
    instanceType String
    The instance type of the instance. You can call the DescribeInstanceTypes operation to query instance types. If you do not specify this parameter, an instance type that provides the fewest vCPUs and memory resources is automatically selected. This configuration is subject to resource availability of instance types. For example, the ecs.g6.large instance type is selected by default. If available ecs.g6.large resources are insufficient, the ecs.g6.xlarge instance type is selected.
    internetMaxBandwidthOut Integer
    The size of the outbound public bandwidth for the intermediate instance. Unit: Mbit/s. Valid values: 0 to 100. Default value: 0.
    name String
    The name of the image template. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), periods (.),and hyphens (-).
    resourceGroupId String
    The ID of the resource group.
    systemDiskSize Integer
    The size of the system disk of the intermediate instance. Unit: GiB. Valid values: 20 to 500. Default value: 40.
    tags Map<String,String>
    A mapping of tags to assign to the resource.
    toRegionIds List<String>
    The ID of region to which to distribute the created image.
    vswitchId String
    The ID of the vSwitch. If you do not specify this parameter, a virtual private cloud (VPC) and a vSwitch are created by default.
    addAccounts string[]
    The ID of Alibaba Cloud account to which to share the created image.
    baseImage string
    The source image. When you set base_image_type to IMAGE, set base_image to the ID of a custom image. When you set base_image_type to IMAGE_FAMILY, set base_image to the name of an image family.
    baseImageType string
    The type of the source image. Valid values: IMAGE, IMAGE_FAMILY.

    • IMAGE: custom image.
    • IMAGE_FAMILY: image family.
    buildContent string
    The content of the image template. The content cannot be greater than 16 KB in size, and can contain up to 127 commands.
    deleteInstanceOnFailure boolean
    Specifies whether to release the intermediate instance if the image cannot be created.
    description string
    The description of the image template. The description must be 2 to 256 characters in length and cannot start with http:// or https://. Note: If the intermediate instance cannot be started, the instance is released by default.
    imageName string
    The name prefix of the image to be created. The prefix must be 2 to 64 characters in length. It must start with a letter and cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), periods (.),and hyphens (-).
    instanceType string
    The instance type of the instance. You can call the DescribeInstanceTypes operation to query instance types. If you do not specify this parameter, an instance type that provides the fewest vCPUs and memory resources is automatically selected. This configuration is subject to resource availability of instance types. For example, the ecs.g6.large instance type is selected by default. If available ecs.g6.large resources are insufficient, the ecs.g6.xlarge instance type is selected.
    internetMaxBandwidthOut number
    The size of the outbound public bandwidth for the intermediate instance. Unit: Mbit/s. Valid values: 0 to 100. Default value: 0.
    name string
    The name of the image template. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), periods (.),and hyphens (-).
    resourceGroupId string
    The ID of the resource group.
    systemDiskSize number
    The size of the system disk of the intermediate instance. Unit: GiB. Valid values: 20 to 500. Default value: 40.
    tags {[key: string]: string}
    A mapping of tags to assign to the resource.
    toRegionIds string[]
    The ID of region to which to distribute the created image.
    vswitchId string
    The ID of the vSwitch. If you do not specify this parameter, a virtual private cloud (VPC) and a vSwitch are created by default.
    add_accounts Sequence[str]
    The ID of Alibaba Cloud account to which to share the created image.
    base_image str
    The source image. When you set base_image_type to IMAGE, set base_image to the ID of a custom image. When you set base_image_type to IMAGE_FAMILY, set base_image to the name of an image family.
    base_image_type str
    The type of the source image. Valid values: IMAGE, IMAGE_FAMILY.

    • IMAGE: custom image.
    • IMAGE_FAMILY: image family.
    build_content str
    The content of the image template. The content cannot be greater than 16 KB in size, and can contain up to 127 commands.
    delete_instance_on_failure bool
    Specifies whether to release the intermediate instance if the image cannot be created.
    description str
    The description of the image template. The description must be 2 to 256 characters in length and cannot start with http:// or https://. Note: If the intermediate instance cannot be started, the instance is released by default.
    image_name str
    The name prefix of the image to be created. The prefix must be 2 to 64 characters in length. It must start with a letter and cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), periods (.),and hyphens (-).
    instance_type str
    The instance type of the instance. You can call the DescribeInstanceTypes operation to query instance types. If you do not specify this parameter, an instance type that provides the fewest vCPUs and memory resources is automatically selected. This configuration is subject to resource availability of instance types. For example, the ecs.g6.large instance type is selected by default. If available ecs.g6.large resources are insufficient, the ecs.g6.xlarge instance type is selected.
    internet_max_bandwidth_out int
    The size of the outbound public bandwidth for the intermediate instance. Unit: Mbit/s. Valid values: 0 to 100. Default value: 0.
    name str
    The name of the image template. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), periods (.),and hyphens (-).
    resource_group_id str
    The ID of the resource group.
    system_disk_size int
    The size of the system disk of the intermediate instance. Unit: GiB. Valid values: 20 to 500. Default value: 40.
    tags Mapping[str, str]
    A mapping of tags to assign to the resource.
    to_region_ids Sequence[str]
    The ID of region to which to distribute the created image.
    vswitch_id str
    The ID of the vSwitch. If you do not specify this parameter, a virtual private cloud (VPC) and a vSwitch are created by default.
    addAccounts List<String>
    The ID of Alibaba Cloud account to which to share the created image.
    baseImage String
    The source image. When you set base_image_type to IMAGE, set base_image to the ID of a custom image. When you set base_image_type to IMAGE_FAMILY, set base_image to the name of an image family.
    baseImageType String
    The type of the source image. Valid values: IMAGE, IMAGE_FAMILY.

    • IMAGE: custom image.
    • IMAGE_FAMILY: image family.
    buildContent String
    The content of the image template. The content cannot be greater than 16 KB in size, and can contain up to 127 commands.
    deleteInstanceOnFailure Boolean
    Specifies whether to release the intermediate instance if the image cannot be created.
    description String
    The description of the image template. The description must be 2 to 256 characters in length and cannot start with http:// or https://. Note: If the intermediate instance cannot be started, the instance is released by default.
    imageName String
    The name prefix of the image to be created. The prefix must be 2 to 64 characters in length. It must start with a letter and cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), periods (.),and hyphens (-).
    instanceType String
    The instance type of the instance. You can call the DescribeInstanceTypes operation to query instance types. If you do not specify this parameter, an instance type that provides the fewest vCPUs and memory resources is automatically selected. This configuration is subject to resource availability of instance types. For example, the ecs.g6.large instance type is selected by default. If available ecs.g6.large resources are insufficient, the ecs.g6.xlarge instance type is selected.
    internetMaxBandwidthOut Number
    The size of the outbound public bandwidth for the intermediate instance. Unit: Mbit/s. Valid values: 0 to 100. Default value: 0.
    name String
    The name of the image template. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), periods (.),and hyphens (-).
    resourceGroupId String
    The ID of the resource group.
    systemDiskSize Number
    The size of the system disk of the intermediate instance. Unit: GiB. Valid values: 20 to 500. Default value: 40.
    tags Map<String>
    A mapping of tags to assign to the resource.
    toRegionIds List<String>
    The ID of region to which to distribute the created image.
    vswitchId String
    The ID of the vSwitch. If you do not specify this parameter, a virtual private cloud (VPC) and a vSwitch are created by default.

    Import

    ECS Image Pipeline can be imported using the id, e.g.

    $ pulumi import alicloud:ecs/ecsImagePipeline:EcsImagePipeline example <id>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi