how to attach extra private ips to an ec2 instance

I’ve looked at modules
ec2 create an instance and attach it to an interface_id or add one private and or one public ip
ec2_eip attach extra public ips
ec2_eni attach extra ethernet interfaces

I’m trying to attach extra private ips (routable within a vpc) to a virtual eth0:1, eth0:2 to an ec2 host (running docker). Is there any existing module that can do this?

Using boto i can
from import import ec2
c = ec2.connect_to_region(aws_region)

c.ec2.assign_private_ip_addresses(network_interface_id=myid.id,secondary_private_ip_address_count=2,allow_reassignment=True)