https://pulumi.com logo
Title
c

curved-ghost-20494

06/09/2020, 3:58 PM
Hi There! I'm trying to configure continuous deployment with one GCP project per stack, deployed via Github Actions. I'm finding it bit of a pickle trying to figure out where I should store Service Account credentials, and where to configure the logic to switch between them depending on the project. Does anyone know of any examples or literature on this subject?
d

damp-elephant-82829

06/24/2020, 9:03 AM
@curved-ghost-20494 did you manage to?
c

curved-ghost-20494

06/24/2020, 9:03 AM
No, there's a step missing in the Pulumi Actions docker image to authenticate GCP with docker
It was fixed in this PR
but hasn't been released yet:
If you want to use any part of GCP that utilises docker images AND Github Actions as your CI, (and pulumi), you're stuck
d

damp-elephant-82829

06/24/2020, 9:05 AM
I have no problem with github actions, I am not using them
However I can’t create one gcp project per stack automatically from pulumi, because the python provider doesn’t seem to include a method for that
am I wrong?
c

curved-ghost-20494

06/24/2020, 9:17 AM
as far as I know you have to create the projects before setting up pulumi stacks that map to them
pulumi new gcp-python
on CL requires project name as an input no?
d

damp-elephant-82829

06/24/2020, 9:21 AM
sorry, I meant that in CI/CD pipeline I want to create ephemeral gcp rpojects
c

curved-ghost-20494

06/28/2020, 10:31 AM
Ah for testing PR apps sort of thing?
Not entirely sure you can do that
you can with Terraform.. so there should be a pulumi method
d

damp-elephant-82829

06/28/2020, 11:07 AM
@curved-ghost-20494 I can share with you some of the things I am doing now
I have found out, although I still have some questions