In the same way that we deploy an application to several environments (dev, test, QA, and production), we also need to provision infrastructure on these different environments.
The question that often arises is how to write a maintainable and scalable Terraform configuration that would allow us to provision infrastructure for multiple environments.
To answer this question, it is important to know that there are several solutions for organizing Terraform configuration topologies that will allow for this provisioning.
In this recipe, we will look at two Terraform configuration structure topologies that will allow us to deploy an Azure infrastructure to multiple environments.