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

10/22/2019

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.

-- Chris Nash
google-cloud-platform
google-compute-engine
google-kubernetes-engine

1 Answer

10/22/2019

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

-- Chris Nash
Source: StackOverflow