hi guys, i am in the process of creating a componentResouce using go, in this component, i need to use multiple providers, i understand the fact that we can pass the provider map, i am assume the map key is the package name? however for our setup, we have 2 roles for managing aws resource, one for iam, another one for everything else. so how can i pass 2 aws provider to the provider map so that the child can use the appropriate provider?
I am not sure if there are neater options, but in this case the simplest thing to do might be to pass the two AWS providers as explicit inputs to your component resource. Something like:
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.