Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GCP says "Compute Engine API has not been used in project" but it is enabled already

Using GCP with terraform to create VPC's and global IP addresses, I keep getting this error.

Error creating Network: googleapi: Error 403: Access Not Configured. Compute Engine API has not been used in project XXX before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/compute.googleapis.com/overview?project=XXXthen retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry., accessNotConfigured

The Compute API has been enabled for at least a month.

I am also using a service account with owner permissions on the project.

I don't understand how to make this work. This has been going on for 3 days now.

Does anyone have any insight, because I'm completely stumped now.

like image 311
Chris Nash Avatar asked Oct 22 '19 08:10

Chris Nash


People also ask

Is Compute Engine API enabled by default?

Initially, only some APIs are enabled by default. But, when you visit the compute engine in web console, it automatically enables the API.


1 Answers

Do you have billing enabled for this project? Double check the Project ID in the error message with the project that you enabled the Compute Engine API. – John Hanley 3 mins ago

Enabling the billing API fixed this for me thank you

like image 97
Chris Nash Avatar answered Oct 24 '22 10:10

Chris Nash