Skip to content

Executes command with an AWS Role temporary credentials

License

Notifications You must be signed in to change notification settings

lusentis/assumerole-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published