volcengine.ecs.LaunchTemplate
Explore with Pulumi AI
Import
LaunchTemplate can be imported using the LaunchTemplateId, e.g. When the instance launch template is modified, a new version will be created. When the number of versions reaches the upper limit (30), the oldest version that is not the default version will be deleted.
$ pulumi import volcengine:ecs/launchTemplate:LaunchTemplate default lt-ysxc16auaugh9zfy****
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var foo = new Volcengine.Ecs.LaunchTemplate("foo", 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",
});
});
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 {
_, err := ecs.NewLaunchTemplate(ctx, "foo", &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
}
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 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 foo = new LaunchTemplate("foo", 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());
}
}
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.ecs.LaunchTemplate("foo",
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")
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@volcengine/pulumi";
const foo = new volcengine.ecs.LaunchTemplate("foo", {
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",
});
resources:
foo:
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
Create LaunchTemplate Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LaunchTemplate(name: string, args: LaunchTemplateArgs, opts?: CustomResourceOptions);
@overload
def LaunchTemplate(resource_name: str,
args: LaunchTemplateArgs,
opts: Optional[ResourceOptions] = None)
@overload
def LaunchTemplate(resource_name: str,
opts: Optional[ResourceOptions] = None,
launch_template_name: Optional[str] = None,
key_pair_name: Optional[str] = None,
volumes: Optional[Sequence[LaunchTemplateVolumeArgs]] = None,
eip_isp: Optional[str] = None,
host_name: Optional[str] = None,
hpc_cluster_id: Optional[str] = None,
image_id: Optional[str] = None,
instance_charge_type: Optional[str] = None,
eip_bandwidth: Optional[int] = None,
zone_id: Optional[str] = None,
eip_billing_type: Optional[str] = None,
instance_name: Optional[str] = None,
network_interfaces: Optional[Sequence[LaunchTemplateNetworkInterfaceArgs]] = None,
security_enhancement_strategy: Optional[str] = None,
suffix_index: Optional[int] = None,
unique_suffix: Optional[bool] = None,
user_data: Optional[str] = None,
version_description: Optional[str] = None,
description: Optional[str] = None,
vpc_id: Optional[str] = None,
instance_type_id: Optional[str] = None)
func NewLaunchTemplate(ctx *Context, name string, args LaunchTemplateArgs, opts ...ResourceOption) (*LaunchTemplate, error)
public LaunchTemplate(string name, LaunchTemplateArgs args, CustomResourceOptions? opts = null)
public LaunchTemplate(String name, LaunchTemplateArgs args)
public LaunchTemplate(String name, LaunchTemplateArgs args, CustomResourceOptions options)
type: volcengine:ecs:LaunchTemplate
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args LaunchTemplateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args LaunchTemplateArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args LaunchTemplateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LaunchTemplateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LaunchTemplateArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var launchTemplateResource = new Volcengine.Ecs.LaunchTemplate("launchTemplateResource", new()
{
LaunchTemplateName = "string",
KeyPairName = "string",
Volumes = new[]
{
new Volcengine.Ecs.Inputs.LaunchTemplateVolumeArgs
{
DeleteWithInstance = false,
Size = 0,
VolumeType = "string",
},
},
EipIsp = "string",
HostName = "string",
HpcClusterId = "string",
ImageId = "string",
InstanceChargeType = "string",
EipBandwidth = 0,
ZoneId = "string",
EipBillingType = "string",
InstanceName = "string",
NetworkInterfaces = new[]
{
new Volcengine.Ecs.Inputs.LaunchTemplateNetworkInterfaceArgs
{
SecurityGroupIds = new[]
{
"string",
},
SubnetId = "string",
},
},
SecurityEnhancementStrategy = "string",
SuffixIndex = 0,
UniqueSuffix = false,
UserData = "string",
VersionDescription = "string",
Description = "string",
VpcId = "string",
InstanceTypeId = "string",
});
example, err := ecs.NewLaunchTemplate(ctx, "launchTemplateResource", &ecs.LaunchTemplateArgs{
LaunchTemplateName: pulumi.String("string"),
KeyPairName: pulumi.String("string"),
Volumes: ecs.LaunchTemplateVolumeArray{
&ecs.LaunchTemplateVolumeArgs{
DeleteWithInstance: pulumi.Bool(false),
Size: pulumi.Int(0),
VolumeType: pulumi.String("string"),
},
},
EipIsp: pulumi.String("string"),
HostName: pulumi.String("string"),
HpcClusterId: pulumi.String("string"),
ImageId: pulumi.String("string"),
InstanceChargeType: pulumi.String("string"),
EipBandwidth: pulumi.Int(0),
ZoneId: pulumi.String("string"),
EipBillingType: pulumi.String("string"),
InstanceName: pulumi.String("string"),
NetworkInterfaces: ecs.LaunchTemplateNetworkInterfaceArray{
&ecs.LaunchTemplateNetworkInterfaceArgs{
SecurityGroupIds: pulumi.StringArray{
pulumi.String("string"),
},
SubnetId: pulumi.String("string"),
},
},
SecurityEnhancementStrategy: pulumi.String("string"),
SuffixIndex: pulumi.Int(0),
UniqueSuffix: pulumi.Bool(false),
UserData: pulumi.String("string"),
VersionDescription: pulumi.String("string"),
Description: pulumi.String("string"),
VpcId: pulumi.String("string"),
InstanceTypeId: pulumi.String("string"),
})
var launchTemplateResource = new LaunchTemplate("launchTemplateResource", LaunchTemplateArgs.builder()
.launchTemplateName("string")
.keyPairName("string")
.volumes(LaunchTemplateVolumeArgs.builder()
.deleteWithInstance(false)
.size(0)
.volumeType("string")
.build())
.eipIsp("string")
.hostName("string")
.hpcClusterId("string")
.imageId("string")
.instanceChargeType("string")
.eipBandwidth(0)
.zoneId("string")
.eipBillingType("string")
.instanceName("string")
.networkInterfaces(LaunchTemplateNetworkInterfaceArgs.builder()
.securityGroupIds("string")
.subnetId("string")
.build())
.securityEnhancementStrategy("string")
.suffixIndex(0)
.uniqueSuffix(false)
.userData("string")
.versionDescription("string")
.description("string")
.vpcId("string")
.instanceTypeId("string")
.build());
launch_template_resource = volcengine.ecs.LaunchTemplate("launchTemplateResource",
launch_template_name="string",
key_pair_name="string",
volumes=[volcengine.ecs.LaunchTemplateVolumeArgs(
delete_with_instance=False,
size=0,
volume_type="string",
)],
eip_isp="string",
host_name="string",
hpc_cluster_id="string",
image_id="string",
instance_charge_type="string",
eip_bandwidth=0,
zone_id="string",
eip_billing_type="string",
instance_name="string",
network_interfaces=[volcengine.ecs.LaunchTemplateNetworkInterfaceArgs(
security_group_ids=["string"],
subnet_id="string",
)],
security_enhancement_strategy="string",
suffix_index=0,
unique_suffix=False,
user_data="string",
version_description="string",
description="string",
vpc_id="string",
instance_type_id="string")
const launchTemplateResource = new volcengine.ecs.LaunchTemplate("launchTemplateResource", {
launchTemplateName: "string",
keyPairName: "string",
volumes: [{
deleteWithInstance: false,
size: 0,
volumeType: "string",
}],
eipIsp: "string",
hostName: "string",
hpcClusterId: "string",
imageId: "string",
instanceChargeType: "string",
eipBandwidth: 0,
zoneId: "string",
eipBillingType: "string",
instanceName: "string",
networkInterfaces: [{
securityGroupIds: ["string"],
subnetId: "string",
}],
securityEnhancementStrategy: "string",
suffixIndex: 0,
uniqueSuffix: false,
userData: "string",
versionDescription: "string",
description: "string",
vpcId: "string",
instanceTypeId: "string",
});
type: volcengine:ecs:LaunchTemplate
properties:
description: string
eipBandwidth: 0
eipBillingType: string
eipIsp: string
hostName: string
hpcClusterId: string
imageId: string
instanceChargeType: string
instanceName: string
instanceTypeId: string
keyPairName: string
launchTemplateName: string
networkInterfaces:
- securityGroupIds:
- string
subnetId: string
securityEnhancementStrategy: string
suffixIndex: 0
uniqueSuffix: false
userData: string
versionDescription: string
volumes:
- deleteWithInstance: false
size: 0
volumeType: string
vpcId: string
zoneId: string
LaunchTemplate Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The LaunchTemplate resource accepts the following input properties:
- Launch
Template stringName - The name 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.
- 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.
- Instance
Type stringId - The compute type 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.
- Network
Interfaces List<LaunchTemplate Network Interface> - The list of network interfaces. When creating an instance, it is supported to bind auxiliary network cards at the same time. The first one is the primary network card, and the others are secondary network cards.
- 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.
- User
Data string - Instance custom data. The set custom data must be Base64 encoded, and the size of the custom data before Base64 encoding cannot exceed 16KB.
- Version
Description string - The latest version description of the launch template.
- Volumes
List<Launch
Template Volume> - The list of volume of the scaling configuration.
- Vpc
Id string - The vpc id.
- Zone
Id string - The zone id.
- Launch
Template stringName - The name 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.
- 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.
- Instance
Type stringId - The compute type 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.
- Network
Interfaces []LaunchTemplate Network Interface Args - The list of network interfaces. When creating an instance, it is supported to bind auxiliary network cards at the same time. The first one is the primary network card, and the others are secondary network cards.
- 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.
- User
Data string - Instance custom data. The set custom data must be Base64 encoded, and the size of the custom data before Base64 encoding cannot exceed 16KB.
- Version
Description string - The latest version description of the launch template.
- Volumes
[]Launch
Template Volume Args - The list of volume of the scaling configuration.
- Vpc
Id string - The vpc id.
- Zone
Id string - The zone id.
- launch
Template StringName - The name 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.
- 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.
- instance
Type StringId - The compute type 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.
- network
Interfaces List<LaunchTemplate Network Interface> - The list of network interfaces. When creating an instance, it is supported to bind auxiliary network cards at the same time. The first one is the primary network card, and the others are secondary network cards.
- 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.
- user
Data String - Instance custom data. The set custom data must be Base64 encoded, and the size of the custom data before Base64 encoding cannot exceed 16KB.
- version
Description String - The latest version description of the launch template.
- volumes
List<Launch
Template Volume> - The list of volume of the scaling configuration.
- vpc
Id String - The vpc id.
- zone
Id String - The zone id.
- launch
Template stringName - The name 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.
- 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.
- instance
Type stringId - The compute type 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.
- network
Interfaces LaunchTemplate Network Interface[] - The list of network interfaces. When creating an instance, it is supported to bind auxiliary network cards at the same time. The first one is the primary network card, and the others are secondary network cards.
- 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.
- user
Data string - Instance custom data. The set custom data must be Base64 encoded, and the size of the custom data before Base64 encoding cannot exceed 16KB.
- version
Description string - The latest version description of the launch template.
- volumes
Launch
Template Volume[] - The list of volume of the scaling configuration.
- vpc
Id string - The vpc id.
- zone
Id string - The zone id.
- launch_
template_ strname - The name 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.
- 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.
- instance_
type_ strid - The compute type 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.
- network_
interfaces Sequence[LaunchTemplate Network Interface Args] - The list of network interfaces. When creating an instance, it is supported to bind auxiliary network cards at the same time. The first one is the primary network card, and the others are secondary network cards.
- 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.
- user_
data str - Instance custom data. The set custom data must be Base64 encoded, and the size of the custom data before Base64 encoding cannot exceed 16KB.
- version_
description str - The latest version description of the launch template.
- volumes
Sequence[Launch
Template Volume Args] - The list of volume of the scaling configuration.
- vpc_
id str - The vpc id.
- zone_
id str - The zone id.
- launch
Template StringName - The name 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.
- 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.
- instance
Type StringId - The compute type 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.
- network
Interfaces List<Property Map> - The list of network interfaces. When creating an instance, it is supported to bind auxiliary network cards at the same time. The first one is the primary network card, and the others are secondary network cards.
- 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.
- user
Data String - Instance custom data. The set custom data must be Base64 encoded, and the size of the custom data before Base64 encoding cannot exceed 16KB.
- 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.
Outputs
All input properties are implicitly available as output properties. Additionally, the LaunchTemplate resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Launch
Template stringId - The launch template id.
- Id string
- The provider-assigned unique ID for this managed resource.
- Launch
Template stringId - The launch template id.
- id String
- The provider-assigned unique ID for this managed resource.
- launch
Template StringId - The launch template id.
- id string
- The provider-assigned unique ID for this managed resource.
- launch
Template stringId - The launch template id.
- id str
- The provider-assigned unique ID for this managed resource.
- launch_
template_ strid - The launch template id.
- id String
- The provider-assigned unique ID for this managed resource.
- launch
Template StringId - The launch template id.
Look up Existing LaunchTemplate Resource
Get an existing LaunchTemplate resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: LaunchTemplateState, opts?: CustomResourceOptions): LaunchTemplate
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
eip_bandwidth: Optional[int] = None,
eip_billing_type: Optional[str] = None,
eip_isp: Optional[str] = None,
host_name: Optional[str] = None,
hpc_cluster_id: Optional[str] = None,
image_id: Optional[str] = None,
instance_charge_type: Optional[str] = None,
instance_name: Optional[str] = None,
instance_type_id: Optional[str] = None,
key_pair_name: Optional[str] = None,
launch_template_id: Optional[str] = None,
launch_template_name: Optional[str] = None,
network_interfaces: Optional[Sequence[LaunchTemplateNetworkInterfaceArgs]] = None,
security_enhancement_strategy: Optional[str] = None,
suffix_index: Optional[int] = None,
unique_suffix: Optional[bool] = None,
user_data: Optional[str] = None,
version_description: Optional[str] = None,
volumes: Optional[Sequence[LaunchTemplateVolumeArgs]] = None,
vpc_id: Optional[str] = None,
zone_id: Optional[str] = None) -> LaunchTemplate
func GetLaunchTemplate(ctx *Context, name string, id IDInput, state *LaunchTemplateState, opts ...ResourceOption) (*LaunchTemplate, error)
public static LaunchTemplate Get(string name, Input<string> id, LaunchTemplateState? state, CustomResourceOptions? opts = null)
public static LaunchTemplate get(String name, Output<String> id, LaunchTemplateState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- 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.
- 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.
- Instance
Type stringId - The compute type 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.
- Launch
Template stringId - The launch template id.
- Launch
Template stringName - The name of the launch template.
- Network
Interfaces List<LaunchTemplate Network Interface> - The list of network interfaces. When creating an instance, it is supported to bind auxiliary network cards at the same time. The first one is the primary network card, and the others are secondary network cards.
- 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.
- User
Data string - Instance custom data. The set custom data must be Base64 encoded, and the size of the custom data before Base64 encoding cannot exceed 16KB.
- Version
Description string - The latest version description of the launch template.
- Volumes
List<Launch
Template Volume> - The list of volume of the scaling configuration.
- Vpc
Id string - The vpc id.
- Zone
Id string - The zone id.
- 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.
- 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.
- Instance
Type stringId - The compute type 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.
- Launch
Template stringId - The launch template id.
- Launch
Template stringName - The name of the launch template.
- Network
Interfaces []LaunchTemplate Network Interface Args - The list of network interfaces. When creating an instance, it is supported to bind auxiliary network cards at the same time. The first one is the primary network card, and the others are secondary network cards.
- 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.
- User
Data string - Instance custom data. The set custom data must be Base64 encoded, and the size of the custom data before Base64 encoding cannot exceed 16KB.
- Version
Description string - The latest version description of the launch template.
- Volumes
[]Launch
Template Volume Args - The list of volume of the scaling configuration.
- Vpc
Id string - The vpc id.
- Zone
Id string - The zone id.
- 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.
- 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.
- instance
Type StringId - The compute type 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.
- launch
Template StringId - The launch template id.
- launch
Template StringName - The name of the launch template.
- network
Interfaces List<LaunchTemplate Network Interface> - The list of network interfaces. When creating an instance, it is supported to bind auxiliary network cards at the same time. The first one is the primary network card, and the others are secondary network cards.
- 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.
- user
Data String - Instance custom data. The set custom data must be Base64 encoded, and the size of the custom data before Base64 encoding cannot exceed 16KB.
- version
Description String - The latest version description of the launch template.
- volumes
List<Launch
Template Volume> - The list of volume of the scaling configuration.
- vpc
Id String - The vpc id.
- zone
Id String - The zone id.
- 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.
- 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.
- instance
Type stringId - The compute type 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.
- launch
Template stringId - The launch template id.
- launch
Template stringName - The name of the launch template.
- network
Interfaces LaunchTemplate Network Interface[] - The list of network interfaces. When creating an instance, it is supported to bind auxiliary network cards at the same time. The first one is the primary network card, and the others are secondary network cards.
- 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.
- user
Data string - Instance custom data. The set custom data must be Base64 encoded, and the size of the custom data before Base64 encoding cannot exceed 16KB.
- version
Description string - The latest version description of the launch template.
- volumes
Launch
Template Volume[] - The list of volume of the scaling configuration.
- vpc
Id string - The vpc id.
- zone
Id string - The zone id.
- 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.
- 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.
- instance_
type_ strid - The compute type 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.
- launch_
template_ strid - The launch template id.
- launch_
template_ strname - The name of the launch template.
- network_
interfaces Sequence[LaunchTemplate Network Interface Args] - The list of network interfaces. When creating an instance, it is supported to bind auxiliary network cards at the same time. The first one is the primary network card, and the others are secondary network cards.
- 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.
- user_
data str - Instance custom data. The set custom data must be Base64 encoded, and the size of the custom data before Base64 encoding cannot exceed 16KB.
- version_
description str - The latest version description of the launch template.
- volumes
Sequence[Launch
Template Volume Args] - The list of volume of the scaling configuration.
- vpc_
id str - The vpc id.
- zone_
id str - The zone id.
- 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.
- 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.
- instance
Type StringId - The compute type 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.
- launch
Template StringId - The launch template id.
- launch
Template StringName - The name of the launch template.
- network
Interfaces List<Property Map> - The list of network interfaces. When creating an instance, it is supported to bind auxiliary network cards at the same time. The first one is the primary network card, and the others are secondary network cards.
- 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.
- user
Data String - Instance custom data. The set custom data must be Base64 encoded, and the size of the custom data before Base64 encoding cannot exceed 16KB.
- 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.
Supporting Types
LaunchTemplateNetworkInterface, LaunchTemplateNetworkInterfaceArgs
- 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.
LaunchTemplateVolume, LaunchTemplateVolumeArgs
- 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.