Terraform snippets

Setting Variables

variable "prod_tunnel" {
  default = "true"
}
 
 
#AWS TAGS
locals {
  common_tags = {
    constructby = "Terraform"
    cost.       = "AC2345"
    email       = "support@example.com"
    environment = "production"
  }
}

Using Variables

split_tunnel   = "${prod_tunnel}"
 
 
tags           = merge(local.common_tags, { Name = "Endpoint-Prod" })
 
terraform/terraform-examples2.txt · Last modified: 09/03/2022 14:52 by andrew