Terraform Academy CI/CD Lab: Branch Protection + Merge Guard

Enforce Branch Protection and Merge Guard

1. In the GitHub Actions modal, clone the repository and configure branch protection for the main branch.

2. In the VS Code modal, create a GitHub Actions workflow to run terraform plan on PRs.

3. In the GitHub Actions modal, commit your changes and create a pull request.

4. In the Terraform Cloud modal, verify the Terraform plan output.

5. In the GitHub Actions modal, merge the pull request, or use the "Complete Lab" button in the Terraform Cloud modal after viewing the plan.

Terminal

Success!

Congrats on completing the Terraform Academy CI/CD Lab!