AWS – How to Obtain a Session Token

amazon-web-services

How can one obtain a AWS session token on the AWS website?

(I know how to do it through CLI, but sometimes getting it from the website could be handy)

Best Answer

This isn't possible.

Session tokens and their accompanying temporary key and secret are only available from Security Token Service (STS) via API calls that the console does not offer a way to access.

The only ways to obtain tokens and credentials are those mentioned in the IAM User Guide -- CLI, Powershell, and SDKs, all of which call the STS API, which you can also call with third-party code.