Terraform

Demonstrate how to use a local

Difficulty: unrated

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

Answer

if we defined something like this

locals {
  x = 2
}

then to use it, you have to use something like this: local.x