Skip to content

ay4toh5i/assume-role-mfa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to use

Install

$ go get https://github.com/HighGreat/assume-role-mfa

Prepare aws configuration

...

[profile example-config]
source_profile = default
role_arn = arn:aws:iam::***:role/***
mfa_serial = arn:aws:iam::***:mfa/***

Run command

$ AWS_PROFILE=default assume-role-mfa --profile example --duration $((60*60)) --session_name john
$ export AWS_PROFILE=example

About

aws assume-role with mfa cli tool

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages