# How can i gather EC2 ELB Facts on AWX?

**URL:** <https://forum.ansible.com/t/how-can-i-gather-ec2-elb-facts-on-awx/28607>\
**Category:** AWX Project\
**Tags:** aws, awx\
**Created:** [September 20, 2018, 5:59am UTC](https://forum.ansible.com/t/how-can-i-gather-ec2-elb-facts-on-awx/28607 "2018-09-20T05:59:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ankit2](https://avatars.discourse-cdn.com/v4/letter/a/ea5d25/32.png) [@Ankit2](https://forum.ansible.com/u/Ankit2)\
**Post date:** [September 20, 2018, 5:59am UTC](https://forum.ansible.com/t/how-can-i-gather-ec2-elb-facts-on-awx/28607/1 "2018-09-20T05:59:17Z")

</div>

I have been following the Ansible **ec2\_elb\_facts** module and tried using the below example but in the debug logs i can see the aws values are completely getting ignored. How can i get this working?

```auto
- hosts: localhost
  vars:
    aws_access_key: accesskey
    aws_secret_key: secretkey
    ec2_region: us-east1
  gather_facts: true
  tasks:
    # Gather facts about all ELBs
    - action:
        module: ec2_elb_facts
      register: elb_facts

    - action:
        module: debug
        msg: "{{ item.dns_name }}"
      with_items: "{{ elb_facts.elbs }}"

```

Also, in AWX how can i make sure use the encrypted values for awsaccesskey and awssecretkey?
