Is there any way of accessing a stack configuration value in a Dynamic Provider? For example a DB access key?
03/17/2021, 11:52 PM
I think it makes more sense that this would be an input of your provider, no?
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.
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.