Hosting » AWS » How do I get my AWS session token?

How do I get my AWS session token?

Last updated on November 29, 2022 @ 1:30 pm

If you have an AWS session token, you can use it to sign in to AWS.

To get your session token, open cmd in your computer and enter aws sts get-session-token –duration-seconds 129600. After a few seconds, you will be able to get your session token. Fetched Session Token

PRO TIP: If you are unsure about how to get your AWS session token, it is best to contact AWS support. There are a few ways to get your session token, and the process may vary depending on your account type and settings. Getting your session token from an unauthorized source may result in your AWS account being compromised.

You can change the duration of the session token by changing the numerical value at the end of the command line. That’s it, you fetched your Session Token in just a few seconds. Now, you can use it to log in to AWS.

Morgan Bash

Morgan Bash

Technology enthusiast and Co-Founder of Women Coders SF.