Defining Input Variables

Input variables are defined using the variable block. Each variable can have a default value, a type, a description, and other optional parameters.

variable "instance_type" {
  description = "Type of EC2 instance"
  type        = string
  default     = "t2.micro"
}