From the course: Developing Infrastructure as Code with Terraform

Unlock this course with a free trial

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

HCP Terraform workspaces

HCP Terraform workspaces

- All right, so now we're going to talk about deploying a live repository. So in HCP Terraform, these are referred to as workspaces. And a workspace is simply an environment that is to be deployed and references Terraform code, generally from a repository. There are other ways of doing it, like an API-based run. But for our case, we're just going to configure a repository to integrate, and we're going to look at some of the workflows associated with doing that. So let's start out by connecting our HCP Terraform to our live Terraform repo. So we're going to go back to the Projects menu. And we already created this Examples project. So we're going to go ahead and click on that. And now we need to add a workspace. Okay, so we select New, Workspace. And we're going to select a version control workflow. So this means that we are integrating Terraform Cloud with our Git provider, which is GitHub in my case, but it could have been one of the other ones that we looked at before. But some of…

Contents