Unfortunately, I don’t have the plan anymore. But yes, the plan looked OK and did not specify at any point that the project would be created, replaced or deleted.
Do you think this could happen for an entire project? And if did, I would expect terraform to try to recreate the project after being deleted but it hasn’t
So now I’m confused as to whether I did something wrong or terraform is at fault here. I tried looking for similar issues and did not find any so that tells me I probably did something wrong.
But there’s not a lot of resources about the import feature and not a lot of user feedback either as its a relatively new feature I believe.
Anyway, here’s the import steps I did. Maybe that can be useful?
terraform import google_project.project ProjectID
terraform import google_project_service.firestore ProjectID/firestore.googleapis.com
terraform import google_project_service.cloudbuild ProjectID/cloudbuild.googleapis.com
terraform import google_app_engine_application.app ProjectID
terraform import google_firebase_project.default ProjectID
terraform import google_firebase_web_app.basic ProjectID
terraform import google_storage_bucket.default ProjectID
terraform import google_storage_bucket_iam_binding.binding "ProjectID roles/storage.admin"