I'm working with the <Github provider> &amp; tryin...
# general
r
I'm working with the Github provider & trying to build a stack that manages all of our https://www.pulumi.com/registry/packages/github/api-docs/enterpriseorganization/ resources from a single stack. In terraform I can just about manage this with explicit provider blocks in the org module & passing in a slug to be used in each instance of the provider. In pulumi, the org is set via
GITHUB_OWNER
or
pulumi config set github:owner YYYYYYYYYYYYYY
, is there a way to do this from inside a pulumi stack?
b
you can use the pulumi config set method, is that not working?
each time you do a config set, it’s set at the stack level
r
I didn't know there was a config set method, https://www.pulumi.com/docs/concepts/config/#code only shows Get & Require, am I looking in the wrong place?
b
i’m perhaps confused by what you’re trying to do
r
imagine we have a map of github orgs we want configured in a particular way, from a single stack, and each org should have a repo called admin, when pulumi creates the repo it will do it in the org that created the PAT or the org set via
pulumi config set github:owner YYYYYYYYYYYYYY
, but I can only set that once for the stack.
b
so you want to target different github org inside a single stack?
r
yeah
b
r
ah!!! Thank you!
beer['ghent']++
😉