Terraform

What's the use case for using locals?

Difficulty: unrated

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

Answer

You have multiple hardcoded values that repeat themselves in different sections, but at the same time you don't want to expose them as in, allow users to override values.