# AWX fetching aws service information

**URL:** <https://forum.ansible.com/t/awx-fetching-aws-service-information/33596>\
**Category:** AWX Project\
**Tags:** aws, awx\
**Created:** [August 12, 2020, 2:03pm UTC](https://forum.ansible.com/t/awx-fetching-aws-service-information/33596 "2020-08-12T14:03:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hashim\_vayalar](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/hashim_vayalar/32/10641_2.png) [@hashim\_vayalar](https://forum.ansible.com/u/hashim_vayalar)\
**Post date:** [August 12, 2020, 2:03pm UTC](https://forum.ansible.com/t/awx-fetching-aws-service-information/33596/1 "2020-08-12T14:03:41Z")

</div>

Hey,

1. I configured my AWX server on one of my aws account.
2. I have multiple AWS accounts.
3. I need to fetch some of my aws account hosted zone lists from AWX server.
4. Dynamic Inventory and AWS communication working with assume role. Ansible Tower AWS account allowed to use assume role and fetching all the inventory list.
5. But when I use route53 playbook to list hosted zone it is not working. but the same playbook working from ansible server not from AWX/Tower server. I used “profile” there in playbook, no option to use “I am role arn”.

name: Route53 entry lists  
hosts: localhost  
gather\_facts: true  
connection: local  
tasks:

- 
  - name: List all hosted zones  
route53\_info:  
query: hosted\_zone  
register: record\_sets

- 
  - name: PRINT OUT RECORD SETS  
debug:  
var: record\_sets  
I used “profile” when running from ansible jumphost server.
