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
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_[0-9]+_[0-9]+_x64*",
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_[0-9]+_[0-9]+_x64*",
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_[0-9]+_[0-9]+_x64*"),
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, nil, 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.Map{
"Created": pulumi.Any("TF"),
"For": pulumi.Any("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_[0-9]+_[0-9]+_x64*",
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_[0-9]+_[0-9]+_x64*")
.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_[0-9]+_[0-9]+_x64*
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, Any]] = 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", "any" },
},
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.Map{
"string": pulumi.Any("any"),
},
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", "any"))
.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": "any",
},
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: "any",
},
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: any
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
The EcsImagePipeline resource accepts the following input properties:
- Base
Image string - The source image. When you set
base_image_type
toIMAGE
, setbase_image
to the ID of a custom image. When you setbase_image_type
toIMAGE_FAMILY
, setbase_image
to the name of an image family. - Base
Image stringType - The type of the source image. Valid values:
IMAGE
,IMAGE_FAMILY
.- IMAGE: custom image.
- IMAGE_FAMILY: image family.
- Add
Accounts List<string> - The ID of Alibaba Cloud account to which to share the created image.
- Build
Content string - 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 boolOn Failure - 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
to256
characters in length and cannot start withhttp://
orhttps://
. Note: If the intermediate instance cannot be started, the instance is released by default. - Image
Name string - The name prefix of the image to be created. The prefix must be
2
to64
characters in length. It must start with a letter and cannot start withhttp://
orhttps://
. It can contain letters, digits, colons (:), underscores (_), periods (.),and hyphens (-). - Instance
Type 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 availableecs.g6.large
resources are insufficient, theecs.g6.xlarge
instance type is selected. - Internet
Max intBandwidth Out - The size of the outbound public bandwidth for the intermediate instance. Unit:
Mbit/s
. Valid values:0
to100
. Default value:0
. - Name string
- The name of the image template. The name must be
2
to128
characters in length. It must start with a letter and cannot start withhttp://
orhttps://
. It can contain letters, digits, colons (:), underscores (_), periods (.),and hyphens (-). - Resource
Group stringId - The ID of the resource group.
- System
Disk intSize - The size of the system disk of the intermediate instance. Unit: GiB. Valid values:
20
to500
. Default value:40
. - Dictionary<string, object>
- A mapping of tags to assign to the resource.
- To
Region List<string>Ids - The ID of region to which to distribute the created image.
- Vswitch
Id 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 string - The source image. When you set
base_image_type
toIMAGE
, setbase_image
to the ID of a custom image. When you setbase_image_type
toIMAGE_FAMILY
, setbase_image
to the name of an image family. - Base
Image stringType - The type of the source image. Valid values:
IMAGE
,IMAGE_FAMILY
.- IMAGE: custom image.
- IMAGE_FAMILY: image family.
- Add
Accounts []string - The ID of Alibaba Cloud account to which to share the created image.
- Build
Content string - 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 boolOn Failure - 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
to256
characters in length and cannot start withhttp://
orhttps://
. Note: If the intermediate instance cannot be started, the instance is released by default. - Image
Name string - The name prefix of the image to be created. The prefix must be
2
to64
characters in length. It must start with a letter and cannot start withhttp://
orhttps://
. It can contain letters, digits, colons (:), underscores (_), periods (.),and hyphens (-). - Instance
Type 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 availableecs.g6.large
resources are insufficient, theecs.g6.xlarge
instance type is selected. - Internet
Max intBandwidth Out - The size of the outbound public bandwidth for the intermediate instance. Unit:
Mbit/s
. Valid values:0
to100
. Default value:0
. - Name string
- The name of the image template. The name must be
2
to128
characters in length. It must start with a letter and cannot start withhttp://
orhttps://
. It can contain letters, digits, colons (:), underscores (_), periods (.),and hyphens (-). - Resource
Group stringId - The ID of the resource group.
- System
Disk intSize - The size of the system disk of the intermediate instance. Unit: GiB. Valid values:
20
to500
. Default value:40
. - map[string]interface{}
- A mapping of tags to assign to the resource.
- To
Region []stringIds - The ID of region to which to distribute the created image.
- Vswitch
Id 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 String - The source image. When you set
base_image_type
toIMAGE
, setbase_image
to the ID of a custom image. When you setbase_image_type
toIMAGE_FAMILY
, setbase_image
to the name of an image family. - base
Image StringType - The type of the source image. Valid values:
IMAGE
,IMAGE_FAMILY
.- IMAGE: custom image.
- IMAGE_FAMILY: image family.
- add
Accounts List<String> - The ID of Alibaba Cloud account to which to share the created image.
- build
Content String - 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 BooleanOn Failure - 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
to256
characters in length and cannot start withhttp://
orhttps://
. Note: If the intermediate instance cannot be started, the instance is released by default. - image
Name String - The name prefix of the image to be created. The prefix must be
2
to64
characters in length. It must start with a letter and cannot start withhttp://
orhttps://
. It can contain letters, digits, colons (:), underscores (_), periods (.),and hyphens (-). - instance
Type 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 availableecs.g6.large
resources are insufficient, theecs.g6.xlarge
instance type is selected. - internet
Max IntegerBandwidth Out - The size of the outbound public bandwidth for the intermediate instance. Unit:
Mbit/s
. Valid values:0
to100
. Default value:0
. - name String
- The name of the image template. The name must be
2
to128
characters in length. It must start with a letter and cannot start withhttp://
orhttps://
. It can contain letters, digits, colons (:), underscores (_), periods (.),and hyphens (-). - resource
Group StringId - The ID of the resource group.
- system
Disk IntegerSize - The size of the system disk of the intermediate instance. Unit: GiB. Valid values:
20
to500
. Default value:40
. - Map<String,Object>
- A mapping of tags to assign to the resource.
- to
Region List<String>Ids - The ID of region to which to distribute the created image.
- vswitch
Id 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 string - The source image. When you set
base_image_type
toIMAGE
, setbase_image
to the ID of a custom image. When you setbase_image_type
toIMAGE_FAMILY
, setbase_image
to the name of an image family. - base
Image stringType - The type of the source image. Valid values:
IMAGE
,IMAGE_FAMILY
.- IMAGE: custom image.
- IMAGE_FAMILY: image family.
- add
Accounts string[] - The ID of Alibaba Cloud account to which to share the created image.
- build
Content string - 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 booleanOn Failure - 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
to256
characters in length and cannot start withhttp://
orhttps://
. Note: If the intermediate instance cannot be started, the instance is released by default. - image
Name string - The name prefix of the image to be created. The prefix must be
2
to64
characters in length. It must start with a letter and cannot start withhttp://
orhttps://
. It can contain letters, digits, colons (:), underscores (_), periods (.),and hyphens (-). - instance
Type 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 availableecs.g6.large
resources are insufficient, theecs.g6.xlarge
instance type is selected. - internet
Max numberBandwidth Out - The size of the outbound public bandwidth for the intermediate instance. Unit:
Mbit/s
. Valid values:0
to100
. Default value:0
. - name string
- The name of the image template. The name must be
2
to128
characters in length. It must start with a letter and cannot start withhttp://
orhttps://
. It can contain letters, digits, colons (:), underscores (_), periods (.),and hyphens (-). - resource
Group stringId - The ID of the resource group.
- system
Disk numberSize - The size of the system disk of the intermediate instance. Unit: GiB. Valid values:
20
to500
. Default value:40
. - {[key: string]: any}
- A mapping of tags to assign to the resource.
- to
Region string[]Ids - The ID of region to which to distribute the created image.
- vswitch
Id 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
toIMAGE
, setbase_image
to the ID of a custom image. When you setbase_image_type
toIMAGE_FAMILY
, setbase_image
to the name of an image family. - base_
image_ strtype - 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_ boolon_ failure - 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
to256
characters in length and cannot start withhttp://
orhttps://
. 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
to64
characters in length. It must start with a letter and cannot start withhttp://
orhttps://
. 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 availableecs.g6.large
resources are insufficient, theecs.g6.xlarge
instance type is selected. - internet_
max_ intbandwidth_ out - The size of the outbound public bandwidth for the intermediate instance. Unit:
Mbit/s
. Valid values:0
to100
. Default value:0
. - name str
- The name of the image template. The name must be
2
to128
characters in length. It must start with a letter and cannot start withhttp://
orhttps://
. It can contain letters, digits, colons (:), underscores (_), periods (.),and hyphens (-). - resource_
group_ strid - The ID of the resource group.
- system_
disk_ intsize - The size of the system disk of the intermediate instance. Unit: GiB. Valid values:
20
to500
. Default value:40
. - Mapping[str, Any]
- A mapping of tags to assign to the resource.
- to_
region_ Sequence[str]ids - 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.
- base
Image String - The source image. When you set
base_image_type
toIMAGE
, setbase_image
to the ID of a custom image. When you setbase_image_type
toIMAGE_FAMILY
, setbase_image
to the name of an image family. - base
Image StringType - The type of the source image. Valid values:
IMAGE
,IMAGE_FAMILY
.- IMAGE: custom image.
- IMAGE_FAMILY: image family.
- add
Accounts List<String> - The ID of Alibaba Cloud account to which to share the created image.
- build
Content String - 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 BooleanOn Failure - 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
to256
characters in length and cannot start withhttp://
orhttps://
. Note: If the intermediate instance cannot be started, the instance is released by default. - image
Name String - The name prefix of the image to be created. The prefix must be
2
to64
characters in length. It must start with a letter and cannot start withhttp://
orhttps://
. It can contain letters, digits, colons (:), underscores (_), periods (.),and hyphens (-). - instance
Type 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 availableecs.g6.large
resources are insufficient, theecs.g6.xlarge
instance type is selected. - internet
Max NumberBandwidth Out - The size of the outbound public bandwidth for the intermediate instance. Unit:
Mbit/s
. Valid values:0
to100
. Default value:0
. - name String
- The name of the image template. The name must be
2
to128
characters in length. It must start with a letter and cannot start withhttp://
orhttps://
. It can contain letters, digits, colons (:), underscores (_), periods (.),and hyphens (-). - resource
Group StringId - The ID of the resource group.
- system
Disk NumberSize - The size of the system disk of the intermediate instance. Unit: GiB. Valid values:
20
to500
. Default value:40
. - Map<Any>
- A mapping of tags to assign to the resource.
- to
Region List<String>Ids - The ID of region to which to distribute the created image.
- vswitch
Id 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.
- Add
Accounts List<string> - The ID of Alibaba Cloud account to which to share the created image.
- Base
Image string - The source image. When you set
base_image_type
toIMAGE
, setbase_image
to the ID of a custom image. When you setbase_image_type
toIMAGE_FAMILY
, setbase_image
to the name of an image family. - Base
Image stringType - The type of the source image. Valid values:
IMAGE
,IMAGE_FAMILY
.- IMAGE: custom image.
- IMAGE_FAMILY: image family.
- Build
Content string - 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 boolOn Failure - 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
to256
characters in length and cannot start withhttp://
orhttps://
. Note: If the intermediate instance cannot be started, the instance is released by default. - Image
Name string - The name prefix of the image to be created. The prefix must be
2
to64
characters in length. It must start with a letter and cannot start withhttp://
orhttps://
. It can contain letters, digits, colons (:), underscores (_), periods (.),and hyphens (-). - Instance
Type 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 availableecs.g6.large
resources are insufficient, theecs.g6.xlarge
instance type is selected. - Internet
Max intBandwidth Out - The size of the outbound public bandwidth for the intermediate instance. Unit:
Mbit/s
. Valid values:0
to100
. Default value:0
. - Name string
- The name of the image template. The name must be
2
to128
characters in length. It must start with a letter and cannot start withhttp://
orhttps://
. It can contain letters, digits, colons (:), underscores (_), periods (.),and hyphens (-). - Resource
Group stringId - The ID of the resource group.
- System
Disk intSize - The size of the system disk of the intermediate instance. Unit: GiB. Valid values:
20
to500
. Default value:40
. - Dictionary<string, object>
- A mapping of tags to assign to the resource.
- To
Region List<string>Ids - The ID of region to which to distribute the created image.
- Vswitch
Id 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 []string - The ID of Alibaba Cloud account to which to share the created image.
- Base
Image string - The source image. When you set
base_image_type
toIMAGE
, setbase_image
to the ID of a custom image. When you setbase_image_type
toIMAGE_FAMILY
, setbase_image
to the name of an image family. - Base
Image stringType - The type of the source image. Valid values:
IMAGE
,IMAGE_FAMILY
.- IMAGE: custom image.
- IMAGE_FAMILY: image family.
- Build
Content string - 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 boolOn Failure - 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
to256
characters in length and cannot start withhttp://
orhttps://
. Note: If the intermediate instance cannot be started, the instance is released by default. - Image
Name string - The name prefix of the image to be created. The prefix must be
2
to64
characters in length. It must start with a letter and cannot start withhttp://
orhttps://
. It can contain letters, digits, colons (:), underscores (_), periods (.),and hyphens (-). - Instance
Type 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 availableecs.g6.large
resources are insufficient, theecs.g6.xlarge
instance type is selected. - Internet
Max intBandwidth Out - The size of the outbound public bandwidth for the intermediate instance. Unit:
Mbit/s
. Valid values:0
to100
. Default value:0
. - Name string
- The name of the image template. The name must be
2
to128
characters in length. It must start with a letter and cannot start withhttp://
orhttps://
. It can contain letters, digits, colons (:), underscores (_), periods (.),and hyphens (-). - Resource
Group stringId - The ID of the resource group.
- System
Disk intSize - The size of the system disk of the intermediate instance. Unit: GiB. Valid values:
20
to500
. Default value:40
. - map[string]interface{}
- A mapping of tags to assign to the resource.
- To
Region []stringIds - The ID of region to which to distribute the created image.
- Vswitch
Id 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 List<String> - The ID of Alibaba Cloud account to which to share the created image.
- base
Image String - The source image. When you set
base_image_type
toIMAGE
, setbase_image
to the ID of a custom image. When you setbase_image_type
toIMAGE_FAMILY
, setbase_image
to the name of an image family. - base
Image StringType - The type of the source image. Valid values:
IMAGE
,IMAGE_FAMILY
.- IMAGE: custom image.
- IMAGE_FAMILY: image family.
- build
Content String - 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 BooleanOn Failure - 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
to256
characters in length and cannot start withhttp://
orhttps://
. Note: If the intermediate instance cannot be started, the instance is released by default. - image
Name String - The name prefix of the image to be created. The prefix must be
2
to64
characters in length. It must start with a letter and cannot start withhttp://
orhttps://
. It can contain letters, digits, colons (:), underscores (_), periods (.),and hyphens (-). - instance
Type 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 availableecs.g6.large
resources are insufficient, theecs.g6.xlarge
instance type is selected. - internet
Max IntegerBandwidth Out - The size of the outbound public bandwidth for the intermediate instance. Unit:
Mbit/s
. Valid values:0
to100
. Default value:0
. - name String
- The name of the image template. The name must be
2
to128
characters in length. It must start with a letter and cannot start withhttp://
orhttps://
. It can contain letters, digits, colons (:), underscores (_), periods (.),and hyphens (-). - resource
Group StringId - The ID of the resource group.
- system
Disk IntegerSize - The size of the system disk of the intermediate instance. Unit: GiB. Valid values:
20
to500
. Default value:40
. - Map<String,Object>
- A mapping of tags to assign to the resource.
- to
Region List<String>Ids - The ID of region to which to distribute the created image.
- vswitch
Id 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 string[] - The ID of Alibaba Cloud account to which to share the created image.
- base
Image string - The source image. When you set
base_image_type
toIMAGE
, setbase_image
to the ID of a custom image. When you setbase_image_type
toIMAGE_FAMILY
, setbase_image
to the name of an image family. - base
Image stringType - The type of the source image. Valid values:
IMAGE
,IMAGE_FAMILY
.- IMAGE: custom image.
- IMAGE_FAMILY: image family.
- build
Content string - 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 booleanOn Failure - 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
to256
characters in length and cannot start withhttp://
orhttps://
. Note: If the intermediate instance cannot be started, the instance is released by default. - image
Name string - The name prefix of the image to be created. The prefix must be
2
to64
characters in length. It must start with a letter and cannot start withhttp://
orhttps://
. It can contain letters, digits, colons (:), underscores (_), periods (.),and hyphens (-). - instance
Type 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 availableecs.g6.large
resources are insufficient, theecs.g6.xlarge
instance type is selected. - internet
Max numberBandwidth Out - The size of the outbound public bandwidth for the intermediate instance. Unit:
Mbit/s
. Valid values:0
to100
. Default value:0
. - name string
- The name of the image template. The name must be
2
to128
characters in length. It must start with a letter and cannot start withhttp://
orhttps://
. It can contain letters, digits, colons (:), underscores (_), periods (.),and hyphens (-). - resource
Group stringId - The ID of the resource group.
- system
Disk numberSize - The size of the system disk of the intermediate instance. Unit: GiB. Valid values:
20
to500
. Default value:40
. - {[key: string]: any}
- A mapping of tags to assign to the resource.
- to
Region string[]Ids - The ID of region to which to distribute the created image.
- vswitch
Id 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
toIMAGE
, setbase_image
to the ID of a custom image. When you setbase_image_type
toIMAGE_FAMILY
, setbase_image
to the name of an image family. - base_
image_ strtype - 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_ boolon_ failure - 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
to256
characters in length and cannot start withhttp://
orhttps://
. 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
to64
characters in length. It must start with a letter and cannot start withhttp://
orhttps://
. 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 availableecs.g6.large
resources are insufficient, theecs.g6.xlarge
instance type is selected. - internet_
max_ intbandwidth_ out - The size of the outbound public bandwidth for the intermediate instance. Unit:
Mbit/s
. Valid values:0
to100
. Default value:0
. - name str
- The name of the image template. The name must be
2
to128
characters in length. It must start with a letter and cannot start withhttp://
orhttps://
. It can contain letters, digits, colons (:), underscores (_), periods (.),and hyphens (-). - resource_
group_ strid - The ID of the resource group.
- system_
disk_ intsize - The size of the system disk of the intermediate instance. Unit: GiB. Valid values:
20
to500
. Default value:40
. - Mapping[str, Any]
- A mapping of tags to assign to the resource.
- to_
region_ Sequence[str]ids - 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.
- add
Accounts List<String> - The ID of Alibaba Cloud account to which to share the created image.
- base
Image String - The source image. When you set
base_image_type
toIMAGE
, setbase_image
to the ID of a custom image. When you setbase_image_type
toIMAGE_FAMILY
, setbase_image
to the name of an image family. - base
Image StringType - The type of the source image. Valid values:
IMAGE
,IMAGE_FAMILY
.- IMAGE: custom image.
- IMAGE_FAMILY: image family.
- build
Content String - 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 BooleanOn Failure - 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
to256
characters in length and cannot start withhttp://
orhttps://
. Note: If the intermediate instance cannot be started, the instance is released by default. - image
Name String - The name prefix of the image to be created. The prefix must be
2
to64
characters in length. It must start with a letter and cannot start withhttp://
orhttps://
. It can contain letters, digits, colons (:), underscores (_), periods (.),and hyphens (-). - instance
Type 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 availableecs.g6.large
resources are insufficient, theecs.g6.xlarge
instance type is selected. - internet
Max NumberBandwidth Out - The size of the outbound public bandwidth for the intermediate instance. Unit:
Mbit/s
. Valid values:0
to100
. Default value:0
. - name String
- The name of the image template. The name must be
2
to128
characters in length. It must start with a letter and cannot start withhttp://
orhttps://
. It can contain letters, digits, colons (:), underscores (_), periods (.),and hyphens (-). - resource
Group StringId - The ID of the resource group.
- system
Disk NumberSize - The size of the system disk of the intermediate instance. Unit: GiB. Valid values:
20
to500
. Default value:40
. - Map<Any>
- A mapping of tags to assign to the resource.
- to
Region List<String>Ids - The ID of region to which to distribute the created image.
- vswitch
Id 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.