Pcornel
Automation · Terraform / OpenTofu

Providers

Cheat sheet · https://pcornel.dk/topic.php?topic=5442

Back to the Topic

Answer

Terraform/OpenTofu providers are separately versioned plugins that supply resource/data-source schemas and implement API operations against target systems.

Remember

  • Provider installed ≠ provider configured correctly; source address, version, alias, credentials and target endpoint are separate boundaries.
  • Terraform/OpenTofu command success ≠ target workload health; provider operations and application acceptance are separate proof boundaries.
  • The same repository ≠ same run when binary, provider/module versions, backend/workspace, variables, credentials or lock selections differ.
  • Treat Terraform and OpenTofu as separate implementations: verify behavior against the pinned tool and dependency versions rather than assuming interchangeability.

First checks

  • terraform providers — providers used
  • cat .terraform.lock.hcl — locked versions
  • Provider authentication (env, workload identity) — credentials

Verify in this order

required_providers → init → plugin → API

Where it usually breaks

Provider installed ≠ provider configured correctly; source address, version, alias, credentials and target endpoint are separate boundaries. The proof boundary ends where provider/state evidence stops and target-domain acceptance begins.

Configuration/input → graph/state refresh → plan → provider API request → provider terminal result → resource read-back → effective service state → workload.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5442

Confirmation

Confirm action

Continue?