Migrating Homebrew Installations: Restoring Without the Original Computer

Have you ever been faced with the problem of trying to restore/migrate your homebrew packages between MacOS installations without access to the original computer? I was recently faced with this, and managed to solve this issue and restore from a timemachine backup without access to the original machine. How Homebrew Stores Packages: Homebrew installs all […]

Share this content:

Migrating Homebrew Installations: Restoring Without the Original Computer Read More »

Creating Terraform Conditional resource based on mapped key.

Let’s create a conditional resource in Terraform based on a mapped key. Following post used for reference: https://medium.com/@business_99069/terraform-conditional-resources-based-on-a-map-key-a37fd329d3a1 Start with a map data structure in our variable.tfvars: Create a conditional azurerm_network_interface_backend_address_pool_assocation resource based on the value of the “docker_role” key in the above map. The lookup used in the logic below will only return true

Share this content:

Creating Terraform Conditional resource based on mapped key. Read More »

Dealing with conditional Terraform Resources on Azure using Availability Sets

Sometimes when you are defining infrastructure with Terraform you run into issues that start to require conditional resources. Consider the following problem: You have a virtual machine cluster running in 3 environments in Azure, Test Staging Production These 3 environments are made up of the following resources — Azure Virtual Machine Resource Azure Availability Set

Share this content:

Dealing with conditional Terraform Resources on Azure using Availability Sets Read More »