https://pulumi.com logo
d

dry-pilot-73614

09/14/2018, 10:58 PM
I'm getting errors provisioning gcp resources, e.g.
Copy code
Plan apply failed: Error, failed to create instance unleash: googleapi: Error 403: Access Not Configured. Cloud SQL Admin API has not been used in project 563584335869 before or it is disabled. Enable it by visiting <https://console.developers.google.com/apis/api/sqladmin.googleapis.com/overview?project=563584335869> then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry., accessNotConfigured
I do have sqladmin.googleapis.com enabled, but 563584335869 is not my project.
I have my
gcp:project
config value set to my project. I have no idea where 563584335869 is coming from.
c

creamy-potato-29402

09/14/2018, 11:45 PM
cc @white-balloon-205
and perhaps @microscopic-florist-22719??
w

white-balloon-205

09/14/2018, 11:54 PM
That is certainly surprising that this would report any project other than the one you are logged in as. Are you sure that isn't the "Project number" associated with your account? BTW - I believe you can automate registration via something like the following (I have not tried this myself):
Copy code
let enablesqladmin = new gcp.projects.Service("sqladmin", {
  service: "<http://cloudbuild.googleapis.com|cloudbuild.googleapis.com>",
  disableOnDestroy: false,
});
d

dry-pilot-73614

09/14/2018, 11:57 PM
It’s not the project number for any of my projects.
I figured out that 563584335869 is the project number for Firebase CLI (which I have installed). Running
gcloud auth application-default login
fixed it.
c

creamy-potato-29402

09/15/2018, 8:25 PM
fascinating.
@dry-pilot-73614 is there an issue open for this? Other people googling later may find that useful
even though it’s not technically a pulumi bug
d

dry-pilot-73614

09/15/2018, 8:37 PM
No, where would be a good place to open one? Googling that number, I found other people with the same problem in different contexts, but didn’t see any posts with a diagnosis or solution.
I created (and closed) an issue for posterity. https://github.com/pulumi/pulumi-gcp/issues/46
w

white-balloon-205

09/17/2018, 3:18 PM
Thanks!