rerole is a menu wrapper for
- Install assume-role
- Globally install
$ npm i -g @with-heart/rerole
- Use the
sourcecommand found in the postinstall message or by running
rerole showCommand(note: rerole will not work if this step is not completed)
rerole command to select your desired profile from a menu created from the profiles (and default, if it exists) found in your
~/.aws/config file. This profile is then used to run the command
eval $(assume-role $selected_role), which is needed to add the
assume-role environment variables to the current shell.
assume-role readme for more information.