Skip to content

Allow specifying auth adapter per profile #1163

@yastanotheruser

Description

@yastanotheruser

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions