# Issue with elb\_network\_lb?

**URL:** <https://forum.ansible.com/t/issue-with-elb-network-lb/28465>\
**Category:** Ansible Project\
**Tags:** aws\
**Created:** [August 30, 2018, 8:05am UTC](https://forum.ansible.com/t/issue-with-elb-network-lb/28465 "2018-08-30T08:05:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karl\_Auer](https://avatars.discourse-cdn.com/v4/letter/k/cc9497/32.png) [@Karl\_Auer](https://forum.ansible.com/u/Karl_Auer)\
**Post date:** [August 30, 2018, 8:05am UTC](https://forum.ansible.com/t/issue-with-elb-network-lb/28465/1 "2018-08-30T08:05:16Z")

</div>

Has anyone here managed to associate an Elastic IP address with an AWS Network Load Balancer?

I’m having problems with the AWS module elb\_network\_lb.

I’m trying to associate Elastic IPs with the subnets I’m attaching the load balancer to, and I keep getting the same message:

An error occurred (ValidationError) when calling the CreateLoadBalancer operation: At least one subnet must be specified"

If I use the subnet\_ids attribute, I get a load balancer across two subnets, but without Elastic IP addresses. But if I use the subnet\_mappings attribute, which is the only way to associate an Elastic IP address with a subnet, I get the above error message.

Uncle Google has been of little help…

Regards, K.
