Interview Prep/Terraform/Partial Applies, Version Mismatches and CI Failures

`terraform output -raw vpc_id` in a GitHub Actions step returns extra text like `::debug::` lines or the command echo.

IntermediateTroubleshootingPartial Applies, Version Mismatches and CI Failures
Answer

Likely causes → hashicorp/setup-terraform installs a wrapper script by default that captures stdout/stderr into step outputs and adds noise when you capture output in shell.

Diagnose → which terraform points to the wrapper script.

Fix →

- uses: hashicorp/setup-terraform@v3
  with:
    terraform_version: 1.9.8
    terraform_wrapper: false

Prevent → Disable the wrapper in shared workflows that parse Terraform output.

All Terraform questions

More on Partial Applies, Version Mismatches and CI Failures