Created
August 22, 2017 04:47
-
-
Save anuragmathur1/e443194f2a47abf3d1c5c439b12eadd6 to your computer and use it in GitHub Desktop.
Get the AWS account number that you are currently operating with.
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
import boto3 | |
account_number = boto3.client('sts').get_caller_identity()['Account'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment