Terraform Cloud Workspaces

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.

0001

2. Click the Select Project dropdown and then choose the workshop-1 project.

0002

3. Click Create.

0003

4. Click Version Control Workflow.

0004

5. Choose GitHub.com VCS that you have added in the previous section - 3.4 Terraform Cloud General Settings.

0005

6. Select the GitHub <your-github-username>/workshop-1-tf-live repository.

0006

7. Name workspace dev-network. Click Create.

0007

8. Click on the link that navigates to your newly created workspace page.

0008

9. Click Settings.

0009

10. Click Version Control.

00010

11. Name the working directory environments/dev/network.

00011

12. Select Only trigger runs when files in specified paths change, then Patterns. Enter the Path as environments/dev/network/**/*.tf*. Click Add pattern.

00012

13. Scroll down to the bottom, click Update VCS settings.

00013

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*.