setup

module
v0.0.0-...-97608e9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 4, 2020 License: Apache-2.0

README

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]

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL