This message was deleted.
# general
s
This message was deleted.
b
I've never done this but I would try declaring a
azureProvider
and an
awsProvider
and I would make sure to always pass them to the appropriate resource - is that what you're doing?
c
Here is an kubernetes-ts-multicloud example that has multiple different providers that you can view that will help out.
👀 1
h
thanks I will take a look at that
l
I've done it, it works a treat. You use exactly the same technique to deploy to different AWS regions.
You need to be diligent about passing providers around. While resources inherit providers from their parent resources, I've found it's a good idea (from a code clarity point of view) to not rely on this, and instead pass the correct provider to every resource, always.
If nothing else, this ensures that resources still work even if you forget to set their parent 🙂
b
resources inherit providers from their parent resources
I actually didn't know this. My component resources have always just passed the provider all the way down 🤦‍♂️