How to get the canonical id of your AWS account

From AWS Command Line Interface, run the below command to get the canonical id of your AWS account.

aws s3api list-buckets --query Owner.ID

See also  How to create snapshot of an EBS Volume