Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine
volcengine.ecs.LaunchTemplates
Explore with Pulumi AI
Use this data source to query detailed information of ecs launch templates
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var fooLaunchTemplate = new Volcengine.Ecs.LaunchTemplate("fooLaunchTemplate", new()
{
Description = "acc-test-desc",
EipBandwidth = 1,
EipBillingType = "PostPaidByBandwidth",
EipIsp = "ChinaMobile",
HostName = "tf-host-name",
HpcClusterId = "hpcCluster-l8u24ovdmoab6opf",
ImageId = "image-ycjwwciuzy5pkh54xx8f",
InstanceChargeType = "PostPaid",
InstanceName = "tf-acc-name",
InstanceTypeId = "ecs.g1.large",
KeyPairName = "tf-key-pair",
LaunchTemplateName = "tf-acc-template",
});
var fooLaunchTemplates = Volcengine.Ecs.LaunchTemplates.Invoke(new()
{
Ids = new[]
{
fooLaunchTemplate.Id,
},
});
});
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/ecs"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
fooLaunchTemplate, err := ecs.NewLaunchTemplate(ctx, "fooLaunchTemplate", &ecs.LaunchTemplateArgs{
Description: pulumi.String("acc-test-desc"),
EipBandwidth: pulumi.Int(1),
EipBillingType: pulumi.String("PostPaidByBandwidth"),
EipIsp: pulumi.String("ChinaMobile"),
HostName: pulumi.String("tf-host-name"),
HpcClusterId: pulumi.String("hpcCluster-l8u24ovdmoab6opf"),
ImageId: pulumi.String("image-ycjwwciuzy5pkh54xx8f"),
InstanceChargeType: pulumi.String("PostPaid"),
InstanceName: pulumi.String("tf-acc-name"),
InstanceTypeId: pulumi.String("ecs.g1.large"),
KeyPairName: pulumi.String("tf-key-pair"),
LaunchTemplateName: pulumi.String("tf-acc-template"),
})
if err != nil {
return err
}
_ = ecs.LaunchTemplatesOutput(ctx, ecs.LaunchTemplatesOutputArgs{
Ids: pulumi.StringArray{
fooLaunchTemplate.ID(),
},
}, nil)
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.ecs.LaunchTemplate;
import com.pulumi.volcengine.ecs.LaunchTemplateArgs;
import com.pulumi.volcengine.ecs.EcsFunctions;
import com.pulumi.volcengine.ecs.inputs.LaunchTemplatesArgs;
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) {
var fooLaunchTemplate = new LaunchTemplate("fooLaunchTemplate", LaunchTemplateArgs.builder()
.description("acc-test-desc")
.eipBandwidth(1)
.eipBillingType("PostPaidByBandwidth")
.eipIsp("ChinaMobile")
.hostName("tf-host-name")
.hpcClusterId("hpcCluster-l8u24ovdmoab6opf")
.imageId("image-ycjwwciuzy5pkh54xx8f")
.instanceChargeType("PostPaid")
.instanceName("tf-acc-name")
.instanceTypeId("ecs.g1.large")
.keyPairName("tf-key-pair")
.launchTemplateName("tf-acc-template")
.build());
final var fooLaunchTemplates = EcsFunctions.LaunchTemplates(LaunchTemplatesArgs.builder()
.ids(fooLaunchTemplate.id())
.build());
}
}
import pulumi
import pulumi_volcengine as volcengine
foo_launch_template = volcengine.ecs.LaunchTemplate("fooLaunchTemplate",
description="acc-test-desc",
eip_bandwidth=1,
eip_billing_type="PostPaidByBandwidth",
eip_isp="ChinaMobile",
host_name="tf-host-name",
hpc_cluster_id="hpcCluster-l8u24ovdmoab6opf",
image_id="image-ycjwwciuzy5pkh54xx8f",
instance_charge_type="PostPaid",
instance_name="tf-acc-name",
instance_type_id="ecs.g1.large",
key_pair_name="tf-key-pair",
launch_template_name="tf-acc-template")
foo_launch_templates = volcengine.ecs.launch_templates_output(ids=[foo_launch_template.id])
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
import * as volcengine from "@volcengine/pulumi";
const fooLaunchTemplate = new volcengine.ecs.LaunchTemplate("fooLaunchTemplate", {
description: "acc-test-desc",
eipBandwidth: 1,
eipBillingType: "PostPaidByBandwidth",
eipIsp: "ChinaMobile",
hostName: "tf-host-name",
hpcClusterId: "hpcCluster-l8u24ovdmoab6opf",
imageId: "image-ycjwwciuzy5pkh54xx8f",
instanceChargeType: "PostPaid",
instanceName: "tf-acc-name",
instanceTypeId: "ecs.g1.large",
keyPairName: "tf-key-pair",
launchTemplateName: "tf-acc-template",
});
const fooLaunchTemplates = volcengine.ecs.LaunchTemplatesOutput({
ids: [fooLaunchTemplate.id],
});
resources:
fooLaunchTemplate:
type: volcengine:ecs:LaunchTemplate
properties:
description: acc-test-desc
eipBandwidth: 1
eipBillingType: PostPaidByBandwidth
eipIsp: ChinaMobile
hostName: tf-host-name
hpcClusterId: hpcCluster-l8u24ovdmoab6opf
imageId: image-ycjwwciuzy5pkh54xx8f
instanceChargeType: PostPaid
instanceName: tf-acc-name
instanceTypeId: ecs.g1.large
keyPairName: tf-key-pair
launchTemplateName: tf-acc-template
variables:
fooLaunchTemplates:
fn::invoke:
Function: volcengine:ecs:LaunchTemplates
Arguments:
ids:
- ${fooLaunchTemplate.id}
Using LaunchTemplates
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 launchTemplates(args: LaunchTemplatesArgs, opts?: InvokeOptions): Promise<LaunchTemplatesResult>
function launchTemplatesOutput(args: LaunchTemplatesOutputArgs, opts?: InvokeOptions): Output<LaunchTemplatesResult>
def launch_templates(ids: Optional[Sequence[str]] = None,
launch_template_names: Optional[Sequence[str]] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> LaunchTemplatesResult
def launch_templates_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
launch_template_names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[LaunchTemplatesResult]
func LaunchTemplates(ctx *Context, args *LaunchTemplatesArgs, opts ...InvokeOption) (*LaunchTemplatesResult, error)
func LaunchTemplatesOutput(ctx *Context, args *LaunchTemplatesOutputArgs, opts ...InvokeOption) LaunchTemplatesResultOutput
public static class LaunchTemplates
{
public static Task<LaunchTemplatesResult> InvokeAsync(LaunchTemplatesArgs args, InvokeOptions? opts = null)
public static Output<LaunchTemplatesResult> Invoke(LaunchTemplatesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<LaunchTemplatesResult> launchTemplates(LaunchTemplatesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: volcengine:ecs:LaunchTemplates
arguments:
# arguments dictionary
The following arguments are supported:
- Ids List<string>
- A list of launch template ids.
- Launch
Template List<string>Names - A list of launch template names.
- Name
Regex string - A Name Regex of scaling policy.
- Output
File string - File name where to save data source results.
- Ids []string
- A list of launch template ids.
- Launch
Template []stringNames - A list of launch template names.
- Name
Regex string - A Name Regex of scaling policy.
- Output
File string - File name where to save data source results.
- ids List<String>
- A list of launch template ids.
- launch
Template List<String>Names - A list of launch template names.
- name
Regex String - A Name Regex of scaling policy.
- output
File String - File name where to save data source results.
- ids string[]
- A list of launch template ids.
- launch
Template string[]Names - A list of launch template names.
- name
Regex string - A Name Regex of scaling policy.
- output
File string - File name where to save data source results.
- ids Sequence[str]
- A list of launch template ids.
- launch_
template_ Sequence[str]names - A list of launch template names.
- name_
regex str - A Name Regex of scaling policy.
- output_
file str - File name where to save data source results.
- ids List<String>
- A list of launch template ids.
- launch
Template List<String>Names - A list of launch template names.
- name
Regex String - A Name Regex of scaling policy.
- output
File String - File name where to save data source results.
LaunchTemplates Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Launch
Templates List<LaunchTemplates Launch Template> - The collection of launch templates.
- Total
Count int - The total count of scaling policy query.
- Ids List<string>
- Launch
Template List<string>Names - Name
Regex string - Output
File string
- Id string
- The provider-assigned unique ID for this managed resource.
- Launch
Templates []LaunchTemplates Launch Template - The collection of launch templates.
- Total
Count int - The total count of scaling policy query.
- Ids []string
- Launch
Template []stringNames - Name
Regex string - Output
File string
- id String
- The provider-assigned unique ID for this managed resource.
- launch
Templates List<LaunchTemplates Launch Template> - The collection of launch templates.
- total
Count Integer - The total count of scaling policy query.
- ids List<String>
- launch
Template List<String>Names - name
Regex String - output
File String
- id string
- The provider-assigned unique ID for this managed resource.
- launch
Templates LaunchTemplates Launch Template[] - The collection of launch templates.
- total
Count number - The total count of scaling policy query.
- ids string[]
- launch
Template string[]Names - name
Regex string - output
File string
- id str
- The provider-assigned unique ID for this managed resource.
- launch_
templates Sequence[LaunchTemplates Launch Template] - The collection of launch templates.
- total_
count int - The total count of scaling policy query.
- ids Sequence[str]
- launch_
template_ Sequence[str]names - name_
regex str - output_
file str
- id String
- The provider-assigned unique ID for this managed resource.
- launch
Templates List<Property Map> - The collection of launch templates.
- total
Count Number - The total count of scaling policy query.
- ids List<String>
- launch
Template List<String>Names - name
Regex String - output
File String
Supporting Types
LaunchTemplatesLaunchTemplate
- Created
At string - The created time of the launch template.
- Default
Version intNumber - The default version of the launch template.
- Description string
- The description of the instance.
- Eip
Bandwidth int - The EIP bandwidth which the scaling configuration set.
- Eip
Billing stringType - The EIP billing type which the scaling configuration set. Valid values: PostPaidByBandwidth, PostPaidByTraffic.
- Eip
Isp string - The EIP ISP which the scaling configuration set. Valid values: BGP, ChinaMobile, ChinaUnicom, ChinaTelecom.
- Host
Name string - The host name of the instance.
- Hpc
Cluster stringId - The hpc cluster id.
- Id string
- The id of the launch template.
- Image
Id string - The image id.
- Instance
Charge stringType - The charge type of the instance and volume.
- Instance
Name string - The name of the instance.
- Key
Pair stringName - When you log in to the instance using the SSH key pair, enter the name of the key pair.
- Latest
Version intNumber - The latest version of the launch template.
- Launch
Template stringId - The id of the launch template.
- Launch
Template stringName - The name of the launch template.
- Network
Interfaces List<LaunchTemplates Launch Template Network Interface> - The list of network interfaces.
- Security
Enhancement stringStrategy - Whether to open the security reinforcement.
- Suffix
Index int - The index of the ordered suffix.
- Unique
Suffix bool - Indicates whether the ordered suffix is automatically added to Hostname and InstanceName when multiple instances are created.
- Updated
At string - The updated time of the launch template.
- Version
Description string - The latest version description of the launch template.
- Volumes
List<Launch
Templates Launch Template Volume> - The list of volume of the scaling configuration.
- Vpc
Id string - The vpc id.
- Zone
Id string - The zone ID of the instance.
- Created
At string - The created time of the launch template.
- Default
Version intNumber - The default version of the launch template.
- Description string
- The description of the instance.
- Eip
Bandwidth int - The EIP bandwidth which the scaling configuration set.
- Eip
Billing stringType - The EIP billing type which the scaling configuration set. Valid values: PostPaidByBandwidth, PostPaidByTraffic.
- Eip
Isp string - The EIP ISP which the scaling configuration set. Valid values: BGP, ChinaMobile, ChinaUnicom, ChinaTelecom.
- Host
Name string - The host name of the instance.
- Hpc
Cluster stringId - The hpc cluster id.
- Id string
- The id of the launch template.
- Image
Id string - The image id.
- Instance
Charge stringType - The charge type of the instance and volume.
- Instance
Name string - The name of the instance.
- Key
Pair stringName - When you log in to the instance using the SSH key pair, enter the name of the key pair.
- Latest
Version intNumber - The latest version of the launch template.
- Launch
Template stringId - The id of the launch template.
- Launch
Template stringName - The name of the launch template.
- Network
Interfaces []LaunchTemplates Launch Template Network Interface - The list of network interfaces.
- Security
Enhancement stringStrategy - Whether to open the security reinforcement.
- Suffix
Index int - The index of the ordered suffix.
- Unique
Suffix bool - Indicates whether the ordered suffix is automatically added to Hostname and InstanceName when multiple instances are created.
- Updated
At string - The updated time of the launch template.
- Version
Description string - The latest version description of the launch template.
- Volumes
[]Launch
Templates Launch Template Volume - The list of volume of the scaling configuration.
- Vpc
Id string - The vpc id.
- Zone
Id string - The zone ID of the instance.
- created
At String - The created time of the launch template.
- default
Version IntegerNumber - The default version of the launch template.
- description String
- The description of the instance.
- eip
Bandwidth Integer - The EIP bandwidth which the scaling configuration set.
- eip
Billing StringType - The EIP billing type which the scaling configuration set. Valid values: PostPaidByBandwidth, PostPaidByTraffic.
- eip
Isp String - The EIP ISP which the scaling configuration set. Valid values: BGP, ChinaMobile, ChinaUnicom, ChinaTelecom.
- host
Name String - The host name of the instance.
- hpc
Cluster StringId - The hpc cluster id.
- id String
- The id of the launch template.
- image
Id String - The image id.
- instance
Charge StringType - The charge type of the instance and volume.
- instance
Name String - The name of the instance.
- key
Pair StringName - When you log in to the instance using the SSH key pair, enter the name of the key pair.
- latest
Version IntegerNumber - The latest version of the launch template.
- launch
Template StringId - The id of the launch template.
- launch
Template StringName - The name of the launch template.
- network
Interfaces List<LaunchTemplates Launch Template Network Interface> - The list of network interfaces.
- security
Enhancement StringStrategy - Whether to open the security reinforcement.
- suffix
Index Integer - The index of the ordered suffix.
- unique
Suffix Boolean - Indicates whether the ordered suffix is automatically added to Hostname and InstanceName when multiple instances are created.
- updated
At String - The updated time of the launch template.
- version
Description String - The latest version description of the launch template.
- volumes
List<Launch
Templates Launch Template Volume> - The list of volume of the scaling configuration.
- vpc
Id String - The vpc id.
- zone
Id String - The zone ID of the instance.
- created
At string - The created time of the launch template.
- default
Version numberNumber - The default version of the launch template.
- description string
- The description of the instance.
- eip
Bandwidth number - The EIP bandwidth which the scaling configuration set.
- eip
Billing stringType - The EIP billing type which the scaling configuration set. Valid values: PostPaidByBandwidth, PostPaidByTraffic.
- eip
Isp string - The EIP ISP which the scaling configuration set. Valid values: BGP, ChinaMobile, ChinaUnicom, ChinaTelecom.
- host
Name string - The host name of the instance.
- hpc
Cluster stringId - The hpc cluster id.
- id string
- The id of the launch template.
- image
Id string - The image id.
- instance
Charge stringType - The charge type of the instance and volume.
- instance
Name string - The name of the instance.
- key
Pair stringName - When you log in to the instance using the SSH key pair, enter the name of the key pair.
- latest
Version numberNumber - The latest version of the launch template.
- launch
Template stringId - The id of the launch template.
- launch
Template stringName - The name of the launch template.
- network
Interfaces LaunchTemplates Launch Template Network Interface[] - The list of network interfaces.
- security
Enhancement stringStrategy - Whether to open the security reinforcement.
- suffix
Index number - The index of the ordered suffix.
- unique
Suffix boolean - Indicates whether the ordered suffix is automatically added to Hostname and InstanceName when multiple instances are created.
- updated
At string - The updated time of the launch template.
- version
Description string - The latest version description of the launch template.
- volumes
Launch
Templates Launch Template Volume[] - The list of volume of the scaling configuration.
- vpc
Id string - The vpc id.
- zone
Id string - The zone ID of the instance.
- created_
at str - The created time of the launch template.
- default_
version_ intnumber - The default version of the launch template.
- description str
- The description of the instance.
- eip_
bandwidth int - The EIP bandwidth which the scaling configuration set.
- eip_
billing_ strtype - The EIP billing type which the scaling configuration set. Valid values: PostPaidByBandwidth, PostPaidByTraffic.
- eip_
isp str - The EIP ISP which the scaling configuration set. Valid values: BGP, ChinaMobile, ChinaUnicom, ChinaTelecom.
- host_
name str - The host name of the instance.
- hpc_
cluster_ strid - The hpc cluster id.
- id str
- The id of the launch template.
- image_
id str - The image id.
- instance_
charge_ strtype - The charge type of the instance and volume.
- instance_
name str - The name of the instance.
- key_
pair_ strname - When you log in to the instance using the SSH key pair, enter the name of the key pair.
- latest_
version_ intnumber - The latest version of the launch template.
- launch_
template_ strid - The id of the launch template.
- launch_
template_ strname - The name of the launch template.
- network_
interfaces Sequence[LaunchTemplates Launch Template Network Interface] - The list of network interfaces.
- security_
enhancement_ strstrategy - Whether to open the security reinforcement.
- suffix_
index int - The index of the ordered suffix.
- unique_
suffix bool - Indicates whether the ordered suffix is automatically added to Hostname and InstanceName when multiple instances are created.
- updated_
at str - The updated time of the launch template.
- version_
description str - The latest version description of the launch template.
- volumes
Sequence[Launch
Templates Launch Template Volume] - The list of volume of the scaling configuration.
- vpc_
id str - The vpc id.
- zone_
id str - The zone ID of the instance.
- created
At String - The created time of the launch template.
- default
Version NumberNumber - The default version of the launch template.
- description String
- The description of the instance.
- eip
Bandwidth Number - The EIP bandwidth which the scaling configuration set.
- eip
Billing StringType - The EIP billing type which the scaling configuration set. Valid values: PostPaidByBandwidth, PostPaidByTraffic.
- eip
Isp String - The EIP ISP which the scaling configuration set. Valid values: BGP, ChinaMobile, ChinaUnicom, ChinaTelecom.
- host
Name String - The host name of the instance.
- hpc
Cluster StringId - The hpc cluster id.
- id String
- The id of the launch template.
- image
Id String - The image id.
- instance
Charge StringType - The charge type of the instance and volume.
- instance
Name String - The name of the instance.
- key
Pair StringName - When you log in to the instance using the SSH key pair, enter the name of the key pair.
- latest
Version NumberNumber - The latest version of the launch template.
- launch
Template StringId - The id of the launch template.
- launch
Template StringName - The name of the launch template.
- network
Interfaces List<Property Map> - The list of network interfaces.
- security
Enhancement StringStrategy - Whether to open the security reinforcement.
- suffix
Index Number - The index of the ordered suffix.
- unique
Suffix Boolean - Indicates whether the ordered suffix is automatically added to Hostname and InstanceName when multiple instances are created.
- updated
At String - The updated time of the launch template.
- version
Description String - The latest version description of the launch template.
- volumes List<Property Map>
- The list of volume of the scaling configuration.
- vpc
Id String - The vpc id.
- zone
Id String - The zone ID of the instance.
LaunchTemplatesLaunchTemplateNetworkInterface
- Security
Group List<string>Ids - The security group ID associated with the NIC.
- Subnet
Id string - The private network subnet ID of the instance, when creating the instance, supports binding the secondary NIC at the same time.
- Security
Group []stringIds - The security group ID associated with the NIC.
- Subnet
Id string - The private network subnet ID of the instance, when creating the instance, supports binding the secondary NIC at the same time.
- security
Group List<String>Ids - The security group ID associated with the NIC.
- subnet
Id String - The private network subnet ID of the instance, when creating the instance, supports binding the secondary NIC at the same time.
- security
Group string[]Ids - The security group ID associated with the NIC.
- subnet
Id string - The private network subnet ID of the instance, when creating the instance, supports binding the secondary NIC at the same time.
- security_
group_ Sequence[str]ids - The security group ID associated with the NIC.
- subnet_
id str - The private network subnet ID of the instance, when creating the instance, supports binding the secondary NIC at the same time.
- security
Group List<String>Ids - The security group ID associated with the NIC.
- subnet
Id String - The private network subnet ID of the instance, when creating the instance, supports binding the secondary NIC at the same time.
LaunchTemplatesLaunchTemplateVolume
- Delete
With boolInstance - The delete with instance flag of volume. Valid values: true, false. Default value: true.
- Size int
- The size of volume.
- Volume
Type string - The type of volume.
- Delete
With boolInstance - The delete with instance flag of volume. Valid values: true, false. Default value: true.
- Size int
- The size of volume.
- Volume
Type string - The type of volume.
- delete
With BooleanInstance - The delete with instance flag of volume. Valid values: true, false. Default value: true.
- size Integer
- The size of volume.
- volume
Type String - The type of volume.
- delete
With booleanInstance - The delete with instance flag of volume. Valid values: true, false. Default value: true.
- size number
- The size of volume.
- volume
Type string - The type of volume.
- delete_
with_ boolinstance - The delete with instance flag of volume. Valid values: true, false. Default value: true.
- size int
- The size of volume.
- volume_
type str - The type of volume.
- delete
With BooleanInstance - The delete with instance flag of volume. Valid values: true, false. Default value: true.
- size Number
- The size of volume.
- volume
Type String - The type of volume.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengine
Terraform Provider.