Find Your AWS Account ID
You can find your account ID in the AWS Management Console, or using the AWS CLI or AWS API. The following instructions guide you through finding your account ID and can also be found on the AWS Documentation website.
Console ⫘
Sign in to the AWS Management Console and open the IAM console. The account to which you are signed in appears at the top of the navigation pane.
Find Your AWS Account ID
AWS CLI ⫘
To view your user ID, account ID, and your user ARN:
aws sts get-caller-identity
For more information, consult this AWS CLI Command Reference.
AWS API ⫘
To view your user ID, account ID, and your user ARN:
GetCallerIdentity
For more information, consult this AWS API Reference.