lusentis / assumerole-cli

Executes command with an AWS Role temporary credentials

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Executes command with an AWS Role temporary credentials

License:MIT License


Languages

Language:JavaScript 100.0%