https://pulumi.com logo
Title
w

witty-ice-69000

08/28/2020, 3:16 PM
I have an AWS/pulumi process that is configured to acquire a specific role and then pass that aws.Provider around to be incorporated using
ResourceOptions
for authenticating resource creation. Having to constantly remember to apply the resource options to correctly acquire the provider is both tedious and error prone. Is there a way I can declare the assume role provider to be the default provider, or at least the default provider within a specific scope to eliminate this toil?
l

little-cartoon-10569

08/28/2020, 9:24 PM
Creating a resource with an opts of
{ parent: otherResource }
uses the parent's
provider
by default. That can help.