Skip to content

Instantly share code, notes, and snippets.

@pysysops
Last active June 25, 2019 18:12
Show Gist options
  • Save pysysops/5a4cf147f905a488ce1d57a626176ca5 to your computer and use it in GitHub Desktop.
Save pysysops/5a4cf147f905a488ce1d57a626176ca5 to your computer and use it in GitHub Desktop.
installing aws-assume-role (https://github.com/scalefactory/aws-assume-role) and functions to ease interaction.
gem install aws_assume_role
echo 'awsassume () { eval `aws-assume-role environment set -p $@`; }' >> ~/.bashrc
echo 'awsconsole () { eval `aws-assume-role console -p $@`; }' >> ~/.bashrc
@pysysops
Copy link
Author

Now (after configuration), you can assume various roles across accounts with:

awsassume <<profile>>

and open the AWS console with:

awsconsole <<profile>>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment