How to get the account id of your AWS account

Logon from the AWS Management Console.

Expand the dropdown next to your username on the right top corner.

You will find the account ID next to ‘My Account’ in the dropdown menu.

See also  How to get the column names of a table in Redshift