Skip to content

panchgonzalez/aws-sesh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sesh

AWS MFA session manager

Install

pip install aws-sesh

Setup

mkdir ~/.aws
cd ~/.aws
mkdir profiles

For each profile save the following:

  1. accessKeys.csv: AWS access keys
  2. device.txt: AWS MFA device

The final directory should look like this

.aws
├── config
├── credentials
└── profiles
    ├── default
    │   ├── accessKeys.csv
    │   └── device.txt
    ├── foo
    │   ├── accessKeys.csv
    │   └── device.txt
    └── bar
        ├── accessKeys.csv
        └── device.txt

Usage

Create default credentials with profiles

$ sesh

Create MFA session for default profile

$ sesh --token 123456

Create MFA session for foo profile

$ sesh --profile foo --token 123456