variable "name_prefix" {
  type        = string
  description = "The prefix name of the objects"
}

variable "common_tags" {
  type        = map(string)
  description = "Common tags to add for the objects"
  default     = {}
}

variable "ami" {
  type        = string
  description = "The AMI to use for the instance. By default amzn2-ami-hvm-2.0.20190618-x86_64-gp2"
  default     = "ami-0b898040803850657"
}

variable "instance_type" {
  type        = string
  description = "The type of instance to start."
  default     = "t3.nano"
}

variable "termination_protection" {
  description = "If true, enables EC2 Instance Termination Protection"
  default     = false
}

variable "key_name" {
  type        = string
  description = "The key name to use for the instance."
}

variable "sg_list" {
  type        = list(string)
  description = "A list of security group names to associate with."
}

variable "subnet" {
  type        = string
  description = "A VPC Subnets ID to launch in"
}

variable "user_data" {
  type        = string
  description = "The user data to provide when launching the instance"
  default     = ""
}

variable "iam_instance_profile" {
  type        = string
  description = "The IAM Instance Profile to launch the instance with. Specified as the name of the Instance Profile."
  default     = ""
}

variable "root_volume_size" {
  type        = number
  description = "The size of the volume in gigabytes."
  default     = 12
}

variable "monitoring_enabled" {
  description = "If true, the launched EC2 instance will have detailed monitoring enabled."
  default     = true
}

variable "private_ips" {
  type        = list(string)
  description = "Private IP which will be assigned to network interface of an Instance"
  default     = []
}
