Skip to content

Instantly share code, notes, and snippets.

@takakabe
Created September 14, 2019 04:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takakabe/63dafa09759afed28f4f6e8f7978ad22 to your computer and use it in GitHub Desktop.
Save takakabe/63dafa09759afed28f4f6e8f7978ad22 to your computer and use it in GitHub Desktop.
Python
import boto3
session = boto3.Session(profile_name='wawawa_test_role')
sts = session.client('sts')
print(sts.get_caller_identity())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment