Terraform

Demonstrate input variable definition with type, description and default parameters

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

variable "app_id" {
  type        = string
  description = "The id of application"
  default     = "some_value"
}

Unrelated note: variables are usually defined in their own file (vars.tf for example).