🟪 Terraform errors

Terraform and OpenTofu errors — state locks, providers, lock files, references and plans.

CodeErrorWhat it means
Error acquiring the state lock Terraform: Error: Error acquiring the state lock — ConditionalCheckFailedException / state blob is already locked Another Terraform run holds the state lock, or a previous run crashed and left the lock behind.
Inconsistent dependency lock file Terraform: Error: Inconsistent dependency lock file — provider x: required by this configuration but no version is selected The .terraform.lock.hcl file doesn’t match the providers/versions your configuration now requires, or init wa…
Reference to undeclared resource Terraform: Error: Reference to undeclared resource / Reference to undeclared input variable The configuration refers to a resource, data source, variable or module output that isn’t declared in this mo…