March 19, 2025
aws, account number, get-caller-id
AWS CLI get account id
To launch some stacks, you need the AWS account ID for each account. If you don’t know the account IDs, you can get them from the AWS CLI by using the sts get-caller-identity command.
#CentralAccount ID aws sts get-caller-identity –profile CentralAccount ––query 'Account' #DevAccount ID aws sts get-caller-identity –profile DevAccount ––query 'Account'
Loading comments...