From the course: Introduction to Terraform on Azure

Unlock the full course today

Join today to access over 24,400 courses taught by industry experts.

Terraform workspaces

Terraform workspaces

- [Instructor] Next, let's take a look at common commands to manage workspaces within your Terraform terminal. So what exactly are Terraform command line interface workspaces? Workspaces are a way to create separate instances of state data, which you'll learn a little bit more about state data in a later module within the same working directory. So these are different from Terraform Cloud workspaces. So Terraform Cloud workspaces create separate working directories, while with the Terraform command line interface workspaces, you're working within the same directory, but it's creating separate files. For this demo, we'll be working in the Terraform CLI workspaces. In Terraform, most commands only work within the current selected workspace. And since most Terraform resources don't require unique names as part of the configuration, it's common to use the same Terraform configurations for multiple workspaces or environment.…

Contents