Skip to content

Commit

Permalink
Get aws account name
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleDolezal committed Jul 20, 2023
1 parent b5ec700 commit 1c70a07
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
Bucket='chn-ghost-buses-public'
))

print("The user is:")
print(client.get_caller_identity().get('Account'))

s3 = boto3.resource(
's3',
region_name='us-east-1',
Expand Down

0 comments on commit 1c70a07

Please sign in to comment.