Skip to content

Instantly share code, notes, and snippets.

@tecmaverick
Last active August 30, 2018 04:46
Show Gist options
  • Save tecmaverick/d45b7a81c2bd5dbbcdaf8f369450a899 to your computer and use it in GitHub Desktop.
Save tecmaverick/d45b7a81c2bd5dbbcdaf8f369450a899 to your computer and use it in GitHub Desktop.
Python boto3 script to view supported regions for an AWS service
#Before executing the script ensure you have the latest version of AWS CLI installed
#pip install awscli --upgrade
import boto3
s = boto3.Session()
print s.get_available_regions("lambda")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment