Meanwhile I am facing a strange behaviour : I am c...
# google-cloud
m
Meanwhile I am facing a strange behaviour : I am creating a project, and I am trying to launch an vm inside. But everytime I get an error about a missing API
Copy code
Error creating Address: googleapi: Error 403: 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=XXX> then retry.
Can you confirm me that adding some services to that project is enough ? I am adding the following ones:
Copy code
services=["<http://cloudapis.googleapis.com|cloudapis.googleapis.com>", "<http://compute.googleapis.com|compute.googleapis.com>",  "<http://logging.googleapis.com|logging.googleapis.com>", "monitori    <http://ng.googleapis.com|ng.googleapis.com>","<http://cloudbilling.googleapis.com|cloudbilling.googleapis.com>"]
Thanks !
b
I use a "gcloud_init" script before enabling all API's that I need via Pulumi, because sometimes GCP raises the error that you have shared
Copy code
gcloud services enable <http://cloudresourcemanager.googleapis.com|cloudresourcemanager.googleapis.com> --project "${GCP_PROJECT}"
gcloud services enable <http://compute.googleapis.com|compute.googleapis.com> --project "${GCP_PROJECT}"
m
OK so basically you are running a shell script for that
thanks !