# Need help in using amazon.aws collection on RHEL 6

**URL:** <https://forum.ansible.com/t/need-help-in-using-amazon-aws-collection-on-rhel-6/38040>\
**Category:** Ansible Project\
**Tags:** rhel, aws\
**Created:** [May 31, 2023, 10:11am UTC](https://forum.ansible.com/t/need-help-in-using-amazon-aws-collection-on-rhel-6/38040 "2023-05-31T10:11:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![amentee](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/amentee/32/9190_2.png) [@amentee](https://forum.ansible.com/u/amentee)\
**Post date:** [May 31, 2023, 10:11am UTC](https://forum.ansible.com/t/need-help-in-using-amazon-aws-collection-on-rhel-6/38040/1 "2023-05-31T10:11:25Z")

</div>

Hi Team,

I am writing a playbook in which I need to use amazon.aws collection to fetch the instance metadata. I am interested in particularly this module (amazon.aws.ec2\_metadata\_facts). As per the documentation , this was introduced in version 1.0.0 . I can see on the github repo that latest version of amazon.aws collection is not going to support python version less than 3.7 .

But my requirement can be satisfied if I use amazon.aws collection version 1.0.0 or greater than that which will work with Python 2.6.6 and ansible version 2.6.20 . The current OS is RHEL 6 . Please let me know if I can customize this collection and make it work for RHEL 6 and Python 2.6.6 version. If yes , can someone share the steps

Regards  
Sachin Kumar

---

<div class="post-metadata">

**Author:** ![Nico\_Kadel-Garcia](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/nico_kadel-garcia/32/9998_2.png) [@Nico\_Kadel-Garcia](https://forum.ansible.com/u/Nico_Kadel-Garcia)\
**Post date:** [May 31, 2023, 10:36am UTC](https://forum.ansible.com/t/need-help-in-using-amazon-aws-collection-on-rhel-6/38040/2 "2023-05-31T10:36:05Z")

</div>

> Hi Team,
> 
> I am writing a playbook in which I need to use amazon.aws collection to fetch the instance metadata. I am interested in particularly this module (amazon.aws.ec2\_metadata\_facts). As per the documentation , this was introduced in version 1.0.0 . I can see on the github repo that latest version of amazon.aws collection is not going to support python version less than 3.7 .

RHEL 6 is obsolete. Ansible expects python 3, especially on the  
ansible server. If the RHEL 6 is being remotely managed from a  
supportable ansible server, you should be able to install python34  
from EPEL, but I'd get the heck off that host.

> But my requirement can be satisfied if I use amazon.aws collection version 1.0.0 or greater than that which will work with Python 2.6.6 and ansible version 2.6.20 . The current OS is RHEL 6 . Please let me know if I can customize this collection and make it work for RHEL 6 and Python 2.6.6 version. If yes , can someone share the steps
> 
> Regards  
> Sachin Kumar

I recommend you stop playing with python 2 wherever avoidable, and  
prepare to replace that RHEL 6 host.. Expecting anything contemporary  
to work with it is... asking for support tasks you probably don't want  
to take on.
