Click your account name or number at the top. Select My Security Credentials. If you don’t see it, just look for “My Account” here instead. Expand the Account identifiers section. The ID appears next to “AWS account ID. "

aws sts get-caller-identity –query Account –output text