alicloud logo
Alibaba Cloud v3.37.0, May 15 23

alicloud.ecs.EcsImagePipeline

Explore with Pulumi AI

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

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var defaultResourceGroups = AliCloud.ResourceManager.GetResourceGroups.Invoke(new()
    {
        NameRegex = "default",
    });

    var defaultZones = AliCloud.GetZones.Invoke();

    var defaultNetworks = AliCloud.Vpc.GetNetworks.Invoke(new()
    {
        NameRegex = "default-NODELETING",
    });

    var defaultSwitches = AliCloud.Vpc.GetSwitches.Invoke(new()
    {
        VpcId = defaultNetworks.Apply(getNetworksResult => getNetworksResult.Ids[0]),
        ZoneId = defaultZones.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
    });

    var defaultImages = AliCloud.Ecs.GetImages.Invoke(new()
    {
        NameRegex = "^ubuntu_[0-9]+_[0-9]+_x64*",
        MostRecent = true,
        Owners = "system",
    });

    var defaultInstanceTypes = AliCloud.Ecs.GetInstanceTypes.Invoke(new()
    {
        ImageId = defaultImages.Apply(getImagesResult => getImagesResult.Ids[0]),
    });

    var defaultEcsImagePipeline = new AliCloud.Ecs.EcsImagePipeline("defaultEcsImagePipeline", new()
    {
        AddAccounts = new[]
        {
            "example_value",
        },
        BaseImage = defaultImages.Apply(getImagesResult => getImagesResult.Ids[0]),
        BaseImageType = "IMAGE",
        BuildContent = "RUN yum update -y",
        DeleteInstanceOnFailure = false,
        ImageName = "example_value",
        Description = "example_value",
        InstanceType = defaultInstanceTypes.Apply(getInstanceTypesResult => getInstanceTypesResult.Ids[0]),
        ResourceGroupId = defaultResourceGroups.Apply(getResourceGroupsResult => getResourceGroupsResult.Groups[0]?.Id),
        InternetMaxBandwidthOut = 20,
        SystemDiskSize = 40,
        ToRegionIds = new[]
        {
            "cn-qingdao",
            "cn-zhangjiakou",
        },
        VswitchId = defaultSwitches.Apply(getSwitchesResult => getSwitchesResult.Ids[0]),
        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 {
		defaultResourceGroups, err := resourcemanager.GetResourceGroups(ctx, &resourcemanager.GetResourceGroupsArgs{
			NameRegex: pulumi.StringRef("default"),
		}, nil)
		if err != nil {
			return err
		}
		defaultZones, err := alicloud.GetZones(ctx, nil, nil)
		if err != nil {
			return err
		}
		defaultNetworks, err := vpc.GetNetworks(ctx, &vpc.GetNetworksArgs{
			NameRegex: pulumi.StringRef("default-NODELETING"),
		}, nil)
		if err != nil {
			return err
		}
		defaultSwitches, err := vpc.GetSwitches(ctx, &vpc.GetSwitchesArgs{
			VpcId:  pulumi.StringRef(defaultNetworks.Ids[0]),
			ZoneId: pulumi.StringRef(defaultZones.Zones[0].Id),
		}, nil)
		if err != nil {
			return err
		}
		defaultImages, err := ecs.GetImages(ctx, &ecs.GetImagesArgs{
			NameRegex:  pulumi.StringRef("^ubuntu_[0-9]+_[0-9]+_x64*"),
			MostRecent: pulumi.BoolRef(true),
			Owners:     pulumi.StringRef("system"),
		}, nil)
		if err != nil {
			return err
		}
		defaultInstanceTypes, err := ecs.GetInstanceTypes(ctx, &ecs.GetInstanceTypesArgs{
			ImageId: pulumi.StringRef(defaultImages.Ids[0]),
		}, nil)
		if err != nil {
			return err
		}
		_, err = ecs.NewEcsImagePipeline(ctx, "defaultEcsImagePipeline", &ecs.EcsImagePipelineArgs{
			AddAccounts: pulumi.StringArray{
				pulumi.String("example_value"),
			},
			BaseImage:               *pulumi.String(defaultImages.Ids[0]),
			BaseImageType:           pulumi.String("IMAGE"),
			BuildContent:            pulumi.String("RUN yum update -y"),
			DeleteInstanceOnFailure: pulumi.Bool(false),
			ImageName:               pulumi.String("example_value"),
			Description:             pulumi.String("example_value"),
			InstanceType:            *pulumi.String(defaultInstanceTypes.Ids[0]),
			ResourceGroupId:         *pulumi.String(defaultResourceGroups.Groups[0].Id),
			InternetMaxBandwidthOut: pulumi.Int(20),
			SystemDiskSize:          pulumi.Int(40),
			ToRegionIds: pulumi.StringArray{
				pulumi.String("cn-qingdao"),
				pulumi.String("cn-zhangjiakou"),
			},
			VswitchId: *pulumi.String(defaultSwitches.Ids[0]),
			Tags: pulumi.AnyMap{
				"Created": pulumi.Any("TF"),
				"For":     pulumi.Any("Acceptance-test"),
			},
		})
		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.resourcemanager.ResourcemanagerFunctions;
import com.pulumi.alicloud.resourcemanager.inputs.GetResourceGroupsArgs;
import com.pulumi.alicloud.AlicloudFunctions;
import com.pulumi.alicloud.inputs.GetZonesArgs;
import com.pulumi.alicloud.vpc.VpcFunctions;
import com.pulumi.alicloud.vpc.inputs.GetNetworksArgs;
import com.pulumi.alicloud.vpc.inputs.GetSwitchesArgs;
import com.pulumi.alicloud.ecs.EcsFunctions;
import com.pulumi.alicloud.ecs.inputs.GetImagesArgs;
import com.pulumi.alicloud.ecs.inputs.GetInstanceTypesArgs;
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 defaultResourceGroups = ResourcemanagerFunctions.getResourceGroups(GetResourceGroupsArgs.builder()
            .nameRegex("default")
            .build());

        final var defaultZones = AlicloudFunctions.getZones();

        final var defaultNetworks = VpcFunctions.getNetworks(GetNetworksArgs.builder()
            .nameRegex("default-NODELETING")
            .build());

        final var defaultSwitches = VpcFunctions.getSwitches(GetSwitchesArgs.builder()
            .vpcId(defaultNetworks.applyValue(getNetworksResult -> getNetworksResult.ids()[0]))
            .zoneId(defaultZones.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
            .build());

        final var defaultImages = EcsFunctions.getImages(GetImagesArgs.builder()
            .nameRegex("^ubuntu_[0-9]+_[0-9]+_x64*")
            .mostRecent(true)
            .owners("system")
            .build());

        final var defaultInstanceTypes = EcsFunctions.getInstanceTypes(GetInstanceTypesArgs.builder()
            .imageId(defaultImages.applyValue(getImagesResult -> getImagesResult.ids()[0]))
            .build());

        var defaultEcsImagePipeline = new EcsImagePipeline("defaultEcsImagePipeline", EcsImagePipelineArgs.builder()        
            .addAccounts("example_value")
            .baseImage(defaultImages.applyValue(getImagesResult -> getImagesResult.ids()[0]))
            .baseImageType("IMAGE")
            .buildContent("RUN yum update -y")
            .deleteInstanceOnFailure(false)
            .imageName("example_value")
            .description("example_value")
            .instanceType(defaultInstanceTypes.applyValue(getInstanceTypesResult -> getInstanceTypesResult.ids()[0]))
            .resourceGroupId(defaultResourceGroups.applyValue(getResourceGroupsResult -> getResourceGroupsResult.groups()[0].id()))
            .internetMaxBandwidthOut(20)
            .systemDiskSize(40)
            .toRegionIds(            
                "cn-qingdao",
                "cn-zhangjiakou")
            .vswitchId(defaultSwitches.applyValue(getSwitchesResult -> getSwitchesResult.ids()[0]))
            .tags(Map.ofEntries(
                Map.entry("Created", "TF"),
                Map.entry("For", "Acceptance-test")
            ))
            .build());

    }
}
import pulumi
import pulumi_alicloud as alicloud

default_resource_groups = alicloud.resourcemanager.get_resource_groups(name_regex="default")
default_zones = alicloud.get_zones()
default_networks = alicloud.vpc.get_networks(name_regex="default-NODELETING")
default_switches = alicloud.vpc.get_switches(vpc_id=default_networks.ids[0],
    zone_id=default_zones.zones[0].id)
default_images = alicloud.ecs.get_images(name_regex="^ubuntu_[0-9]+_[0-9]+_x64*",
    most_recent=True,
    owners="system")
default_instance_types = alicloud.ecs.get_instance_types(image_id=default_images.ids[0])
default_ecs_image_pipeline = alicloud.ecs.EcsImagePipeline("defaultEcsImagePipeline",
    add_accounts=["example_value"],
    base_image=default_images.ids[0],
    base_image_type="IMAGE",
    build_content="RUN yum update -y",
    delete_instance_on_failure=False,
    image_name="example_value",
    description="example_value",
    instance_type=default_instance_types.ids[0],
    resource_group_id=default_resource_groups.groups[0].id,
    internet_max_bandwidth_out=20,
    system_disk_size=40,
    to_region_ids=[
        "cn-qingdao",
        "cn-zhangjiakou",
    ],
    vswitch_id=default_switches.ids[0],
    tags={
        "Created": "TF",
        "For": "Acceptance-test",
    })
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const defaultResourceGroups = alicloud.resourcemanager.getResourceGroups({
    nameRegex: "default",
});
const defaultZones = alicloud.getZones({});
const defaultNetworks = alicloud.vpc.getNetworks({
    nameRegex: "default-NODELETING",
});
const defaultSwitches = Promise.all([defaultNetworks, defaultZones]).then(([defaultNetworks, defaultZones]) => alicloud.vpc.getSwitches({
    vpcId: defaultNetworks.ids?.[0],
    zoneId: defaultZones.zones?.[0]?.id,
}));
const defaultImages = alicloud.ecs.getImages({
    nameRegex: "^ubuntu_[0-9]+_[0-9]+_x64*",
    mostRecent: true,
    owners: "system",
});
const defaultInstanceTypes = defaultImages.then(defaultImages => alicloud.ecs.getInstanceTypes({
    imageId: defaultImages.ids?.[0],
}));
const defaultEcsImagePipeline = new alicloud.ecs.EcsImagePipeline("defaultEcsImagePipeline", {
    addAccounts: ["example_value"],
    baseImage: defaultImages.then(defaultImages => defaultImages.ids?.[0]),
    baseImageType: "IMAGE",
    buildContent: "RUN yum update -y",
    deleteInstanceOnFailure: false,
    imageName: "example_value",
    description: "example_value",
    instanceType: defaultInstanceTypes.then(defaultInstanceTypes => defaultInstanceTypes.ids?.[0]),
    resourceGroupId: defaultResourceGroups.then(defaultResourceGroups => defaultResourceGroups.groups?.[0]?.id),
    internetMaxBandwidthOut: 20,
    systemDiskSize: 40,
    toRegionIds: [
        "cn-qingdao",
        "cn-zhangjiakou",
    ],
    vswitchId: defaultSwitches.then(defaultSwitches => defaultSwitches.ids?.[0]),
    tags: {
        Created: "TF",
        For: "Acceptance-test",
    },
});
resources:
  defaultEcsImagePipeline:
    type: alicloud:ecs:EcsImagePipeline
    properties:
      addAccounts:
        - example_value
      baseImage: ${defaultImages.ids[0]}
      baseImageType: IMAGE
      buildContent: RUN yum update -y
      deleteInstanceOnFailure: false
      imageName: example_value
      description: example_value
      instanceType: ${defaultInstanceTypes.ids[0]}
      resourceGroupId: ${defaultResourceGroups.groups[0].id}
      internetMaxBandwidthOut: 20
      systemDiskSize: 40
      toRegionIds:
        - cn-qingdao
        - cn-zhangjiakou
      vswitchId: ${defaultSwitches.ids[0]}
      tags:
        Created: TF
        For: Acceptance-test
variables:
  defaultResourceGroups:
    fn::invoke:
      Function: alicloud:resourcemanager:getResourceGroups
      Arguments:
        nameRegex: default
  defaultZones:
    fn::invoke:
      Function: alicloud:getZones
      Arguments: {}
  defaultNetworks:
    fn::invoke:
      Function: alicloud:vpc:getNetworks
      Arguments:
        nameRegex: default-NODELETING
  defaultSwitches:
    fn::invoke:
      Function: alicloud:vpc:getSwitches
      Arguments:
        vpcId: ${defaultNetworks.ids[0]}
        zoneId: ${defaultZones.zones[0].id}
  defaultImages:
    fn::invoke:
      Function: alicloud:ecs:getImages
      Arguments:
        nameRegex: ^ubuntu_[0-9]+_[0-9]+_x64*
        mostRecent: true
        owners: system
  defaultInstanceTypes:
    fn::invoke:
      Function: alicloud:ecs:getInstanceTypes
      Arguments:
        imageId: ${defaultImages.ids[0]}

Create EcsImagePipeline Resource

new EcsImagePipeline(name: string, args: EcsImagePipelineArgs, opts?: CustomResourceOptions);
@overload
def EcsImagePipeline(resource_name: 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, Any]] = None,
                     to_region_ids: Optional[Sequence[str]] = None,
                     vswitch_id: Optional[str] = None)
@overload
def EcsImagePipeline(resource_name: str,
                     args: EcsImagePipelineArgs,
                     opts: Optional[ResourceOptions] = 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.

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.

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

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, object>

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]interface{}

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,Object>

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]: any}

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, Any]

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<Any>

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, Any]] = 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, object>

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]interface{}

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,Object>

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]: any}

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, Any]

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<Any>

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>

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.