Managing workspaces in Terraform Cloud
One of the main components of Terraform Cloud is a workspace. TFC workspaces enable users to organize the provisioning of infrastructure components inside logical groups or components. For example, we can decouple Terraform components to have one component for provisioning the network and a second component to provision an Azure VM by creating two TFC workspaces in Terraform Cloud.
In addition to workspaces, we can create TFC projects to organize multiple TFC workspaces inside.
Very important note: Be careful not to confuse the Terraform CLI workspaces we learned about in Chapter 6, Applying a Basic Terraform Workflow, in the recipe Using workspaces for managing environments, with the TFC workspaces that we cover in this recipe.
For more details on the differences, read the documentation here: https://developer.hashicorp.com/terraform/cloud-docs/workspaces#terraform-cloud-vs-terraform-cli-workspaces.
Let’s...