Skip to content

AWS Credentials Menu Utility - easily generate short-term STS credentials with an MFA token

Notifications You must be signed in to change notification settings

mccahan/aws-credentials-menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS Credentials Menu

screenshot

A MacOS menu bar utility for generating AWS STS session credentials for the AWS CLI using virtual MFA tokens.

When successfully authenticated, environment variable commands will be copied to your clipboard.

Usage

  • Launch the application
  • Click the STS menu bar icon and choose "Add Account"
  • Enter a nickname, the AWS access key ID, and the AWS secret access key, the default region to use (e.g. us-east-1), and the MFA token ARN
  • Choose the account from the STS menu bar dropdown and enter your MFA code
  • Your clipboard now contains the export AWS_... statements needed for CLI work, paste into a terminal and off you go

Why

Using short-lived AWS access credentials with profiles in ~/.aws/credentials can be a frustrating process - see "How do I use an MFA token to authenticate access to my AWS resources through the AWS CLI?" and "Using multi-factor authentication". There are techniques that can make this easier using CLI profiles or tools to manage said CLI profiles, but also complicated.

For accounts where MFA is required to use aws-cli, I just want to be able to easily get the credentials (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, and AWS_SESSION_TOKEN) into environment variables to run commands.

It's Ugly

I know, this entire project is the tail end of some elaborate yak shaving. I'm hoping this saves somebody else some annoyance, but not enough to make it pretty. If you're using this, say hello!

Icon: https://fontawesome.com/icons/key?f=sharp&s=regular

About

AWS Credentials Menu Utility - easily generate short-term STS credentials with an MFA token

Topics

Resources

Stars

Watchers

Forks