A Terraform error has a stage and a scope. A missing provider installation calls for a different response from a locked state or a provider operation that failed halfway through an apply. Read the first useful diagnostic and identify what has already happened. Validation can find configuration problems before any remote action, but a valid configuration can still fail because of permissions or provider constraints.
After a partial apply, inspect current state and the remote objects before planning the remaining work. These scenarios ask you to choose a specific recovery step from the supplied evidence. They don't treat deleting state or repeatedly applying as a general repair.
A diagnostic points to the stage that needs repair. Preserve the evidence of completed operations.