How Do You Display the VPC Peering Connections with Boto3?

Problem scenario
You want to list all the VPC Peering Connections for a specific region using Python.

You want the equivalent of aws ec2 describe-vpc-peering-connections

How do you show (retrieve or fetch) the VPC peering connections using Boto3?

Solution

 import boto3
 contint = boto3.client('ec2')
 var1 = contint.describe_vpc_peering_connections()
 print(var1)

Leave a comment

Your email address will not be published. Required fields are marked *