Skip to content

Instantly share code, notes, and snippets.

@packetchef
Created March 20, 2020 18:21
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 packetchef/62e3e3f5b3ab30c4a3c5e48619807661 to your computer and use it in GitHub Desktop.
Save packetchef/62e3e3f5b3ab30c4a3c5e48619807661 to your computer and use it in GitHub Desktop.
Return a list of configured profiles
import boto3
available_profiles = boto3.session.Session().available_profiles
# Should return a list of configured profiles
print(available_profiles)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment