I’m using the terraform google module to create a load balancer pointing out to a serverless endpoint group using cloud run.
It works fine for the creation. But when I try to rename the backend or change it for another one I get the following error:
Error when reading or editing RegionNetworkEndpointGroup: googleapi: Error 400: The network_endpoint_group resource ‘projects/qa-server/regions/us-central1/networkEndpointGroups/backend-game-qa’ is already being used by ‘projects/qa-server/global/backendServices/backend-game-qa’, resourceInUseByAnotherResource
So I had to remove the endpoint group from the backend directly from the console and run the console again.
Is it possible to do this directly using terraform instead?