Terraform Academy CI/CD Lab: State Locking and Remote Backend with Manual Approval

State Locking and Remote Backend with Manual Approval

1. In the GitHub Actions modal, fork the repository.

2. In the VS Code modal, create a GitHub Actions workflow to initialize a Terraform Cloud remote backend, run terraform plan on PRs, and terraform apply on main after approval.

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

4. In the GitHub Actions modal, approve the pull request to trigger terraform apply.

5. In the Terraform Cloud modal, verify the Terraform plan, apply output, and state locking status, then use the "Complete Lab" button.

Terminal

Success!

Congrats on completing the Terraform Academy CI/CD Lab!