aws sts

Security Token Service

low risk

interactive breakdown — edit the command and press Explain
$ 
⚠ Risks & cautions
What it does

get-caller-identity shows the account/user you act as; assume-role returns temporary credentials.

Examples
aws sts get-caller-identityWho am I? · explain & risk-check →
aws sts assume-role --role-arn arn --role-session-name xTemporary credentials · explain & risk-check →
Related
aws
Open the full explainer →More in AWS, Azure & GCP CLIs

Reference text is hand-written and may be incomplete — check man aws for your version. Test destructive commands on a non-production system first.