1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. ecs
  5. ImagePipelineExecution
Viewing docs for Alibaba Cloud v3.96.0
published on Tuesday, Mar 3, 2026 by Pulumi
alicloud logo
Viewing docs for Alibaba Cloud v3.96.0
published on Tuesday, Mar 3, 2026 by Pulumi

    Provides a ECS Image Pipeline Execution resource.

    The mirror template performs the build mirror task.

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

    NOTE: Available since v1.237.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    import * as std from "@pulumi/std";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "terraform-example";
    const pipelineExecution_vpc = new alicloud.vpc.Network("pipelineExecution-vpc", {
        description: "example-pipeline",
        enableIpv6: true,
        vpcName: name,
    });
    const vs = new alicloud.vpc.Switch("vs", {
        description: "pipelineExecution-start",
        vpcId: pipelineExecution_vpc.id,
        cidrBlock: "172.16.0.0/24",
        vswitchName: std.format({
            input: "%s1",
            args: [name],
        }).then(invoke => invoke.result),
        zoneId: "cn-hangzhou-i",
    });
    const pipelineExection_pipeline = new alicloud.ecs.EcsImagePipeline("pipelineExection-pipeline", {
        baseImageType: "IMAGE",
        description: "example",
        systemDiskSize: 40,
        vswitchId: vs.id,
        addAccounts: ["1284387915995949"],
        imageName: "example-image-pipeline",
        deleteInstanceOnFailure: true,
        internetMaxBandwidthOut: 5,
        toRegionIds: ["cn-beijing"],
        baseImage: "aliyun_3_x64_20G_dengbao_alibase_20240819.vhd",
        buildContent: "COMPONENT ic-bp122acttbs2sxdyq2ky",
    });
    const _default = new alicloud.ecs.ImagePipelineExecution("default", {imagePipelineId: pipelineExection_pipeline.id});
    
    import pulumi
    import pulumi_alicloud as alicloud
    import pulumi_std as std
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    pipeline_execution_vpc = alicloud.vpc.Network("pipelineExecution-vpc",
        description="example-pipeline",
        enable_ipv6=True,
        vpc_name=name)
    vs = alicloud.vpc.Switch("vs",
        description="pipelineExecution-start",
        vpc_id=pipeline_execution_vpc.id,
        cidr_block="172.16.0.0/24",
        vswitch_name=std.format(input="%s1",
            args=[name]).result,
        zone_id="cn-hangzhou-i")
    pipeline_exection_pipeline = alicloud.ecs.EcsImagePipeline("pipelineExection-pipeline",
        base_image_type="IMAGE",
        description="example",
        system_disk_size=40,
        vswitch_id=vs.id,
        add_accounts=["1284387915995949"],
        image_name="example-image-pipeline",
        delete_instance_on_failure=True,
        internet_max_bandwidth_out=5,
        to_region_ids=["cn-beijing"],
        base_image="aliyun_3_x64_20G_dengbao_alibase_20240819.vhd",
        build_content="COMPONENT ic-bp122acttbs2sxdyq2ky")
    default = alicloud.ecs.ImagePipelineExecution("default", image_pipeline_id=pipeline_exection_pipeline.id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
    	"github.com/pulumi/pulumi-std/sdk/go/std"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		name := "terraform-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		pipelineExecution_vpc, err := vpc.NewNetwork(ctx, "pipelineExecution-vpc", &vpc.NetworkArgs{
    			Description: pulumi.String("example-pipeline"),
    			EnableIpv6:  pulumi.Bool(true),
    			VpcName:     pulumi.String(name),
    		})
    		if err != nil {
    			return err
    		}
    		invokeFormat, err := std.Format(ctx, &std.FormatArgs{
    			Input: "%s1",
    			Args: []string{
    				name,
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		vs, err := vpc.NewSwitch(ctx, "vs", &vpc.SwitchArgs{
    			Description: pulumi.String("pipelineExecution-start"),
    			VpcId:       pipelineExecution_vpc.ID(),
    			CidrBlock:   pulumi.String("172.16.0.0/24"),
    			VswitchName: pulumi.String(invokeFormat.Result),
    			ZoneId:      pulumi.String("cn-hangzhou-i"),
    		})
    		if err != nil {
    			return err
    		}
    		pipelineExection_pipeline, err := ecs.NewEcsImagePipeline(ctx, "pipelineExection-pipeline", &ecs.EcsImagePipelineArgs{
    			BaseImageType:  pulumi.String("IMAGE"),
    			Description:    pulumi.String("example"),
    			SystemDiskSize: pulumi.Int(40),
    			VswitchId:      vs.ID(),
    			AddAccounts: pulumi.StringArray{
    				pulumi.String("1284387915995949"),
    			},
    			ImageName:               pulumi.String("example-image-pipeline"),
    			DeleteInstanceOnFailure: pulumi.Bool(true),
    			InternetMaxBandwidthOut: pulumi.Int(5),
    			ToRegionIds: pulumi.StringArray{
    				pulumi.String("cn-beijing"),
    			},
    			BaseImage:    pulumi.String("aliyun_3_x64_20G_dengbao_alibase_20240819.vhd"),
    			BuildContent: pulumi.String("COMPONENT ic-bp122acttbs2sxdyq2ky"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = ecs.NewImagePipelineExecution(ctx, "default", &ecs.ImagePipelineExecutionArgs{
    			ImagePipelineId: pipelineExection_pipeline.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    using Std = Pulumi.Std;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "terraform-example";
        var pipelineExecution_vpc = new AliCloud.Vpc.Network("pipelineExecution-vpc", new()
        {
            Description = "example-pipeline",
            EnableIpv6 = true,
            VpcName = name,
        });
    
        var vs = new AliCloud.Vpc.Switch("vs", new()
        {
            Description = "pipelineExecution-start",
            VpcId = pipelineExecution_vpc.Id,
            CidrBlock = "172.16.0.0/24",
            VswitchName = Std.Format.Invoke(new()
            {
                Input = "%s1",
                Args = new[]
                {
                    name,
                },
            }).Apply(invoke => invoke.Result),
            ZoneId = "cn-hangzhou-i",
        });
    
        var pipelineExection_pipeline = new AliCloud.Ecs.EcsImagePipeline("pipelineExection-pipeline", new()
        {
            BaseImageType = "IMAGE",
            Description = "example",
            SystemDiskSize = 40,
            VswitchId = vs.Id,
            AddAccounts = new[]
            {
                "1284387915995949",
            },
            ImageName = "example-image-pipeline",
            DeleteInstanceOnFailure = true,
            InternetMaxBandwidthOut = 5,
            ToRegionIds = new[]
            {
                "cn-beijing",
            },
            BaseImage = "aliyun_3_x64_20G_dengbao_alibase_20240819.vhd",
            BuildContent = "COMPONENT ic-bp122acttbs2sxdyq2ky",
        });
    
        var @default = new AliCloud.Ecs.ImagePipelineExecution("default", new()
        {
            ImagePipelineId = pipelineExection_pipeline.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.vpc.Network;
    import com.pulumi.alicloud.vpc.NetworkArgs;
    import com.pulumi.alicloud.vpc.Switch;
    import com.pulumi.alicloud.vpc.SwitchArgs;
    import com.pulumi.std.StdFunctions;
    import com.pulumi.std.inputs.FormatArgs;
    import com.pulumi.alicloud.ecs.EcsImagePipeline;
    import com.pulumi.alicloud.ecs.EcsImagePipelineArgs;
    import com.pulumi.alicloud.ecs.ImagePipelineExecution;
    import com.pulumi.alicloud.ecs.ImagePipelineExecutionArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var config = ctx.config();
            final var name = config.get("name").orElse("terraform-example");
            var pipelineExecution_vpc = new Network("pipelineExecution-vpc", NetworkArgs.builder()
                .description("example-pipeline")
                .enableIpv6(true)
                .vpcName(name)
                .build());
    
            var vs = new Switch("vs", SwitchArgs.builder()
                .description("pipelineExecution-start")
                .vpcId(pipelineExecution_vpc.id())
                .cidrBlock("172.16.0.0/24")
                .vswitchName(StdFunctions.format(FormatArgs.builder()
                    .input("%s1")
                    .args(name)
                    .build()).result())
                .zoneId("cn-hangzhou-i")
                .build());
    
            var pipelineExection_pipeline = new EcsImagePipeline("pipelineExection-pipeline", EcsImagePipelineArgs.builder()
                .baseImageType("IMAGE")
                .description("example")
                .systemDiskSize(40)
                .vswitchId(vs.id())
                .addAccounts("1284387915995949")
                .imageName("example-image-pipeline")
                .deleteInstanceOnFailure(true)
                .internetMaxBandwidthOut(5)
                .toRegionIds("cn-beijing")
                .baseImage("aliyun_3_x64_20G_dengbao_alibase_20240819.vhd")
                .buildContent("COMPONENT ic-bp122acttbs2sxdyq2ky")
                .build());
    
            var default_ = new ImagePipelineExecution("default", ImagePipelineExecutionArgs.builder()
                .imagePipelineId(pipelineExection_pipeline.id())
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: terraform-example
    resources:
      pipelineExecution-vpc:
        type: alicloud:vpc:Network
        properties:
          description: example-pipeline
          enableIpv6: true
          vpcName: ${name}
      vs:
        type: alicloud:vpc:Switch
        properties:
          description: pipelineExecution-start
          vpcId: ${["pipelineExecution-vpc"].id}
          cidrBlock: 172.16.0.0/24
          vswitchName:
            fn::invoke:
              function: std:format
              arguments:
                input: '%s1'
                args:
                  - ${name}
              return: result
          zoneId: cn-hangzhou-i
      pipelineExection-pipeline:
        type: alicloud:ecs:EcsImagePipeline
        properties:
          baseImageType: IMAGE
          description: example
          systemDiskSize: '40'
          vswitchId: ${vs.id}
          addAccounts:
            - '1284387915995949'
          imageName: example-image-pipeline
          deleteInstanceOnFailure: true
          internetMaxBandwidthOut: '5'
          toRegionIds:
            - cn-beijing
          baseImage: aliyun_3_x64_20G_dengbao_alibase_20240819.vhd
          buildContent: COMPONENT ic-bp122acttbs2sxdyq2ky
      default:
        type: alicloud:ecs:ImagePipelineExecution
        properties:
          imagePipelineId: ${["pipelineExection-pipeline"].id}
    

    Deleting alicloud.ecs.ImagePipelineExecution or removing it from your configuration

    Terraform cannot destroy resource alicloud.ecs.ImagePipelineExecution. Terraform will remove this resource from the state file, however resources may remain.

    📚 Need more examples? VIEW MORE EXAMPLES

    Create ImagePipelineExecution Resource

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

    Constructor syntax

    new ImagePipelineExecution(name: string, args: ImagePipelineExecutionArgs, opts?: CustomResourceOptions);
    @overload
    def ImagePipelineExecution(resource_name: str,
                               args: ImagePipelineExecutionArgs,
                               opts: Optional[ResourceOptions] = None)
    
    @overload
    def ImagePipelineExecution(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               image_pipeline_id: Optional[str] = None,
                               status: Optional[str] = None)
    func NewImagePipelineExecution(ctx *Context, name string, args ImagePipelineExecutionArgs, opts ...ResourceOption) (*ImagePipelineExecution, error)
    public ImagePipelineExecution(string name, ImagePipelineExecutionArgs args, CustomResourceOptions? opts = null)
    public ImagePipelineExecution(String name, ImagePipelineExecutionArgs args)
    public ImagePipelineExecution(String name, ImagePipelineExecutionArgs args, CustomResourceOptions options)
    
    type: alicloud:ecs:ImagePipelineExecution
    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 ImagePipelineExecutionArgs
    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 ImagePipelineExecutionArgs
    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 ImagePipelineExecutionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ImagePipelineExecutionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ImagePipelineExecutionArgs
    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 imagePipelineExecutionResource = new AliCloud.Ecs.ImagePipelineExecution("imagePipelineExecutionResource", new()
    {
        ImagePipelineId = "string",
        Status = "string",
    });
    
    example, err := ecs.NewImagePipelineExecution(ctx, "imagePipelineExecutionResource", &ecs.ImagePipelineExecutionArgs{
    	ImagePipelineId: pulumi.String("string"),
    	Status:          pulumi.String("string"),
    })
    
    var imagePipelineExecutionResource = new ImagePipelineExecution("imagePipelineExecutionResource", ImagePipelineExecutionArgs.builder()
        .imagePipelineId("string")
        .status("string")
        .build());
    
    image_pipeline_execution_resource = alicloud.ecs.ImagePipelineExecution("imagePipelineExecutionResource",
        image_pipeline_id="string",
        status="string")
    
    const imagePipelineExecutionResource = new alicloud.ecs.ImagePipelineExecution("imagePipelineExecutionResource", {
        imagePipelineId: "string",
        status: "string",
    });
    
    type: alicloud:ecs:ImagePipelineExecution
    properties:
        imagePipelineId: string
        status: string
    

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

    ImagePipelineId string
    The ID of the image template.
    Status string
    The status of the image build task. Valid values:

    • CANCELLED: canceled. The build process has been canceled.
    ImagePipelineId string
    The ID of the image template.
    Status string
    The status of the image build task. Valid values:

    • CANCELLED: canceled. The build process has been canceled.
    imagePipelineId String
    The ID of the image template.
    status String
    The status of the image build task. Valid values:

    • CANCELLED: canceled. The build process has been canceled.
    imagePipelineId string
    The ID of the image template.
    status string
    The status of the image build task. Valid values:

    • CANCELLED: canceled. The build process has been canceled.
    image_pipeline_id str
    The ID of the image template.
    status str
    The status of the image build task. Valid values:

    • CANCELLED: canceled. The build process has been canceled.
    imagePipelineId String
    The ID of the image template.
    status String
    The status of the image build task. Valid values:

    • CANCELLED: canceled. The build process has been canceled.

    Outputs

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

    CreateTime string
    The time when the image build task was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    CreateTime string
    The time when the image build task was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    createTime String
    The time when the image build task was created.
    id String
    The provider-assigned unique ID for this managed resource.
    createTime string
    The time when the image build task was created.
    id string
    The provider-assigned unique ID for this managed resource.
    create_time str
    The time when the image build task was created.
    id str
    The provider-assigned unique ID for this managed resource.
    createTime String
    The time when the image build task was created.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing ImagePipelineExecution Resource

    Get an existing ImagePipelineExecution 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?: ImagePipelineExecutionState, opts?: CustomResourceOptions): ImagePipelineExecution
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            create_time: Optional[str] = None,
            image_pipeline_id: Optional[str] = None,
            status: Optional[str] = None) -> ImagePipelineExecution
    func GetImagePipelineExecution(ctx *Context, name string, id IDInput, state *ImagePipelineExecutionState, opts ...ResourceOption) (*ImagePipelineExecution, error)
    public static ImagePipelineExecution Get(string name, Input<string> id, ImagePipelineExecutionState? state, CustomResourceOptions? opts = null)
    public static ImagePipelineExecution get(String name, Output<String> id, ImagePipelineExecutionState state, CustomResourceOptions options)
    resources:  _:    type: alicloud:ecs:ImagePipelineExecution    get:      id: ${id}
    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:
    CreateTime string
    The time when the image build task was created.
    ImagePipelineId string
    The ID of the image template.
    Status string
    The status of the image build task. Valid values:

    • CANCELLED: canceled. The build process has been canceled.
    CreateTime string
    The time when the image build task was created.
    ImagePipelineId string
    The ID of the image template.
    Status string
    The status of the image build task. Valid values:

    • CANCELLED: canceled. The build process has been canceled.
    createTime String
    The time when the image build task was created.
    imagePipelineId String
    The ID of the image template.
    status String
    The status of the image build task. Valid values:

    • CANCELLED: canceled. The build process has been canceled.
    createTime string
    The time when the image build task was created.
    imagePipelineId string
    The ID of the image template.
    status string
    The status of the image build task. Valid values:

    • CANCELLED: canceled. The build process has been canceled.
    create_time str
    The time when the image build task was created.
    image_pipeline_id str
    The ID of the image template.
    status str
    The status of the image build task. Valid values:

    • CANCELLED: canceled. The build process has been canceled.
    createTime String
    The time when the image build task was created.
    imagePipelineId String
    The ID of the image template.
    status String
    The status of the image build task. Valid values:

    • CANCELLED: canceled. The build process has been canceled.

    Import

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

    $ pulumi import alicloud:ecs/imagePipelineExecution:ImagePipelineExecution 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
    Viewing docs for Alibaba Cloud v3.96.0
    published on Tuesday, Mar 3, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.