terraform

Compare Resources From Terraform Plan

February 4, 2024  -   1 mins read time -   158 words -  garrardkitchen

terraform, powershell, azure

Here’s a link to a repo I created today, that will be used to host examples of all challenges I encounter that relate to Terraform. In this particular sample, I need to list out all those resources that will be created using Terraform where we do not have a state file. The product of this will be added to sheets, by Resource Group, in an Excel spreadsheet. Each sheet is an Azure Resource Group. ...

Terraform Get Values

July 23, 2020  -   2 mins read time -   323 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. ...