Answers for "how many ways you can create the varible in terraform"

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
0

how many ways you can create the varible in terraform

terraform apply -var-file="assign.tfvars"
Posted by: Guest on May-10-2021

Code answers related to "how many ways you can create the varible in terraform"

Browse Popular Code Answers by Language