1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. ecs
  5. getEcsLaunchTemplates
Alibaba Cloud v3.82.0 published on Tuesday, Jul 8, 2025 by Pulumi

alicloud.ecs.getEcsLaunchTemplates

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.82.0 published on Tuesday, Jul 8, 2025 by Pulumi

    This data source provides the Ecs Launch Templates of the current Alibaba Cloud user.

    NOTE: Available since v1.120.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const _default = alicloud.getZones({
        availableDiskCategory: "cloud_efficiency",
        availableResourceCreation: "VSwitch",
    });
    const defaultGetInstanceTypes = _default.then(_default => alicloud.ecs.getInstanceTypes({
        availabilityZone: _default.zones?.[0]?.id,
    }));
    const defaultGetImages = alicloud.ecs.getImages({
        nameRegex: "^ubuntu_18.*64",
        owners: "system",
    });
    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: _default.then(_default => _default.zones?.[0]?.id),
    });
    const defaultSecurityGroup = new alicloud.ecs.SecurityGroup("default", {
        name: "terraform-example",
        vpcId: defaultNetwork.id,
    });
    const defaultEcsLaunchTemplate = new alicloud.ecs.EcsLaunchTemplate("default", {
        launchTemplateName: "terraform-example",
        description: "terraform-example",
        imageId: defaultGetImages.then(defaultGetImages => defaultGetImages.images?.[0]?.id),
        hostName: "terraform-example",
        instanceChargeType: "PrePaid",
        instanceName: "terraform-example",
        instanceType: defaultGetInstanceTypes.then(defaultGetInstanceTypes => defaultGetInstanceTypes.instanceTypes?.[0]?.id),
        internetChargeType: "PayByBandwidth",
        internetMaxBandwidthIn: 5,
        internetMaxBandwidthOut: 5,
        ioOptimized: "optimized",
        keyPairName: "key_pair_name",
        ramRoleName: "ram_role_name",
        networkType: "vpc",
        securityEnhancementStrategy: "Active",
        spotPriceLimit: 5,
        spotStrategy: "SpotWithPriceLimit",
        securityGroupIds: [defaultSecurityGroup.id],
        systemDisk: {
            category: "cloud_ssd",
            description: "Test For Terraform",
            name: "terraform-example",
            size: 40,
            deleteWithInstance: false,
        },
        userData: "xxxxxxx",
        vswitchId: defaultSwitch.id,
        vpcId: defaultNetwork.id,
        zoneId: _default.then(_default => _default.zones?.[0]?.id),
        templateTags: {
            Create: "Terraform",
            For: "example",
        },
        networkInterfaces: {
            name: "eth0",
            description: "hello1",
            primaryIp: "10.0.0.2",
            securityGroupId: defaultSecurityGroup.id,
            vswitchId: defaultSwitch.id,
        },
        dataDisks: [
            {
                name: "disk1",
                description: "description",
                deleteWithInstance: true,
                category: "cloud",
                encrypted: false,
                performanceLevel: "PL0",
                size: 20,
            },
            {
                name: "disk2",
                description: "description2",
                deleteWithInstance: true,
                category: "cloud",
                encrypted: false,
                performanceLevel: "PL0",
                size: 20,
            },
        ],
    });
    const ids = alicloud.ecs.getEcsLaunchTemplatesOutput({
        ids: [defaultEcsLaunchTemplate.id],
    });
    export const ecsLaunchTemplateId0 = ids.apply(ids => ids.templates?.[0]?.id);
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    default = alicloud.get_zones(available_disk_category="cloud_efficiency",
        available_resource_creation="VSwitch")
    default_get_instance_types = alicloud.ecs.get_instance_types(availability_zone=default.zones[0].id)
    default_get_images = alicloud.ecs.get_images(name_regex="^ubuntu_18.*64",
        owners="system")
    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.zones[0].id)
    default_security_group = alicloud.ecs.SecurityGroup("default",
        name="terraform-example",
        vpc_id=default_network.id)
    default_ecs_launch_template = alicloud.ecs.EcsLaunchTemplate("default",
        launch_template_name="terraform-example",
        description="terraform-example",
        image_id=default_get_images.images[0].id,
        host_name="terraform-example",
        instance_charge_type="PrePaid",
        instance_name="terraform-example",
        instance_type=default_get_instance_types.instance_types[0].id,
        internet_charge_type="PayByBandwidth",
        internet_max_bandwidth_in=5,
        internet_max_bandwidth_out=5,
        io_optimized="optimized",
        key_pair_name="key_pair_name",
        ram_role_name="ram_role_name",
        network_type="vpc",
        security_enhancement_strategy="Active",
        spot_price_limit=5,
        spot_strategy="SpotWithPriceLimit",
        security_group_ids=[default_security_group.id],
        system_disk={
            "category": "cloud_ssd",
            "description": "Test For Terraform",
            "name": "terraform-example",
            "size": 40,
            "delete_with_instance": False,
        },
        user_data="xxxxxxx",
        vswitch_id=default_switch.id,
        vpc_id=default_network.id,
        zone_id=default.zones[0].id,
        template_tags={
            "Create": "Terraform",
            "For": "example",
        },
        network_interfaces={
            "name": "eth0",
            "description": "hello1",
            "primary_ip": "10.0.0.2",
            "security_group_id": default_security_group.id,
            "vswitch_id": default_switch.id,
        },
        data_disks=[
            {
                "name": "disk1",
                "description": "description",
                "delete_with_instance": True,
                "category": "cloud",
                "encrypted": False,
                "performance_level": "PL0",
                "size": 20,
            },
            {
                "name": "disk2",
                "description": "description2",
                "delete_with_instance": True,
                "category": "cloud",
                "encrypted": False,
                "performance_level": "PL0",
                "size": 20,
            },
        ])
    ids = alicloud.ecs.get_ecs_launch_templates_output(ids=[default_ecs_launch_template.id])
    pulumi.export("ecsLaunchTemplateId0", ids.templates[0].id)
    
    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/vpc"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_default, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
    			AvailableDiskCategory:     pulumi.StringRef("cloud_efficiency"),
    			AvailableResourceCreation: pulumi.StringRef("VSwitch"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		defaultGetInstanceTypes, err := ecs.GetInstanceTypes(ctx, &ecs.GetInstanceTypesArgs{
    			AvailabilityZone: pulumi.StringRef(_default.Zones[0].Id),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		defaultGetImages, err := ecs.GetImages(ctx, &ecs.GetImagesArgs{
    			NameRegex: pulumi.StringRef("^ubuntu_18.*64"),
    			Owners:    pulumi.StringRef("system"),
    		}, 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(_default.Zones[0].Id),
    		})
    		if err != nil {
    			return err
    		}
    		defaultSecurityGroup, err := ecs.NewSecurityGroup(ctx, "default", &ecs.SecurityGroupArgs{
    			Name:  pulumi.String("terraform-example"),
    			VpcId: defaultNetwork.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		defaultEcsLaunchTemplate, err := ecs.NewEcsLaunchTemplate(ctx, "default", &ecs.EcsLaunchTemplateArgs{
    			LaunchTemplateName:          pulumi.String("terraform-example"),
    			Description:                 pulumi.String("terraform-example"),
    			ImageId:                     pulumi.String(defaultGetImages.Images[0].Id),
    			HostName:                    pulumi.String("terraform-example"),
    			InstanceChargeType:          pulumi.String("PrePaid"),
    			InstanceName:                pulumi.String("terraform-example"),
    			InstanceType:                pulumi.String(defaultGetInstanceTypes.InstanceTypes[0].Id),
    			InternetChargeType:          pulumi.String("PayByBandwidth"),
    			InternetMaxBandwidthIn:      pulumi.Int(5),
    			InternetMaxBandwidthOut:     pulumi.Int(5),
    			IoOptimized:                 pulumi.String("optimized"),
    			KeyPairName:                 pulumi.String("key_pair_name"),
    			RamRoleName:                 pulumi.String("ram_role_name"),
    			NetworkType:                 pulumi.String("vpc"),
    			SecurityEnhancementStrategy: pulumi.String("Active"),
    			SpotPriceLimit:              pulumi.Float64(5),
    			SpotStrategy:                pulumi.String("SpotWithPriceLimit"),
    			SecurityGroupIds: pulumi.StringArray{
    				defaultSecurityGroup.ID(),
    			},
    			SystemDisk: &ecs.EcsLaunchTemplateSystemDiskArgs{
    				Category:           pulumi.String("cloud_ssd"),
    				Description:        pulumi.String("Test For Terraform"),
    				Name:               pulumi.String("terraform-example"),
    				Size:               pulumi.Int(40),
    				DeleteWithInstance: pulumi.Bool(false),
    			},
    			UserData:  pulumi.String("xxxxxxx"),
    			VswitchId: defaultSwitch.ID(),
    			VpcId:     defaultNetwork.ID(),
    			ZoneId:    pulumi.String(_default.Zones[0].Id),
    			TemplateTags: pulumi.StringMap{
    				"Create": pulumi.String("Terraform"),
    				"For":    pulumi.String("example"),
    			},
    			NetworkInterfaces: &ecs.EcsLaunchTemplateNetworkInterfacesArgs{
    				Name:            pulumi.String("eth0"),
    				Description:     pulumi.String("hello1"),
    				PrimaryIp:       pulumi.String("10.0.0.2"),
    				SecurityGroupId: defaultSecurityGroup.ID(),
    				VswitchId:       defaultSwitch.ID(),
    			},
    			DataDisks: ecs.EcsLaunchTemplateDataDiskArray{
    				&ecs.EcsLaunchTemplateDataDiskArgs{
    					Name:               pulumi.String("disk1"),
    					Description:        pulumi.String("description"),
    					DeleteWithInstance: pulumi.Bool(true),
    					Category:           pulumi.String("cloud"),
    					Encrypted:          pulumi.Bool(false),
    					PerformanceLevel:   pulumi.String("PL0"),
    					Size:               pulumi.Int(20),
    				},
    				&ecs.EcsLaunchTemplateDataDiskArgs{
    					Name:               pulumi.String("disk2"),
    					Description:        pulumi.String("description2"),
    					DeleteWithInstance: pulumi.Bool(true),
    					Category:           pulumi.String("cloud"),
    					Encrypted:          pulumi.Bool(false),
    					PerformanceLevel:   pulumi.String("PL0"),
    					Size:               pulumi.Int(20),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		ids := ecs.GetEcsLaunchTemplatesOutput(ctx, ecs.GetEcsLaunchTemplatesOutputArgs{
    			Ids: pulumi.StringArray{
    				defaultEcsLaunchTemplate.ID(),
    			},
    		}, nil)
    		ctx.Export("ecsLaunchTemplateId0", ids.ApplyT(func(ids ecs.GetEcsLaunchTemplatesResult) (*string, error) {
    			return &ids.Templates[0].Id, nil
    		}).(pulumi.StringPtrOutput))
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = AliCloud.GetZones.Invoke(new()
        {
            AvailableDiskCategory = "cloud_efficiency",
            AvailableResourceCreation = "VSwitch",
        });
    
        var defaultGetInstanceTypes = AliCloud.Ecs.GetInstanceTypes.Invoke(new()
        {
            AvailabilityZone = @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
        });
    
        var defaultGetImages = AliCloud.Ecs.GetImages.Invoke(new()
        {
            NameRegex = "^ubuntu_18.*64",
            Owners = "system",
        });
    
        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 = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)),
        });
    
        var defaultSecurityGroup = new AliCloud.Ecs.SecurityGroup("default", new()
        {
            Name = "terraform-example",
            VpcId = defaultNetwork.Id,
        });
    
        var defaultEcsLaunchTemplate = new AliCloud.Ecs.EcsLaunchTemplate("default", new()
        {
            LaunchTemplateName = "terraform-example",
            Description = "terraform-example",
            ImageId = defaultGetImages.Apply(getImagesResult => getImagesResult.Images[0]?.Id),
            HostName = "terraform-example",
            InstanceChargeType = "PrePaid",
            InstanceName = "terraform-example",
            InstanceType = defaultGetInstanceTypes.Apply(getInstanceTypesResult => getInstanceTypesResult.InstanceTypes[0]?.Id),
            InternetChargeType = "PayByBandwidth",
            InternetMaxBandwidthIn = 5,
            InternetMaxBandwidthOut = 5,
            IoOptimized = "optimized",
            KeyPairName = "key_pair_name",
            RamRoleName = "ram_role_name",
            NetworkType = "vpc",
            SecurityEnhancementStrategy = "Active",
            SpotPriceLimit = 5,
            SpotStrategy = "SpotWithPriceLimit",
            SecurityGroupIds = new[]
            {
                defaultSecurityGroup.Id,
            },
            SystemDisk = new AliCloud.Ecs.Inputs.EcsLaunchTemplateSystemDiskArgs
            {
                Category = "cloud_ssd",
                Description = "Test For Terraform",
                Name = "terraform-example",
                Size = 40,
                DeleteWithInstance = false,
            },
            UserData = "xxxxxxx",
            VswitchId = defaultSwitch.Id,
            VpcId = defaultNetwork.Id,
            ZoneId = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)),
            TemplateTags = 
            {
                { "Create", "Terraform" },
                { "For", "example" },
            },
            NetworkInterfaces = new AliCloud.Ecs.Inputs.EcsLaunchTemplateNetworkInterfacesArgs
            {
                Name = "eth0",
                Description = "hello1",
                PrimaryIp = "10.0.0.2",
                SecurityGroupId = defaultSecurityGroup.Id,
                VswitchId = defaultSwitch.Id,
            },
            DataDisks = new[]
            {
                new AliCloud.Ecs.Inputs.EcsLaunchTemplateDataDiskArgs
                {
                    Name = "disk1",
                    Description = "description",
                    DeleteWithInstance = true,
                    Category = "cloud",
                    Encrypted = false,
                    PerformanceLevel = "PL0",
                    Size = 20,
                },
                new AliCloud.Ecs.Inputs.EcsLaunchTemplateDataDiskArgs
                {
                    Name = "disk2",
                    Description = "description2",
                    DeleteWithInstance = true,
                    Category = "cloud",
                    Encrypted = false,
                    PerformanceLevel = "PL0",
                    Size = 20,
                },
            },
        });
    
        var ids = AliCloud.Ecs.GetEcsLaunchTemplates.Invoke(new()
        {
            Ids = new[]
            {
                defaultEcsLaunchTemplate.Id,
            },
        });
    
        return new Dictionary<string, object?>
        {
            ["ecsLaunchTemplateId0"] = ids.Apply(getEcsLaunchTemplatesResult => getEcsLaunchTemplatesResult.Templates[0]?.Id),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.AlicloudFunctions;
    import com.pulumi.alicloud.inputs.GetZonesArgs;
    import com.pulumi.alicloud.ecs.EcsFunctions;
    import com.pulumi.alicloud.ecs.inputs.GetInstanceTypesArgs;
    import com.pulumi.alicloud.ecs.inputs.GetImagesArgs;
    import com.pulumi.alicloud.vpc.Network;
    import com.pulumi.alicloud.vpc.NetworkArgs;
    import com.pulumi.alicloud.vpc.Switch;
    import com.pulumi.alicloud.vpc.SwitchArgs;
    import com.pulumi.alicloud.ecs.SecurityGroup;
    import com.pulumi.alicloud.ecs.SecurityGroupArgs;
    import com.pulumi.alicloud.ecs.EcsLaunchTemplate;
    import com.pulumi.alicloud.ecs.EcsLaunchTemplateArgs;
    import com.pulumi.alicloud.ecs.inputs.EcsLaunchTemplateSystemDiskArgs;
    import com.pulumi.alicloud.ecs.inputs.EcsLaunchTemplateNetworkInterfacesArgs;
    import com.pulumi.alicloud.ecs.inputs.EcsLaunchTemplateDataDiskArgs;
    import com.pulumi.alicloud.ecs.inputs.GetEcsLaunchTemplatesArgs;
    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 = AlicloudFunctions.getZones(GetZonesArgs.builder()
                .availableDiskCategory("cloud_efficiency")
                .availableResourceCreation("VSwitch")
                .build());
    
            final var defaultGetInstanceTypes = EcsFunctions.getInstanceTypes(GetInstanceTypesArgs.builder()
                .availabilityZone(default_.zones()[0].id())
                .build());
    
            final var defaultGetImages = EcsFunctions.getImages(GetImagesArgs.builder()
                .nameRegex("^ubuntu_18.*64")
                .owners("system")
                .build());
    
            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(default_.zones()[0].id())
                .build());
    
            var defaultSecurityGroup = new SecurityGroup("defaultSecurityGroup", SecurityGroupArgs.builder()
                .name("terraform-example")
                .vpcId(defaultNetwork.id())
                .build());
    
            var defaultEcsLaunchTemplate = new EcsLaunchTemplate("defaultEcsLaunchTemplate", EcsLaunchTemplateArgs.builder()
                .launchTemplateName("terraform-example")
                .description("terraform-example")
                .imageId(defaultGetImages.images()[0].id())
                .hostName("terraform-example")
                .instanceChargeType("PrePaid")
                .instanceName("terraform-example")
                .instanceType(defaultGetInstanceTypes.instanceTypes()[0].id())
                .internetChargeType("PayByBandwidth")
                .internetMaxBandwidthIn(5)
                .internetMaxBandwidthOut(5)
                .ioOptimized("optimized")
                .keyPairName("key_pair_name")
                .ramRoleName("ram_role_name")
                .networkType("vpc")
                .securityEnhancementStrategy("Active")
                .spotPriceLimit(5.0)
                .spotStrategy("SpotWithPriceLimit")
                .securityGroupIds(defaultSecurityGroup.id())
                .systemDisk(EcsLaunchTemplateSystemDiskArgs.builder()
                    .category("cloud_ssd")
                    .description("Test For Terraform")
                    .name("terraform-example")
                    .size(40)
                    .deleteWithInstance(false)
                    .build())
                .userData("xxxxxxx")
                .vswitchId(defaultSwitch.id())
                .vpcId(defaultNetwork.id())
                .zoneId(default_.zones()[0].id())
                .templateTags(Map.ofEntries(
                    Map.entry("Create", "Terraform"),
                    Map.entry("For", "example")
                ))
                .networkInterfaces(EcsLaunchTemplateNetworkInterfacesArgs.builder()
                    .name("eth0")
                    .description("hello1")
                    .primaryIp("10.0.0.2")
                    .securityGroupId(defaultSecurityGroup.id())
                    .vswitchId(defaultSwitch.id())
                    .build())
                .dataDisks(            
                    EcsLaunchTemplateDataDiskArgs.builder()
                        .name("disk1")
                        .description("description")
                        .deleteWithInstance(true)
                        .category("cloud")
                        .encrypted(false)
                        .performanceLevel("PL0")
                        .size(20)
                        .build(),
                    EcsLaunchTemplateDataDiskArgs.builder()
                        .name("disk2")
                        .description("description2")
                        .deleteWithInstance(true)
                        .category("cloud")
                        .encrypted(false)
                        .performanceLevel("PL0")
                        .size(20)
                        .build())
                .build());
    
            final var ids = EcsFunctions.getEcsLaunchTemplates(GetEcsLaunchTemplatesArgs.builder()
                .ids(defaultEcsLaunchTemplate.id())
                .build());
    
            ctx.export("ecsLaunchTemplateId0", ids.applyValue(_ids -> _ids.templates()[0].id()));
        }
    }
    
    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: ${default.zones[0].id}
      defaultSecurityGroup:
        type: alicloud:ecs:SecurityGroup
        name: default
        properties:
          name: terraform-example
          vpcId: ${defaultNetwork.id}
      defaultEcsLaunchTemplate:
        type: alicloud:ecs:EcsLaunchTemplate
        name: default
        properties:
          launchTemplateName: terraform-example
          description: terraform-example
          imageId: ${defaultGetImages.images[0].id}
          hostName: terraform-example
          instanceChargeType: PrePaid
          instanceName: terraform-example
          instanceType: ${defaultGetInstanceTypes.instanceTypes[0].id}
          internetChargeType: PayByBandwidth
          internetMaxBandwidthIn: '5'
          internetMaxBandwidthOut: '5'
          ioOptimized: optimized
          keyPairName: key_pair_name
          ramRoleName: ram_role_name
          networkType: vpc
          securityEnhancementStrategy: Active
          spotPriceLimit: '5'
          spotStrategy: SpotWithPriceLimit
          securityGroupIds:
            - ${defaultSecurityGroup.id}
          systemDisk:
            category: cloud_ssd
            description: Test For Terraform
            name: terraform-example
            size: '40'
            deleteWithInstance: 'false'
          userData: xxxxxxx
          vswitchId: ${defaultSwitch.id}
          vpcId: ${defaultNetwork.id}
          zoneId: ${default.zones[0].id}
          templateTags:
            Create: Terraform
            For: example
          networkInterfaces:
            name: eth0
            description: hello1
            primaryIp: 10.0.0.2
            securityGroupId: ${defaultSecurityGroup.id}
            vswitchId: ${defaultSwitch.id}
          dataDisks:
            - name: disk1
              description: description
              deleteWithInstance: 'true'
              category: cloud
              encrypted: 'false'
              performanceLevel: PL0
              size: '20'
            - name: disk2
              description: description2
              deleteWithInstance: 'true'
              category: cloud
              encrypted: 'false'
              performanceLevel: PL0
              size: '20'
    variables:
      default:
        fn::invoke:
          function: alicloud:getZones
          arguments:
            availableDiskCategory: cloud_efficiency
            availableResourceCreation: VSwitch
      defaultGetInstanceTypes:
        fn::invoke:
          function: alicloud:ecs:getInstanceTypes
          arguments:
            availabilityZone: ${default.zones[0].id}
      defaultGetImages:
        fn::invoke:
          function: alicloud:ecs:getImages
          arguments:
            nameRegex: ^ubuntu_18.*64
            owners: system
      ids:
        fn::invoke:
          function: alicloud:ecs:getEcsLaunchTemplates
          arguments:
            ids:
              - ${defaultEcsLaunchTemplate.id}
    outputs:
      ecsLaunchTemplateId0: ${ids.templates[0].id}
    

    Using getEcsLaunchTemplates

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getEcsLaunchTemplates(args: GetEcsLaunchTemplatesArgs, opts?: InvokeOptions): Promise<GetEcsLaunchTemplatesResult>
    function getEcsLaunchTemplatesOutput(args: GetEcsLaunchTemplatesOutputArgs, opts?: InvokeOptions): Output<GetEcsLaunchTemplatesResult>
    def get_ecs_launch_templates(enable_details: Optional[bool] = None,
                                 ids: Optional[Sequence[str]] = None,
                                 launch_template_name: Optional[str] = None,
                                 name_regex: Optional[str] = None,
                                 output_file: Optional[str] = None,
                                 template_resource_group_id: Optional[str] = None,
                                 template_tags: Optional[Mapping[str, str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetEcsLaunchTemplatesResult
    def get_ecs_launch_templates_output(enable_details: Optional[pulumi.Input[bool]] = None,
                                 ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                 launch_template_name: Optional[pulumi.Input[str]] = None,
                                 name_regex: Optional[pulumi.Input[str]] = None,
                                 output_file: Optional[pulumi.Input[str]] = None,
                                 template_resource_group_id: Optional[pulumi.Input[str]] = None,
                                 template_tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetEcsLaunchTemplatesResult]
    func GetEcsLaunchTemplates(ctx *Context, args *GetEcsLaunchTemplatesArgs, opts ...InvokeOption) (*GetEcsLaunchTemplatesResult, error)
    func GetEcsLaunchTemplatesOutput(ctx *Context, args *GetEcsLaunchTemplatesOutputArgs, opts ...InvokeOption) GetEcsLaunchTemplatesResultOutput

    > Note: This function is named GetEcsLaunchTemplates in the Go SDK.

    public static class GetEcsLaunchTemplates 
    {
        public static Task<GetEcsLaunchTemplatesResult> InvokeAsync(GetEcsLaunchTemplatesArgs args, InvokeOptions? opts = null)
        public static Output<GetEcsLaunchTemplatesResult> Invoke(GetEcsLaunchTemplatesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetEcsLaunchTemplatesResult> getEcsLaunchTemplates(GetEcsLaunchTemplatesArgs args, InvokeOptions options)
    public static Output<GetEcsLaunchTemplatesResult> getEcsLaunchTemplates(GetEcsLaunchTemplatesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: alicloud:ecs/getEcsLaunchTemplates:getEcsLaunchTemplates
      arguments:
        # arguments dictionary

    The following arguments are supported:

    EnableDetails bool
    Whether to query the detailed list of resource attributes. Default value: false.
    Ids List<string>
    A list of Launch Template IDs.
    LaunchTemplateName string
    The name of the launch template.
    NameRegex string
    A regex string to filter results by Launch Template name.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    TemplateResourceGroupId string
    The ID of the Resource Group.
    TemplateTags Dictionary<string, string>
    The tags of the launch template.
    EnableDetails bool
    Whether to query the detailed list of resource attributes. Default value: false.
    Ids []string
    A list of Launch Template IDs.
    LaunchTemplateName string
    The name of the launch template.
    NameRegex string
    A regex string to filter results by Launch Template name.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    TemplateResourceGroupId string
    The ID of the Resource Group.
    TemplateTags map[string]string
    The tags of the launch template.
    enableDetails Boolean
    Whether to query the detailed list of resource attributes. Default value: false.
    ids List<String>
    A list of Launch Template IDs.
    launchTemplateName String
    The name of the launch template.
    nameRegex String
    A regex string to filter results by Launch Template name.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    templateResourceGroupId String
    The ID of the Resource Group.
    templateTags Map<String,String>
    The tags of the launch template.
    enableDetails boolean
    Whether to query the detailed list of resource attributes. Default value: false.
    ids string[]
    A list of Launch Template IDs.
    launchTemplateName string
    The name of the launch template.
    nameRegex string
    A regex string to filter results by Launch Template name.
    outputFile string
    File name where to save data source results (after running pulumi preview).
    templateResourceGroupId string
    The ID of the Resource Group.
    templateTags {[key: string]: string}
    The tags of the launch template.
    enable_details bool
    Whether to query the detailed list of resource attributes. Default value: false.
    ids Sequence[str]
    A list of Launch Template IDs.
    launch_template_name str
    The name of the launch template.
    name_regex str
    A regex string to filter results by Launch Template name.
    output_file str
    File name where to save data source results (after running pulumi preview).
    template_resource_group_id str
    The ID of the Resource Group.
    template_tags Mapping[str, str]
    The tags of the launch template.
    enableDetails Boolean
    Whether to query the detailed list of resource attributes. Default value: false.
    ids List<String>
    A list of Launch Template IDs.
    launchTemplateName String
    The name of the launch template.
    nameRegex String
    A regex string to filter results by Launch Template name.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    templateResourceGroupId String
    The ID of the Resource Group.
    templateTags Map<String>
    The tags of the launch template.

    getEcsLaunchTemplates Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Ids List<string>
    Names List<string>
    A list of Launch Template names.
    Templates List<Pulumi.AliCloud.Ecs.Outputs.GetEcsLaunchTemplatesTemplate>
    A list of Ecs Launch Templates. Each element contains the following attributes:
    EnableDetails bool
    LaunchTemplateName string
    The name of the Launch Template.
    NameRegex string
    OutputFile string
    TemplateResourceGroupId string
    TemplateTags Dictionary<string, string>

    The tags of the launch template.

    NOTE: Except for the fields id, launch_template_id, launch_template_name, default_version_number, latest_version_number, created_by, modified_time, resource_group_id, template_tags, all other fields take effect only if enable_details is set to true.

    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    Names []string
    A list of Launch Template names.
    Templates []GetEcsLaunchTemplatesTemplate
    A list of Ecs Launch Templates. Each element contains the following attributes:
    EnableDetails bool
    LaunchTemplateName string
    The name of the Launch Template.
    NameRegex string
    OutputFile string
    TemplateResourceGroupId string
    TemplateTags map[string]string

    The tags of the launch template.

    NOTE: Except for the fields id, launch_template_id, launch_template_name, default_version_number, latest_version_number, created_by, modified_time, resource_group_id, template_tags, all other fields take effect only if enable_details is set to true.

    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    names List<String>
    A list of Launch Template names.
    templates List<GetEcsLaunchTemplatesTemplate>
    A list of Ecs Launch Templates. Each element contains the following attributes:
    enableDetails Boolean
    launchTemplateName String
    The name of the Launch Template.
    nameRegex String
    outputFile String
    templateResourceGroupId String
    templateTags Map<String,String>

    The tags of the launch template.

    NOTE: Except for the fields id, launch_template_id, launch_template_name, default_version_number, latest_version_number, created_by, modified_time, resource_group_id, template_tags, all other fields take effect only if enable_details is set to true.

    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    names string[]
    A list of Launch Template names.
    templates GetEcsLaunchTemplatesTemplate[]
    A list of Ecs Launch Templates. Each element contains the following attributes:
    enableDetails boolean
    launchTemplateName string
    The name of the Launch Template.
    nameRegex string
    outputFile string
    templateResourceGroupId string
    templateTags {[key: string]: string}

    The tags of the launch template.

    NOTE: Except for the fields id, launch_template_id, launch_template_name, default_version_number, latest_version_number, created_by, modified_time, resource_group_id, template_tags, all other fields take effect only if enable_details is set to true.

    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    names Sequence[str]
    A list of Launch Template names.
    templates Sequence[GetEcsLaunchTemplatesTemplate]
    A list of Ecs Launch Templates. Each element contains the following attributes:
    enable_details bool
    launch_template_name str
    The name of the Launch Template.
    name_regex str
    output_file str
    template_resource_group_id str
    template_tags Mapping[str, str]

    The tags of the launch template.

    NOTE: Except for the fields id, launch_template_id, launch_template_name, default_version_number, latest_version_number, created_by, modified_time, resource_group_id, template_tags, all other fields take effect only if enable_details is set to true.

    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    names List<String>
    A list of Launch Template names.
    templates List<Property Map>
    A list of Ecs Launch Templates. Each element contains the following attributes:
    enableDetails Boolean
    launchTemplateName String
    The name of the Launch Template.
    nameRegex String
    outputFile String
    templateResourceGroupId String
    templateTags Map<String>

    The tags of the launch template.

    NOTE: Except for the fields id, launch_template_id, launch_template_name, default_version_number, latest_version_number, created_by, modified_time, resource_group_id, template_tags, all other fields take effect only if enable_details is set to true.

    Supporting Types

    GetEcsLaunchTemplatesTemplate

    AutoReleaseTime string
    The automatic release time of the instance.
    CreatedBy string
    The ID of the Alibaba Cloud account that created the launch template.
    DataDisks List<Pulumi.AliCloud.Ecs.Inputs.GetEcsLaunchTemplatesTemplateDataDisk>
    The list of data disks created with instance.
    DefaultVersionNumber int
    The default version number of the launch template.
    DeploymentSetId string
    The ID of the deployment set.
    Description string
    System disk description.
    EnableVmOsConfig bool
    Indicates whether the operating system configuration of the instance is enabled.
    HostName string
    The hostname of the instance.
    HttpEndpoint string
    Whether to enable access to instance metadata.
    HttpPutResponseHopLimit int
    The HTTP PUT response hop limit required for instance metadata requests.
    HttpTokens string
    Whether to use the hardened mode (IMDSv2) when accessing instance metadata.
    Id string
    The ID of the Launch Template.
    ImageId string
    The ID of the image.
    ImageOwnerAlias string
    The source of the image.
    InstanceChargeType string
    The billing method of the instance.
    InstanceName string
    The name of the instance.
    InstanceType string
    The instance type of the instance.
    InternetChargeType string
    The billing method for network usage.
    InternetMaxBandwidthIn int
    The maximum inbound public bandwidth.
    InternetMaxBandwidthOut int
    The maximum outbound public bandwidth.
    IoOptimized string
    Indicates whether the instance is I/O optimized.
    KeyPairName string
    The name of the key pair.
    LatestVersionNumber int
    The latest version number of the launch template.
    LaunchTemplateId string
    The ID of the Launch Template.
    LaunchTemplateName string
    The name of the launch template.
    ModifiedTime string
    The time when a version was added to or deleted from the launch template.
    NetworkInterfaces List<Pulumi.AliCloud.Ecs.Inputs.GetEcsLaunchTemplatesTemplateNetworkInterface>
    The list of network interfaces created with instance.
    NetworkType string
    Network type of the instance.
    PasswordInherit bool
    Whether to use the password preset by the mirror.
    Period int
    The subscription period of the instance.
    PrivateIpAddress string
    The private IP address of the instance.
    RamRoleName string
    The RAM role name of the instance.
    ResourceGroupId string
    The ID of the resource group to which to assign the instance, Elastic Block Storage (EBS) device, and ENI.
    SecurityEnhancementStrategy string
    Whether or not to activate the security enhancement feature and install network security software free of charge.
    SecurityGroupId string
    The security group ID must be one in the same VPC.
    SecurityGroupIds List<string>
    The security group IDs.
    SpotDuration string
    The protection period of the preemptible instance.
    SpotPriceLimit double
    Sets the maximum hourly instance price.
    SpotStrategy string
    The spot strategy for a Pay-As-You-Go instance.
    SystemDisks List<Pulumi.AliCloud.Ecs.Inputs.GetEcsLaunchTemplatesTemplateSystemDisk>
    The System Disk.
    TemplateTags Dictionary<string, string>
    The tags of the launch template.
    UserData string
    The user data of the instance.
    VersionDescription string
    The Version Description.
    VpcId string
    VpcId.
    VswitchId string
    The vSwitch ID for ENI. The instance must be in the same zone of the same VPC network as the ENI, but they may belong to different VSwitches.
    ZoneId string
    The Zone Id.
    AutoReleaseTime string
    The automatic release time of the instance.
    CreatedBy string
    The ID of the Alibaba Cloud account that created the launch template.
    DataDisks []GetEcsLaunchTemplatesTemplateDataDisk
    The list of data disks created with instance.
    DefaultVersionNumber int
    The default version number of the launch template.
    DeploymentSetId string
    The ID of the deployment set.
    Description string
    System disk description.
    EnableVmOsConfig bool
    Indicates whether the operating system configuration of the instance is enabled.
    HostName string
    The hostname of the instance.
    HttpEndpoint string
    Whether to enable access to instance metadata.
    HttpPutResponseHopLimit int
    The HTTP PUT response hop limit required for instance metadata requests.
    HttpTokens string
    Whether to use the hardened mode (IMDSv2) when accessing instance metadata.
    Id string
    The ID of the Launch Template.
    ImageId string
    The ID of the image.
    ImageOwnerAlias string
    The source of the image.
    InstanceChargeType string
    The billing method of the instance.
    InstanceName string
    The name of the instance.
    InstanceType string
    The instance type of the instance.
    InternetChargeType string
    The billing method for network usage.
    InternetMaxBandwidthIn int
    The maximum inbound public bandwidth.
    InternetMaxBandwidthOut int
    The maximum outbound public bandwidth.
    IoOptimized string
    Indicates whether the instance is I/O optimized.
    KeyPairName string
    The name of the key pair.
    LatestVersionNumber int
    The latest version number of the launch template.
    LaunchTemplateId string
    The ID of the Launch Template.
    LaunchTemplateName string
    The name of the launch template.
    ModifiedTime string
    The time when a version was added to or deleted from the launch template.
    NetworkInterfaces []GetEcsLaunchTemplatesTemplateNetworkInterface
    The list of network interfaces created with instance.
    NetworkType string
    Network type of the instance.
    PasswordInherit bool
    Whether to use the password preset by the mirror.
    Period int
    The subscription period of the instance.
    PrivateIpAddress string
    The private IP address of the instance.
    RamRoleName string
    The RAM role name of the instance.
    ResourceGroupId string
    The ID of the resource group to which to assign the instance, Elastic Block Storage (EBS) device, and ENI.
    SecurityEnhancementStrategy string
    Whether or not to activate the security enhancement feature and install network security software free of charge.
    SecurityGroupId string
    The security group ID must be one in the same VPC.
    SecurityGroupIds []string
    The security group IDs.
    SpotDuration string
    The protection period of the preemptible instance.
    SpotPriceLimit float64
    Sets the maximum hourly instance price.
    SpotStrategy string
    The spot strategy for a Pay-As-You-Go instance.
    SystemDisks []GetEcsLaunchTemplatesTemplateSystemDisk
    The System Disk.
    TemplateTags map[string]string
    The tags of the launch template.
    UserData string
    The user data of the instance.
    VersionDescription string
    The Version Description.
    VpcId string
    VpcId.
    VswitchId string
    The vSwitch ID for ENI. The instance must be in the same zone of the same VPC network as the ENI, but they may belong to different VSwitches.
    ZoneId string
    The Zone Id.
    autoReleaseTime String
    The automatic release time of the instance.
    createdBy String
    The ID of the Alibaba Cloud account that created the launch template.
    dataDisks List<GetEcsLaunchTemplatesTemplateDataDisk>
    The list of data disks created with instance.
    defaultVersionNumber Integer
    The default version number of the launch template.
    deploymentSetId String
    The ID of the deployment set.
    description String
    System disk description.
    enableVmOsConfig Boolean
    Indicates whether the operating system configuration of the instance is enabled.
    hostName String
    The hostname of the instance.
    httpEndpoint String
    Whether to enable access to instance metadata.
    httpPutResponseHopLimit Integer
    The HTTP PUT response hop limit required for instance metadata requests.
    httpTokens String
    Whether to use the hardened mode (IMDSv2) when accessing instance metadata.
    id String
    The ID of the Launch Template.
    imageId String
    The ID of the image.
    imageOwnerAlias String
    The source of the image.
    instanceChargeType String
    The billing method of the instance.
    instanceName String
    The name of the instance.
    instanceType String
    The instance type of the instance.
    internetChargeType String
    The billing method for network usage.
    internetMaxBandwidthIn Integer
    The maximum inbound public bandwidth.
    internetMaxBandwidthOut Integer
    The maximum outbound public bandwidth.
    ioOptimized String
    Indicates whether the instance is I/O optimized.
    keyPairName String
    The name of the key pair.
    latestVersionNumber Integer
    The latest version number of the launch template.
    launchTemplateId String
    The ID of the Launch Template.
    launchTemplateName String
    The name of the launch template.
    modifiedTime String
    The time when a version was added to or deleted from the launch template.
    networkInterfaces List<GetEcsLaunchTemplatesTemplateNetworkInterface>
    The list of network interfaces created with instance.
    networkType String
    Network type of the instance.
    passwordInherit Boolean
    Whether to use the password preset by the mirror.
    period Integer
    The subscription period of the instance.
    privateIpAddress String
    The private IP address of the instance.
    ramRoleName String
    The RAM role name of the instance.
    resourceGroupId String
    The ID of the resource group to which to assign the instance, Elastic Block Storage (EBS) device, and ENI.
    securityEnhancementStrategy String
    Whether or not to activate the security enhancement feature and install network security software free of charge.
    securityGroupId String
    The security group ID must be one in the same VPC.
    securityGroupIds List<String>
    The security group IDs.
    spotDuration String
    The protection period of the preemptible instance.
    spotPriceLimit Double
    Sets the maximum hourly instance price.
    spotStrategy String
    The spot strategy for a Pay-As-You-Go instance.
    systemDisks List<GetEcsLaunchTemplatesTemplateSystemDisk>
    The System Disk.
    templateTags Map<String,String>
    The tags of the launch template.
    userData String
    The user data of the instance.
    versionDescription String
    The Version Description.
    vpcId String
    VpcId.
    vswitchId String
    The vSwitch ID for ENI. The instance must be in the same zone of the same VPC network as the ENI, but they may belong to different VSwitches.
    zoneId String
    The Zone Id.
    autoReleaseTime string
    The automatic release time of the instance.
    createdBy string
    The ID of the Alibaba Cloud account that created the launch template.
    dataDisks GetEcsLaunchTemplatesTemplateDataDisk[]
    The list of data disks created with instance.
    defaultVersionNumber number
    The default version number of the launch template.
    deploymentSetId string
    The ID of the deployment set.
    description string
    System disk description.
    enableVmOsConfig boolean
    Indicates whether the operating system configuration of the instance is enabled.
    hostName string
    The hostname of the instance.
    httpEndpoint string
    Whether to enable access to instance metadata.
    httpPutResponseHopLimit number
    The HTTP PUT response hop limit required for instance metadata requests.
    httpTokens string
    Whether to use the hardened mode (IMDSv2) when accessing instance metadata.
    id string
    The ID of the Launch Template.
    imageId string
    The ID of the image.
    imageOwnerAlias string
    The source of the image.
    instanceChargeType string
    The billing method of the instance.
    instanceName string
    The name of the instance.
    instanceType string
    The instance type of the instance.
    internetChargeType string
    The billing method for network usage.
    internetMaxBandwidthIn number
    The maximum inbound public bandwidth.
    internetMaxBandwidthOut number
    The maximum outbound public bandwidth.
    ioOptimized string
    Indicates whether the instance is I/O optimized.
    keyPairName string
    The name of the key pair.
    latestVersionNumber number
    The latest version number of the launch template.
    launchTemplateId string
    The ID of the Launch Template.
    launchTemplateName string
    The name of the launch template.
    modifiedTime string
    The time when a version was added to or deleted from the launch template.
    networkInterfaces GetEcsLaunchTemplatesTemplateNetworkInterface[]
    The list of network interfaces created with instance.
    networkType string
    Network type of the instance.
    passwordInherit boolean
    Whether to use the password preset by the mirror.
    period number
    The subscription period of the instance.
    privateIpAddress string
    The private IP address of the instance.
    ramRoleName string
    The RAM role name of the instance.
    resourceGroupId string
    The ID of the resource group to which to assign the instance, Elastic Block Storage (EBS) device, and ENI.
    securityEnhancementStrategy string
    Whether or not to activate the security enhancement feature and install network security software free of charge.
    securityGroupId string
    The security group ID must be one in the same VPC.
    securityGroupIds string[]
    The security group IDs.
    spotDuration string
    The protection period of the preemptible instance.
    spotPriceLimit number
    Sets the maximum hourly instance price.
    spotStrategy string
    The spot strategy for a Pay-As-You-Go instance.
    systemDisks GetEcsLaunchTemplatesTemplateSystemDisk[]
    The System Disk.
    templateTags {[key: string]: string}
    The tags of the launch template.
    userData string
    The user data of the instance.
    versionDescription string
    The Version Description.
    vpcId string
    VpcId.
    vswitchId string
    The vSwitch ID for ENI. The instance must be in the same zone of the same VPC network as the ENI, but they may belong to different VSwitches.
    zoneId string
    The Zone Id.
    auto_release_time str
    The automatic release time of the instance.
    created_by str
    The ID of the Alibaba Cloud account that created the launch template.
    data_disks Sequence[GetEcsLaunchTemplatesTemplateDataDisk]
    The list of data disks created with instance.
    default_version_number int
    The default version number of the launch template.
    deployment_set_id str
    The ID of the deployment set.
    description str
    System disk description.
    enable_vm_os_config bool
    Indicates whether the operating system configuration of the instance is enabled.
    host_name str
    The hostname of the instance.
    http_endpoint str
    Whether to enable access to instance metadata.
    http_put_response_hop_limit int
    The HTTP PUT response hop limit required for instance metadata requests.
    http_tokens str
    Whether to use the hardened mode (IMDSv2) when accessing instance metadata.
    id str
    The ID of the Launch Template.
    image_id str
    The ID of the image.
    image_owner_alias str
    The source of the image.
    instance_charge_type str
    The billing method of the instance.
    instance_name str
    The name of the instance.
    instance_type str
    The instance type of the instance.
    internet_charge_type str
    The billing method for network usage.
    internet_max_bandwidth_in int
    The maximum inbound public bandwidth.
    internet_max_bandwidth_out int
    The maximum outbound public bandwidth.
    io_optimized str
    Indicates whether the instance is I/O optimized.
    key_pair_name str
    The name of the key pair.
    latest_version_number int
    The latest version number of the launch template.
    launch_template_id str
    The ID of the Launch Template.
    launch_template_name str
    The name of the launch template.
    modified_time str
    The time when a version was added to or deleted from the launch template.
    network_interfaces Sequence[GetEcsLaunchTemplatesTemplateNetworkInterface]
    The list of network interfaces created with instance.
    network_type str
    Network type of the instance.
    password_inherit bool
    Whether to use the password preset by the mirror.
    period int
    The subscription period of the instance.
    private_ip_address str
    The private IP address of the instance.
    ram_role_name str
    The RAM role name of the instance.
    resource_group_id str
    The ID of the resource group to which to assign the instance, Elastic Block Storage (EBS) device, and ENI.
    security_enhancement_strategy str
    Whether or not to activate the security enhancement feature and install network security software free of charge.
    security_group_id str
    The security group ID must be one in the same VPC.
    security_group_ids Sequence[str]
    The security group IDs.
    spot_duration str
    The protection period of the preemptible instance.
    spot_price_limit float
    Sets the maximum hourly instance price.
    spot_strategy str
    The spot strategy for a Pay-As-You-Go instance.
    system_disks Sequence[GetEcsLaunchTemplatesTemplateSystemDisk]
    The System Disk.
    template_tags Mapping[str, str]
    The tags of the launch template.
    user_data str
    The user data of the instance.
    version_description str
    The Version Description.
    vpc_id str
    VpcId.
    vswitch_id str
    The vSwitch ID for ENI. The instance must be in the same zone of the same VPC network as the ENI, but they may belong to different VSwitches.
    zone_id str
    The Zone Id.
    autoReleaseTime String
    The automatic release time of the instance.
    createdBy String
    The ID of the Alibaba Cloud account that created the launch template.
    dataDisks List<Property Map>
    The list of data disks created with instance.
    defaultVersionNumber Number
    The default version number of the launch template.
    deploymentSetId String
    The ID of the deployment set.
    description String
    System disk description.
    enableVmOsConfig Boolean
    Indicates whether the operating system configuration of the instance is enabled.
    hostName String
    The hostname of the instance.
    httpEndpoint String
    Whether to enable access to instance metadata.
    httpPutResponseHopLimit Number
    The HTTP PUT response hop limit required for instance metadata requests.
    httpTokens String
    Whether to use the hardened mode (IMDSv2) when accessing instance metadata.
    id String
    The ID of the Launch Template.
    imageId String
    The ID of the image.
    imageOwnerAlias String
    The source of the image.
    instanceChargeType String
    The billing method of the instance.
    instanceName String
    The name of the instance.
    instanceType String
    The instance type of the instance.
    internetChargeType String
    The billing method for network usage.
    internetMaxBandwidthIn Number
    The maximum inbound public bandwidth.
    internetMaxBandwidthOut Number
    The maximum outbound public bandwidth.
    ioOptimized String
    Indicates whether the instance is I/O optimized.
    keyPairName String
    The name of the key pair.
    latestVersionNumber Number
    The latest version number of the launch template.
    launchTemplateId String
    The ID of the Launch Template.
    launchTemplateName String
    The name of the launch template.
    modifiedTime String
    The time when a version was added to or deleted from the launch template.
    networkInterfaces List<Property Map>
    The list of network interfaces created with instance.
    networkType String
    Network type of the instance.
    passwordInherit Boolean
    Whether to use the password preset by the mirror.
    period Number
    The subscription period of the instance.
    privateIpAddress String
    The private IP address of the instance.
    ramRoleName String
    The RAM role name of the instance.
    resourceGroupId String
    The ID of the resource group to which to assign the instance, Elastic Block Storage (EBS) device, and ENI.
    securityEnhancementStrategy String
    Whether or not to activate the security enhancement feature and install network security software free of charge.
    securityGroupId String
    The security group ID must be one in the same VPC.
    securityGroupIds List<String>
    The security group IDs.
    spotDuration String
    The protection period of the preemptible instance.
    spotPriceLimit Number
    Sets the maximum hourly instance price.
    spotStrategy String
    The spot strategy for a Pay-As-You-Go instance.
    systemDisks List<Property Map>
    The System Disk.
    templateTags Map<String>
    The tags of the launch template.
    userData String
    The user data of the instance.
    versionDescription String
    The Version Description.
    vpcId String
    VpcId.
    vswitchId String
    The vSwitch ID for ENI. The instance must be in the same zone of the same VPC network as the ENI, but they may belong to different VSwitches.
    zoneId String
    The Zone Id.

    GetEcsLaunchTemplatesTemplateDataDisk

    Category string
    The category of the system disk.
    DeleteWithInstance bool
    Specifies whether to release the system disk when the instance is released.
    Description string
    System disk description.
    Encrypted bool
    Encrypted the data in this disk.
    Name string
    System disk name.
    PerformanceLevel string
    The performance level of the ESSD used as the system disk.
    Size int
    Size of the system disk, measured in GB.
    SnapshotId string
    The snapshot ID used to initialize the data disk. If the size specified by snapshot is greater that the size of the disk, use the size specified by snapshot as the size of the data disk.
    Category string
    The category of the system disk.
    DeleteWithInstance bool
    Specifies whether to release the system disk when the instance is released.
    Description string
    System disk description.
    Encrypted bool
    Encrypted the data in this disk.
    Name string
    System disk name.
    PerformanceLevel string
    The performance level of the ESSD used as the system disk.
    Size int
    Size of the system disk, measured in GB.
    SnapshotId string
    The snapshot ID used to initialize the data disk. If the size specified by snapshot is greater that the size of the disk, use the size specified by snapshot as the size of the data disk.
    category String
    The category of the system disk.
    deleteWithInstance Boolean
    Specifies whether to release the system disk when the instance is released.
    description String
    System disk description.
    encrypted Boolean
    Encrypted the data in this disk.
    name String
    System disk name.
    performanceLevel String
    The performance level of the ESSD used as the system disk.
    size Integer
    Size of the system disk, measured in GB.
    snapshotId String
    The snapshot ID used to initialize the data disk. If the size specified by snapshot is greater that the size of the disk, use the size specified by snapshot as the size of the data disk.
    category string
    The category of the system disk.
    deleteWithInstance boolean
    Specifies whether to release the system disk when the instance is released.
    description string
    System disk description.
    encrypted boolean
    Encrypted the data in this disk.
    name string
    System disk name.
    performanceLevel string
    The performance level of the ESSD used as the system disk.
    size number
    Size of the system disk, measured in GB.
    snapshotId string
    The snapshot ID used to initialize the data disk. If the size specified by snapshot is greater that the size of the disk, use the size specified by snapshot as the size of the data disk.
    category str
    The category of the system disk.
    delete_with_instance bool
    Specifies whether to release the system disk when the instance is released.
    description str
    System disk description.
    encrypted bool
    Encrypted the data in this disk.
    name str
    System disk name.
    performance_level str
    The performance level of the ESSD used as the system disk.
    size int
    Size of the system disk, measured in GB.
    snapshot_id str
    The snapshot ID used to initialize the data disk. If the size specified by snapshot is greater that the size of the disk, use the size specified by snapshot as the size of the data disk.
    category String
    The category of the system disk.
    deleteWithInstance Boolean
    Specifies whether to release the system disk when the instance is released.
    description String
    System disk description.
    encrypted Boolean
    Encrypted the data in this disk.
    name String
    System disk name.
    performanceLevel String
    The performance level of the ESSD used as the system disk.
    size Number
    Size of the system disk, measured in GB.
    snapshotId String
    The snapshot ID used to initialize the data disk. If the size specified by snapshot is greater that the size of the disk, use the size specified by snapshot as the size of the data disk.

    GetEcsLaunchTemplatesTemplateNetworkInterface

    Description string
    System disk description.
    Name string
    System disk name.
    PrimaryIp string
    The primary private IP address of the ENI.
    SecurityGroupId string
    The security group ID must be one in the same VPC.
    VswitchId string
    The vSwitch ID for ENI. The instance must be in the same zone of the same VPC network as the ENI, but they may belong to different VSwitches.
    Description string
    System disk description.
    Name string
    System disk name.
    PrimaryIp string
    The primary private IP address of the ENI.
    SecurityGroupId string
    The security group ID must be one in the same VPC.
    VswitchId string
    The vSwitch ID for ENI. The instance must be in the same zone of the same VPC network as the ENI, but they may belong to different VSwitches.
    description String
    System disk description.
    name String
    System disk name.
    primaryIp String
    The primary private IP address of the ENI.
    securityGroupId String
    The security group ID must be one in the same VPC.
    vswitchId String
    The vSwitch ID for ENI. The instance must be in the same zone of the same VPC network as the ENI, but they may belong to different VSwitches.
    description string
    System disk description.
    name string
    System disk name.
    primaryIp string
    The primary private IP address of the ENI.
    securityGroupId string
    The security group ID must be one in the same VPC.
    vswitchId string
    The vSwitch ID for ENI. The instance must be in the same zone of the same VPC network as the ENI, but they may belong to different VSwitches.
    description str
    System disk description.
    name str
    System disk name.
    primary_ip str
    The primary private IP address of the ENI.
    security_group_id str
    The security group ID must be one in the same VPC.
    vswitch_id str
    The vSwitch ID for ENI. The instance must be in the same zone of the same VPC network as the ENI, but they may belong to different VSwitches.
    description String
    System disk description.
    name String
    System disk name.
    primaryIp String
    The primary private IP address of the ENI.
    securityGroupId String
    The security group ID must be one in the same VPC.
    vswitchId String
    The vSwitch ID for ENI. The instance must be in the same zone of the same VPC network as the ENI, but they may belong to different VSwitches.

    GetEcsLaunchTemplatesTemplateSystemDisk

    Category string
    The category of the system disk.
    DeleteWithInstance bool
    Specifies whether to release the system disk when the instance is released.
    Description string
    System disk description.
    Iops string
    The Iops.
    Name string
    System disk name.
    PerformanceLevel string
    The performance level of the ESSD used as the system disk.
    Size int
    Size of the system disk, measured in GB.
    Category string
    The category of the system disk.
    DeleteWithInstance bool
    Specifies whether to release the system disk when the instance is released.
    Description string
    System disk description.
    Iops string
    The Iops.
    Name string
    System disk name.
    PerformanceLevel string
    The performance level of the ESSD used as the system disk.
    Size int
    Size of the system disk, measured in GB.
    category String
    The category of the system disk.
    deleteWithInstance Boolean
    Specifies whether to release the system disk when the instance is released.
    description String
    System disk description.
    iops String
    The Iops.
    name String
    System disk name.
    performanceLevel String
    The performance level of the ESSD used as the system disk.
    size Integer
    Size of the system disk, measured in GB.
    category string
    The category of the system disk.
    deleteWithInstance boolean
    Specifies whether to release the system disk when the instance is released.
    description string
    System disk description.
    iops string
    The Iops.
    name string
    System disk name.
    performanceLevel string
    The performance level of the ESSD used as the system disk.
    size number
    Size of the system disk, measured in GB.
    category str
    The category of the system disk.
    delete_with_instance bool
    Specifies whether to release the system disk when the instance is released.
    description str
    System disk description.
    iops str
    The Iops.
    name str
    System disk name.
    performance_level str
    The performance level of the ESSD used as the system disk.
    size int
    Size of the system disk, measured in GB.
    category String
    The category of the system disk.
    deleteWithInstance Boolean
    Specifies whether to release the system disk when the instance is released.
    description String
    System disk description.
    iops String
    The Iops.
    name String
    System disk name.
    performanceLevel String
    The performance level of the ESSD used as the system disk.
    size Number
    Size of the system disk, measured in GB.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.82.0 published on Tuesday, Jul 8, 2025 by Pulumi