`Error: Required plugins are not installed` — `there is no package for registry.terraform.io/hashicorp/aws 5.72.1 cached in .terraform/providers`.
BeginnerTroubleshootingDependencies, Cycles and Providers
Answer
Likely causes → The lock file was updated (pulled new commits) but .terraform/providers still has the old version; or the CI job restored a stale .terraform cache.
Diagnose → ls .terraform/providers/registry.terraform.io/hashicorp/aws/
Fix → terraform init (not -upgrade; the lock file already chooses the version).
Prevent → Cache providers by lock-file hash, and don't cache the whole .terraform directory.
More on Dependencies, Cycles and Providers
`Error: Cycle: aws_security_group.app, aws_security_group.db`.Beginner`Error: Cycle: local.name_prefix, local.tags`.BeginnerA cycle appears only after adding `depends_on = [module.app]` to a module. The error lists dozens of nodes.IntermediateAdding `create_before_destroy = true` to a launch template causes `Error: Cycle: ... (destroy deposed ...)`.Advanced`terraform init` fails: `Could not retrieve the list of available versions for provider hashicorp/aws: no available releases match the given constraints ~> 4.0, >= 5.30.0`.Intermediate`Error: Inconsistent dependency lock file` with `locked version selection 5.31.0 doesn't match the updated version constraints ">= 5.40.0"`.Beginner