Created
January 21, 2023 15:06
-
-
Save antweiss/15f645186703ae07d86eb6bdf5bdb149 to your computer and use it in GitHub Desktop.
AWS cli - get account id
This file contains hidden or 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
#assign to an env variable: | |
export ACCOUNT_ID=$(aws sts get-caller-identity --query "Account" --output text) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment