» Data Source: aws_launch_template
Provides information about a Launch Template.
» Example Usage
data "aws_launch_template" "default" {
name = "my-launch-template"
}
» Argument Reference
The following arguments are supported:
-
name
- (Required) The name of the launch template.
» Attributes Reference
In addition to all arguments above, the following attributes are exported:
-
arn
- Amazon Resource Name (ARN) of the launch template. -
id
- The ID of the launch template. -
default_version
- The default version of the launch template. -
latest_version
- The latest version of the launch template. -
description
- Description of the launch template. -
block_device_mappings
- Specify volumes to attach to the instance besides the volumes specified by the AMI. -
credit_specification
- Customize the credit specification of the instance. See Credit Specification below for more details. -
disable_api_termination
- Iftrue
, enables EC2 Instance Termination Protection -
ebs_optimized
- Iftrue
, the launched EC2 instance will be EBS-optimized. -
elastic_gpu_specifications
- The elastic GPU to attach to the instance. See Elastic GPU below for more details. -
iam_instance_profile
- The IAM Instance Profile to launch the instance with. See Instance Profile below for more details. -
image_id
- The AMI from which to launch the instance. -
instance_initiated_shutdown_behavior
- Shutdown behavior for the instance. Can bestop
orterminate
. (Default:stop
). -
instance_market_options
- The market (purchasing) option for the instance. below for details. -
instance_type
- The type of the instance. -
kernel_id
- The kernel ID. -
key_name
- The key name to use for the instance. -
monitoring
- The monitoring option for the instance. -
network_interfaces
- Customize network interfaces to be attached at instance boot time. See Network Interfaces below for more details. -
placement
- The placement of the instance. -
ram_disk_id
- The ID of the RAM disk. -
security_group_names
- A list of security group names to associate with. If you are creating Instances in a VPC, usevpc_security_group_ids
instead. -
vpc_security_group_ids
- A list of security group IDs to associate with. -
tag_specifications
- The tags to apply to the resources during launch. -
tags
- (Optional) A mapping of tags to assign to the launch template. -
user_data
- The Base64-encoded user data to provide when launching the instance.