`Error: Cannot import non-existent remote object` for a resource you can see in the console.
IntermediateTroubleshootingImport, Already Exists and State Surgery
Answer
Likely causes → The provider is configured for a different region or account than the console; the ID format is wrong (name vs ARN vs ID); the import targets a resource using a provider alias you didn't specify.
Diagnose →
aws sts get-caller-identity; echo $AWS_REGION
terraform providers
Check the resource's "Import" section in the provider docs for the expected ID.
Fix → Use the correct ID and the matching provider. With import blocks, set provider = aws.west when needed.
Prevent → Keep a team snippet of ID formats for frequently imported 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: 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.IntermediateAfter importing an S3 bucket, the plan still shows `+ force_destroy = false` as an update.Beginner