Custom module to allocate_private_virtual_interface

Hi All,

I am creating Direct Connect Private Virtual Interface but as a hosted interface. Currently, there are no ansible modules to allocate_private_virtual_interface. This will create a private virtual interface to be owned by specified AWS account.

This is the boto3 link for that

https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/directconnect.html#DirectConnect.Client.allocate_private_virtual_interface

response = client.allocate_private_virtual_interface(
    connectionId='string',
    ownerAccount='string',
    newPrivateVirtualInterfaceAllocation={
        'virtualInterfaceName': 'string',
        'vlan': 123,
        'asn': 123,
        'mtu': 123,
        'authKey': 'string',
        'amazonAddress': 'string',
        'addressFamily': 'ipv4'|'ipv6',
        'customerAddress': 'string'
    }
)

The current ansible module does not have ownerAccount parameter. Can someone help create one?

Current ansible module:

https://docs.ansible.com/ansible/2.6/modules/aws_direct_connect_virtual_interface_module.html

Thanks
Kishore

Hi all,

Can someone help, please?

Thanks
Kishore