https://pulumi.com logo
Title
b

busy-apartment-9626

03/17/2021, 10:20 PM
Is there any way of accessing a stack configuration value in a Dynamic Provider? For example a DB access key?
b

bored-oyster-3147

03/17/2021, 11:52 PM
I think it makes more sense that this would be an input of your provider, no?
b

busy-apartment-9626

03/18/2021, 12:11 AM
I could for one provider, but if I had a number of providers for one service denoting different resources, it's a little unwieldy to keep providing an access key to every resource. I believe other projects just bypassed Pulumi configurations and opted to use environment variables, guess I should emulate that.
b

bored-oyster-3147

03/18/2021, 12:50 AM
yea that would be the only other route. You could write it like an AWS provider, where it defaults to environment variables / implied auth and any provided inputs simply overwrite the defaults.