https://pulumi.com logo
Title
r

ripe-cat-40820

01/03/2023, 4:33 PM
Following https://www.pulumi.com/registry/packages/gcp/how-to-guides/gcp-ts-cloudrun/ I had to manually: 1. create the GCP project 2. enable the Google Container Registry API 3. enable the Cloud Run Admin API in order
pulumi up
succeeds. Is there no way to automate any of those 3 extra steps ?
b

billowy-army-68599

01/03/2023, 4:39 PM
No? That’s a quirk of Google cloud
s

salmon-account-74572

01/05/2023, 7:56 PM
There is a way to automate enabling the APIs, assuming your account has permissions. Have a look at the GCP version of our Pulumi Challenge here: https://www.pulumi.com/challenge/startup-in-a-box/ Scroll down to step 6 and look in the section where it says “Your
pulumi-challenge/index.ts
should not look like this” and you’ll see an example of enabling the APIs. Side note: you’ll need to use the
disableOnDestroy: false
setting to enable
pulumi destroy
to work as expected. (There’s an issue disabling the APIs.)