Skip to content

DevopsArtFactory/setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

setup

Setup is a command line tool for assuming role. You can easily manage assume role and change role anytime you want.
I recommend this tool if you are managing multiple AWS account. Easily get assume credentials and paste it to your terminal.

Install

  • If you want to use setup command, then you need to set up..
  • aws configure
$ brew tap devopsartfactory/devopsart
$ brew install setup
$ setup version

How to use

First init setup.

  • Session name should be your original IAM user name in the account from which you log in through console.
$ setup init
? Your session name:  <Session name>  

Add new key

$ setup add
? Key:  dev
? Role ARN:  arn:aws:iam::1234567891011:role/XXXX

Check assume roles

$ setup list
[current role list]
dev

Use Assume role

  • You can choose one key from the list or just specify the key next to command
$ setup
? Choose account: dev
Assume Credentials copied to clipboard, please paste it.

$ setup dev
Assume Credentials copied to clipboard, please paste it.

Edit role ARN

$ setup edit
? Choose account to edit: dev
? New role ARN: <New Role ARN>

Delete role

$ setup delete
? Choose account to delete: dev
dev is deleted

$ setup ls
[current role list]