Skip to content

Support creating AWS profile named according to the AWS account alias / number #293

@nimrodkor

Description

@nimrodkor

We have a few AWS accounts in our org, and want to be able to assume role into each one of them. The name of the role is long when you use the --profile flag for every command, so we thought it would be easier to use just the account alias / number instead of the acc-role option which gives us a long result.

Expected Behavior

after setting the cred_profile parameter to acc, and the account alias is acme3:

$ gimme-aws-creds --profile acme
Saving arn:aws:iam::000000000000:role/dev as acme3
Written profile acme3 to /path/to/creds

Current Behavior

This isn't possible currently

Possible Solution

Add another option to this flag

PR incoming :)

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