mardi 25 août 2015

How to obtain all available Elastic IP addresses in boto3

What is the boto3 equivalent to:

import boto

conn = boto.connect_ec2()
addresses = conn.get_all_addresses()

(returning all Elastic IP addresses)

import boto3
ec2 = boto3.resource('ec2')
addresses = ec2.????

I am a little bit confused by the generalization that seem to apply to VPC setups as well.




Aucun commentaire:

Enregistrer un commentaire