You now set up required Terraform Cloud workspaces for the workshop-1-tf-live repository.
1. Navigate to Projects & workspaces page in your Terraform Cloud organization. Select the New dropdown and click Workspace.
2. Click the Select Project dropdown and then choose the workshop-1 project.
3. Click Create.
4. Click Version Control Workflow.
5. Choose GitHub.com VCS that you have added in the previous section - 3.4 Terraform Cloud General Settings.
6. Select the GitHub <your-github-username>/workshop-1-tf-live repository.
7. Name workspace dev-network
. Click Create.
8. Click on the link that navigates to your newly created workspace page.
9. Click Settings.
10. Click Version Control.
11. Name the working directory environments/dev/network
.
12. Select Only trigger runs when files in specified paths change, then Patterns. Enter the Path as environments/dev/network/**/*.tf*
. Click Add pattern.
13. Scroll down to the bottom, click Update VCS settings.
14. Do the same for image repository, database, security, routing, app, and web modules from step 1.
Remember to replace the Workspace Name, Terraform Working Directory and Path related to the module in step 7, 11 and 12, respectively. For example, with the database module, the Workspace Name would be dev-database
, the Terraform Working Directory would be environments/dev/database
and the Path would be environments/dev/database/**/*.*tf*
.