Terraform State Problems troubleshooting evidence
Healthy evidence: backend/workspace and lineage are explicit, lock ownership is known, state is backed up, live IDs align with addresses, fresh plan is explainable, and workload verifies. Suspicious evidence: force-unlock is used without ownership checks, raw state JSON is edited first, wrong workspace is unnoticed, or import is treated as complete configuration.
Correlated controller and target evidence can establish this Automation Troubleshooting proof path and the first observed failed boundary: configuration/revision → backend/workspace → lock → state lineage/serial → live refresh → address/resource identity → repair/import/move → fresh plan → apply if needed → live read-back → workload acceptance
It does not independently prove behavior outside the captured run, inputs, target set, evidence window or acceptance scope. Terraform/OpenTofu state repair proves consistency only for the selected backend/workspace and modeled resources; it does not prove every external dependency or workload is healthy.
Continue from the first unproven troubleshooting boundary: preserve immutable source, run/job/attempt, effective inputs and exact target IDs; correlate controller and target evidence; inspect the earliest transport, identity, authorization, dependency, rendering, operation or persistence divergence; then make the smallest justified change, read back effective target state and rerun the original workload/service acceptance check before declaring recovery.
Use this Evidence to decide the next boundary, not to skip the original test
Observation → proof/non-proof boundary → next discriminating check → minimum controlled change → repeat the original workload/test → adjacent/return-path regression check where relevant.
Capture / filter
symptom/time + source revision + trigger/principal + workflow/run/job/attempt IDs + effective inputs/variable provenance + exact target/environment/resource + runtime/tool/dependency versions + transport endpoint + authenticated identity + authorization decision + requested operation + response/task/correlation IDs + raw error/exit/HTTP status + queue/connect/execution timing + retry/timeout/cancel + partial per-target state + effective target read-back + workload acceptance + minimal change + regression/rollback result