You imported a resource into the default workspace instead of `staging`. Now default has a stray object.
IntermediateTroubleshootingImport, Already Exists and State Surgery
Answer
Likely causes → Forgot terraform workspace select staging before importing.
Diagnose → terraform workspace list, then terraform state list in each.
Fix → In default: terraform state rm <addr> (only forgets, doesn't delete). In staging: import it again.
Prevent → Use separate directories/backends per environment instead of workspaces for long-lived envs, or a wrapper that requires an explicit ENV= argument.
More on Import, Already Exists and State Surgery
Apply fails with `EntityAlreadyExists: Role with name app-role already exists.`Beginner`terraform apply` on a new bucket fails with `BucketAlreadyExists`. You have never created that bucket.Beginner`Error: Resource already managed by Terraform` when running `terraform import aws_s3_bucket.logs acme-logs`.Beginner`Error: Cannot import non-existent remote object` for a resource you can see in the console.Intermediate`Error: Configuration for import target does not exist` when running `terraform plan` with an `import` block.Beginner`terraform plan -generate-config-out=generated.tf` fails with `Conflicting configuration arguments` in the generated file.Intermediate