Skip to content

blob/s3: allow to specify profile via query string #2865

@ekini

Description

@ekini

Problem

It would be nice to be able to specify AWS profile via query string, like ?profile=my_profile.

At the moment the only possible way to do it is via an env var AWS_PROFILE (or AWS_DEFAULT_PROFILE), which is very inconvenient and doesn't work well if you have multiple AWS accounts and multiple projects.

Solution

It won't require any SDK updates, just a couple of code changes.
As per the doc, it will need Profile: xxx here.

The profile can be parsed in here with renaming the ConfigFromURLParams function to something more appropriate like SessionFromURLParams .

I'd be keen to make a PR if the idea sounds good.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions