Hi all, when working two resource providers (two A...
# general
b
Hi all, when working two resource providers (two AWS accounts), is there some better way (less boiler plate) to work with two resoure providers then having to pass ResourceOptions(provider=aws_acc) to every single resource I need in my pulumi program ?
b
there currently isn't, short of using different stacks and passing providers that way
b
different stack means different pulumi programs and thus different runs right ?
b
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
I kinda like this because the parent relationship I already have in place 🙂
It actually sounds like the ComponentResource is a good container to hold various other common settings