Terraform workspaces
-
terraform console – Infrastructure as Code (IaC) with Terraform
The terraform console command provides an interactive console to investigate state files, dynamically build paths, and evaluate expressions even before using them in resources. It is a potent tool that…
-
Cleaning up – Infrastructure as Code (IaC) with Terraform
Now, let’s go ahead and clean up both resource groups to avoid unnecessary charges. As we’re already within the test workspace, let’s run the following command to destroy resources within…
-
Using the Azure Storage backend – Infrastructure as Code (IaC) with Terraform
As we will end up in a chicken -or- egg situation if we use Terraform to build a backend to store its state, we will have to configure this bit…
-
Managing Terraform state – Infrastructure as Code (IaC) with Terraform
Terraform uses a state file to track what it has deployed and what resources it is managing. The state file is essential as it records all the infrastructure Terraform maintains.…
-
Terraform modules – Infrastructure as Code (IaC) with Terraform
Terraform modules are reusable, repeatable templates. They allow abstraction in provisioning infrastructure, which is much needed if your usage grows beyond just some proof of concept. HashiCorp visualizes modules as…