Belajar Sendiri

Commands

aws sts get-caller-identity

aws sts get-caller-identity [--profile <name>]

Risk: Safe

What it does

Shows who you are right now: your account number and your ARN.

When to use it

Before any change. Check you are not root, and in the right account.

Example

$ aws sts get-caller-identity

Ask AWS: who am I?

$ aws sts get-caller-identity --profile my-dev-profile

The same, for one profile.