Digger plan failed in CI
Digger orchestrates Terraform inside your CI (GitHub Actions and others) based on digger.yml projects. A plan failure is the wrapped terraform plan exiting non-zero. The Digger PR comment (and the Action log) carries the real Terraform error.
What this error means
A Digger run reports a failed plan for a project, and the PR comment or Action log shows a Terraform error such as a backend or provider failure. The Digger step exits non-zero.
Digger run failed for project "prod"
Error: Failed to load state: AccessDenied: User is not authorized to perform:
s3:GetObject on the backend bucketCommon causes
The wrapped terraform plan failed
Digger runs Terraform; the failure is a standard plan error (backend auth, provider, HCL) surfaced through the run.
Project or dir misconfiguration in digger.yml
A wrong dir, workspace, or terragrunt setting in digger.yml makes the plan run against the wrong code and fail.
How to fix it
Read the plan output and fix Terraform
- Open the Digger comment or the Action log and find the first
Error:line. - Fix it as a normal Terraform plan error (credentials, backend, config).
- Comment
digger planto re-run for that project.
digger plan -p prodCorrect the project definition
If the plan ran in the wrong place, fix the project's dir/workspace in digger.yml.
projects:
- name: prod
dir: prodHow to prevent it
- Keep
digger.ymlproject dirs accurate. - Provide backend/provider credentials to the Digger step.
- Fix Terraform errors in the plan output, not the orchestrator.