Get temporary credentials for an IAM user.
Section: STS Identity and Sessions
Request a session token
bash
bash
aws sts get-session-token --duration-seconds 3600Explanation
Often used with MFA-enforced IAM user workflows.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing STS Identity and Sessions