Problem scenario
You have found an AWS CLI command that shows you output consistent with the console. You run this:
aws ec2 describe-vpc-peering-connection –region us-west-2 | grep pcx-abcd1234
The results show you a peering connection called pcx-abcd1234
You run this from a Python3 interpreter prompt:
import boto3
foo = boto3.resource(‘ec2’)
foo.describe_vpc_peering.connections()
print(foo)
You then search the output for pcx-abcd1234. You do not see it.
…
Continue reading “Why Would Boto3 Not Show a Peering Connection That the AWS CLI Shows?”