Problem scenario
You want to list all the VPCs in your account. You are using Boto3 and Python 3. What do you do?
Solution
Run this four-line program:
import boto3
client boto3.client('ec2')
response = client.describe_vpcs()
print(response)
Citation: The above was adapted from https://stackoverflow.com/questions/47329675/boto3-how-to-check-if-vpc-already-exists-before-creating-it