In my perspective, there are three ways to interact with the GCP:
- Cloud shell
- Cloud SDK (gcloud)
- REST APIs
Even before, I enabled the compute engine API manually, I can launch VMs using the GCP cloud console. But, I could see my project dashboard showing the API statistics. So my First question: Does the compute engine web console uses the REST API in the API manager ?
I wanted to deploy a LAMP stack using cloud launcher. According to some tutorial, we need to enable the compute Engine API under API manager. Doing so, I was able to launch the LAMP stack.
Now, I disabled the compute Engine API under API manager. I could not deploy neither using the cloud launcher nor the compute engine web console.
In Deployment manager (after initiating deploy in cloud launcher, it moves to deployment manager) I get the below error:
Update failed with following error(s) for project settings: -- Backend Provisioning Error: {compute_component FAILED_PRECONDITION: The service is currently being deactivated and deactivation must complete before activation can occur.};
Trying to re-enable the compute engine API also gives the above error!!
Trying the compute engine web console gives Enabling Compute API failed. Please retry the operation.
What could be the solution ?