AWS always assigns a primary IP address to Network Interfaces.
Using a test account (modified the IP):
>>> import boto
>>> vpc = boto.connect_vpc()
>>> eni = vpc.create_network_interface(subnet_id)
>>> eni.private_ip_addresses
[PrivateIPAddress(10.1.2.3, primary=True)]
|
||
|---|---|---|
| .. | ||
| resources | ||
| responses | ||
| __init__.py | ||
| exceptions.py | ||
| models.py | ||
| urls.py | ||
| utils.py | ||