variable "instance-type" { type = string description = "Instance type" } variable "ami-id" { type = string description = "Image id of EC2 instance" } variable "asso-public-ip" { type = bool description = "Whether to associate ephemeral public IP" } variable "instance-profile" { type = string default = "" description = "Ec2 instance profile name" } variable "key-name" { type = string description = "Instance ssh key name" default = "" } variable "ebs-encrypted" { type = bool default = true description = "Whether to enable EBS encryption" } variable "root-volume-size" { type = number description = "Size of root volume" } variable "root-volume-type" { type = string default = "gp3" description = "Root volume type" } variable "kms-key-id" { type = string description = "Disk encryption KMS key id" } variable "delete-on-termination" { type = bool default = true description = "Whether to delete volumes on termination" } variable "subnet-id" { type = string description = "Id of subnet to deploy Ec2 instance to" } variable "security-groups" { type = list(string) description = "List of security groups for Ec2 instance" } variable "instance-name" { type = string description = "Name of ec2 instance" } variable "asso-eip" { type = bool description = "Whether to associate Elastic IP" } variable "data-volumes" { type = map(object({ size = number type = string })) description = "Attach additional data volumes" } variable "private-ip" { type = string default = null description = "Specify private IP to be used on this instance" } variable "additional-tags" { type = map(string) description = "Additional tags to be assigned on top of provider default tags. Useful for setting backup tags." } variable "disable_secure_idmsv2" { type = bool default = false description = "If set to true, the insecure IDMSv1 will be used." } variable "enable-termination-protection" { type = bool default = false description = "Whether to enable prevent accidential deletion of instance" } variable "user-data" { type = string default = "" description = "Ec2 user-data" } variable "enable-detail-monitoring" { type = bool default = false description = "Set true to enable detail monitoring" } variable "spot-max-price" { type = number description = "Max hourly price for spot instance. If greater than zero, spot instance will be used." default = 0 } variable "create-ssh-key" { type = bool default = false description = "Set true to create ssh key and store on secret manager" }