The type or name is misspelt, or the resource was renamed
CommonThe reference and the resource block disagree by a character, or the block was renamed and some references were not updated.
Confirm
grep -rn 'resource "TYPE"' --include='*.tf' .
The exact name the resource block uses. A match in a subdirectory is in a different module: see the next cause
Fix
- Correct the reference to match the block.
- If you renamed a resource that already exists, also add a moved block from the old address to the new one (it tells Terraform the existing object now has a new address), or the next plan destroys and recreates it.