`Error: resource aws_xyz doesn't support import`.
IntermediateTroubleshootingImport, Already Exists and State Surgery
Answer
Likely causes → Some resources have no read API or the provider never implemented import (common for "action" resources and some older ones).
Diagnose → Check the provider docs and changelog; a newer provider version may add import support.
Fix → Upgrade the provider if support was added. Otherwise recreate under Terraform (planned window), or manage it outside Terraform and reference it via a data source.
Prevent → Prefer resources that support import when choosing between equivalent resource types.
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