Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add whoami command #85

Merged
merged 2 commits into from
Aug 27, 2021
Merged

feat: Add whoami command #85

merged 2 commits into from
Aug 27, 2021

Conversation

patricksanders
Copy link
Contributor

@patricksanders patricksanders commented Aug 26, 2021

Add a weep whoami command to give users a handy and enriched alias to aws sts get-caller-identity, inspired by benkehoe/aws-whoami. Users can optionally configure SWAG to include the account name in the output.

Output with SWAG:

$ weep whoami
Role:    superAwesomeRole
Account: sweetAccount (123456789012)
ARN:     arn:aws:sts::123456789012:assumed-role/superAwesomeRole/coolSessionName
UserId:  AROAXXXXXXXXXXXXXX:coolSessionName

Output without SWAG:

$ weep whoami
Role:    superAwesomeRole
Account: 123456789012
ARN:     arn:aws:sts::123456789012:assumed-role/superAwesomeRole/coolSessionName
UserId:  AROAXXXXXXXXXXXXXX:coolSessionName

Closes #79

@patricksanders patricksanders merged commit 8912fd2 into master Aug 27, 2021
@patricksanders patricksanders deleted the feat/whoami branch August 27, 2021 17:34
nsiow pushed a commit to nsiow/weep that referenced this pull request Aug 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add whoami command
1 participant