-
Notifications
You must be signed in to change notification settings - Fork 559
Description
I'm currently working on a project which requires accessing AWS resources in an external account, so I need to use assume different roles for different AWS requests, and I suppose there even exist use cases which require chaining more than two roles. Currently, ExAws only allows to specify an application wide auth adapter, but this doesn't address role chaining use cases where the source profile uses a web identity token and the other roles are assumed using the source profile credentials. I think :awscli_auth_adapter could be specified in :awscli_credentials to use a different adapter for a given profile.
I think this can be addressed either by passing the auth config to ExAws.Config.awscli_auth_adapter to extract the adapter, or by creating a new adapter. In any case, I think this should be supported OOTB by ExAws.