3.2.0 • Published 6 years ago
assumerole-cli v3.2.0
assumerole-cli
Install
npm install -g assumerole-cliUsage
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 -fAn 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