Answers for "terraform define variable"

2

terraform define variable

variable "image_id" {
  type        = string
  description = "The id of the machine image (AMI) to use for the server."
}

resource "some_resource" "resource_name" {
image = var.image_id
}
Posted by: Guest on March-30-2021

Browse Popular Code Answers by Language