CICD-231 · Terraform installation
Encyclopedia · Terraform and infrastructure as code · All snippets
Previous · CICD-230 · Next · CICD-232
1. Where it fits
- Placement .github/workflows/infra.yml step.
- Prerequisites trusted Linux runner, Terraform CLI, reviewed IaC and a disposable state for writes.
- Platforms github-actions.
2. Copy the snippet
yaml
uses: hashicorp/setup-terraform@v3
with:
terraform_version: 1.10.5
terraform_wrapper: false3. How it works
This invokes an action at step scope or a reusable workflow at job scope. The reference and declared inputs must match that contract.
4. Verify the result
Pin an approved CLI release and verify terraform version. Update the example version through your normal dependency policy.
Validation syntax-validated (YAML parse). Status definitions.