Created
December 8, 2021 07:58
-
-
Save ThabetAmer/09e4194cef1e85fca28999d249f6cb9c to your computer and use it in GitHub Desktop.
Returns AWS account number from cli
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aws sts --profile "${PROFILE:=default}" get-caller-identity --output text --query 'Account' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment