How to manage app engine modules in manually created gcp project?


I have a GCP project with a simple appengine create manually. Since GCP projects cannot be deleted and created with the same name, I’d prefer to continue using the same project and let TF manages the appengine module.

I found I can define a google_app_engine_standard_app_version block directly using my current appengin module. But after the first successful deployment, I found I cannot change the version_id field. If I change it, TF will first attempt to delete that service which will fail because GCP won’t allow the last version of a service to be deleted.

I can keep a dummy version of that service, but I hope there’s a better and cleaner solution.

I wonder what would be the preferred way to manage appengine modules in this situation.