variable "instance_initiated_shutdown_behavior" { default = "stop" type = string description = "Shutdown behavior for the instance - stop (default) or terminate" } variable "name" { type = string description = "Name of launch template" } variable "description" { type = string description = "Description of launch template" } variable "image_id" { type = string description = "AMI id of launch template" } variable "key_name" { type = string description = "Name of keypair" default = null } variable "security_grouo_ids" { type = list(string) description = "List of security group ids" default = [] } variable "userdata_base64" { type = string description = "Base64 encoded userdata" validation { condition = can(base64decode(var.userdata_base64)) error_message = "Userdata must be encoded in base64" } } variable "tag_specifications" { type = map(string) description = "Tags to be added to instance and volume" } variable "root_volume_size" { type = number description = "Size of root volume in GB" } variable "root_volume_type" { default = "gp3" type = string description = "Root volume type - default gp3" } variable "ebs_volume_kms_key_id" { type = string description = "KMS key id for EBS encryption - a default key will be used if not specified" default = null } variable "imdsv2_required" { default = true type = bool description = "Use IMDSv2 for ec2 instance" } variable "instance_types" { type = list(string) description = "Types of instances allowed for this launch template" } variable "cpu_count_min" { type = number description = "Minimum vcpu count for setting up instance_requirements" default = null } variable "cpu_count_max" { type = number description = "Maximum vcpu count for setting up instance_requirements" default = null } variable "mem_mib_min" { type = number description = "Minimum memory size (mib) for setting up instance_requirements" default = null } variable "mem_mib_max" { type = number description = "Maximum memory size (mib) for setting up instance_requirements" default = null } variable "update_default_version" { type = bool default = true description = "Point default version to the latest" } variable "instance_profile_name" { type = string description = "Name of iam instance profile" default = null }