# AWX dynamic inventory from AWS source fail

**URL:** <https://forum.ansible.com/t/awx-dynamic-inventory-from-aws-source-fail/35831>\
**Category:** AWX Project\
**Tags:** aws, awx\
**Created:** [October 7, 2021, 7:11am UTC](https://forum.ansible.com/t/awx-dynamic-inventory-from-aws-source-fail/35831 "2021-10-07T07:11:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Naveen\_Kumar](https://avatars.discourse-cdn.com/v4/letter/n/f0a364/32.png) [@Naveen\_Kumar](https://forum.ansible.com/u/Naveen_Kumar)\
**Post date:** [October 7, 2021, 7:11am UTC](https://forum.ansible.com/t/awx-dynamic-inventory-from-aws-source-fail/35831/1 "2021-10-07T07:11:57Z")

</div>

I need to get private address as hostname in inventory but only get public ip.  
using – vpc\_destination\_variable: private\_ip\_address as a variable  
I have tried many ways but not able to get private ip for public subnet.

Please help.

Thanks
