Ravi Sir's Cards › AWS
assume-role from CLI
This revision card explains assume-role from CLI. It starts from the need that admin rights for 15 minutes are safer than forever. It describes assume-role returns AccessKeyId, Secret and SessionToken. The how-to section notes export all three, then get-caller-identity. An example on the card is unset the three variables to go back.
Read card text
What this card says
Why do we need it?
Admin rights for 15 minutes are safer than forever.
What is it?
assume-role returns AccessKeyId, Secret and SessionToken.
ASIA... = temporary
How to do it
Export all three, then get-caller-identity.
Example
Unset the three variables to go back.