AWS CLISetup

aws sts get-caller-identity

Shows which AWS identity (account/user/role) the current credentials belong to — the fastest way to check what you're authenticated as.

Syntax

aws sts get-caller-identity

Examples

Check the active identity

aws sts get-caller-identity

Related commands