assumerole-cli

3.2.0 • Public • Published

assumerole-cli

npm version

Install

npm install -g assumerole-cli

Usage

Make sure that you have valid AWS credentials and that you can assume the target role with those credentials.

# Specify an ARN: 
assumerole --role-arn arn:aws:iam::00000000000:role/MyRole
 
# Specify Account Id and Role Name: 
assumerole --account-id 00000000000 --role-name MyRole
 
# Specify an command: 
assumerole --role-arn arn:aws:iam::00000000000:role/MyRole -c aws s3 ls
 
# Specify an command with --arguments: 
assumerole --role-arn arn:aws:iam::00000000000:role/MyRole -c bash -- --version
 
# Use federated file config in ~/.assumerole.json: 
assumerole -f

An optional -c <command> can be provided. By default, assumerole will spawn a new shell (defaulting to $SHELL).

See assumerole --help for full usage instructions.

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i assumerole-cli

Weekly Downloads

11

Version

3.2.0

License

MIT

Unpacked Size

27.9 kB

Total Files

20

Last publish

Collaborators

  • lusentis