# Error: Resource instance has been orphaned - it is no longer in the configuration but is tracked in state

- **ID:** `terraform/terraform-plan-with-orphan-resources`
- **Domain:** terraform
- **Category:** resource_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

A resource was removed from Terraform configuration but its state entry remains, causing plan to show destruction.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| Terraform v1.2+ | active | — | — |

## Workarounds

1. **Run terraform state rm <resource_address> to remove the orphaned resource from state without destroying it** (95% success)
   ```
   Run terraform state rm <resource_address> to remove the orphaned resource from state without destroying it
   ```
2. **Add the resource back to configuration and run terraform apply to reconcile state** (85% success)
   ```
   Add the resource back to configuration and run terraform apply to reconcile state
   ```

## Dead Ends

- **** — Destroys the resource unintentionally; may cause data loss. (90% fail)
- **** — State file corruption risk; terraform state rm is safer. (95% fail)
