https://pulumi.com logo
#google-cloud
Title
# google-cloud
m

modern-animal-54928

05/02/2021, 9:49 PM
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

better-actor-92669

05/03/2021, 4:09 PM
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

modern-animal-54928

05/04/2021, 2:20 PM
OK so basically you are running a shell script for that
thanks !