Skip to content

Instantly share code, notes, and snippets.

@nitinsatish
Created January 13, 2022 08:24
Show Gist options
  • Save nitinsatish/329e9120ea54c4f66a12d55d789461a6 to your computer and use it in GitHub Desktop.
Save nitinsatish/329e9120ea54c4f66a12d55d789461a6 to your computer and use it in GitHub Desktop.
[AWS regions]#aws

Python code

regions = [r['RegionName'] for r in boto3.client('ec2').describe_regions()['Regions']]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment