aws-sts
Quick way to get AWS Account number from the AWS CLI tools?
You can get the account number from the Secure Token Service subcommand get-caller-identity using the following: aws sts get-caller-identity –query Account –output text
You can get the account number from the Secure Token Service subcommand get-caller-identity using the following: aws sts get-caller-identity –query Account –output text