terraform

Terraform Get Values

July 23, 2020  -   2 mins read time -   322 words -  garrardkitchen

terraform

With not wanting to have hard coded values pushed to a project’s code repository, and an antiquated way to derive Azure Service Principal credentials, I set about exploring ways on accomplishing this with this in mind using Terraform. Attempt 1 Here ins my first attempt, I load all permutations into map variables. I use an environment variable as an indexer to the appropriate map value: provider "azurerm" { version = "=2. ...