This message was deleted.
# general
s
This message was deleted.
a
There is a "stables" list but we have no clue how to use it with credential providers.
l
I do this but I the providers don't change so the problem doesn't arise. My approach is to use define all the role-based profiles externally (in ~/.aws/config and ~/.aws/credentials), and my code in Pulumi builds the providers using the region and profile properties only, rather than assumeRole. It choose the values for region and profile based on the stack name.
Are you choosing the profile / assumeRule values based on StackReferences or some other Output value? So long as the parameters to your aws.Profile are deterministic, you shouldn't be seeing providers that change and cause problems...
Output values (like StackReferences) aren't determinstic even if they're constant (at least, Pulumi can't assume they're deterministic). So that would cause problems.
a
Hey @little-cartoon-10569, actually we are using Pulumi with Alicloud, but I think vendor doesn't matter here. We have introduced a service container like approach to retrieve proper client object inside our Dynamic Resource Provider code by calling an alias name from inside of the provider. This generates issue as, with instance role, credentials are different every time. For now we have mitigated the problem by adding "___provider" to "ignore__changes" array as in "opts"
👍 1