there currently isn't, short of using different stacks and passing providers that way
b
boundless-angle-56560
06/15/2021, 2:09 PM
different stack means different pulumi programs and thus different runs right ?
b
bored-oyster-3147
06/15/2021, 2:31 PM
Alternatively with some code organization you could limit the number of times you need to explicitly pass your provider because ComponentResources enabling inheriting resource providers. But this just means that in your component resource you will be doing
ResourceOptions(parent=this)
for all resources instead
b
boundless-angle-56560
06/15/2021, 3:07 PM
I kinda like this because the parent relationship I already have in place 🙂
boundless-angle-56560
06/15/2021, 3:08 PM
It actually sounds like the ComponentResource is a good container to hold various other common settings
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.