# Unable to register ec2 instance under an elb

**URL:** <https://forum.ansible.com/t/unable-to-register-ec2-instance-under-an-elb/28362>\
**Category:** Ansible Project\
**Created:** [August 19, 2018, 6:30am UTC](https://forum.ansible.com/t/unable-to-register-ec2-instance-under-an-elb/28362 "2018-08-19T06:30:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Siva\_Shashank](https://avatars.discourse-cdn.com/v4/letter/s/e9a140/32.png) [@Siva\_Shashank](https://forum.ansible.com/u/Siva_Shashank)\
**Post date:** [August 19, 2018, 6:30am UTC](https://forum.ansible.com/t/unable-to-register-ec2-instance-under-an-elb/28362/1 "2018-08-19T06:30:03Z")

</div>

Hello,

I am trying to launch an ec2-instance, a classic load balancer and then register the ec2 instance under the load balancer. When I run the playbook, I see no errors and was able to successfully launch ec2 instance and the load balancer, but when I check the console, I do not see the ec2 instance registered under the load balancer. Below is my code. Please help me out of it. Thank you!
