# EC2 Inventory Script - boto profiles (ansible 1.8)

**URL:** <https://forum.ansible.com/t/ec2-inventory-script-boto-profiles-ansible-1-8/17990>\
**Category:** Ansible Project\
**Tags:** aws\
**Created:** [April 16, 2015, 2:10am UTC](https://forum.ansible.com/t/ec2-inventory-script-boto-profiles-ansible-1-8/17990 "2015-04-16T02:10:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gary\_Malouf](https://avatars.discourse-cdn.com/v4/letter/g/4bbf92/32.png) [@Gary\_Malouf](https://forum.ansible.com/u/Gary_Malouf)\
**Post date:** [April 16, 2015, 2:10am UTC](https://forum.ansible.com/t/ec2-inventory-script-boto-profiles-ansible-1-8/17990/1 "2015-04-16T02:10:24Z")

</div>

I’ve been struggling to get the inventory script to pick up my boto profile (I have multiple aws account creds to manage). What is the correct filter to use in the ec2.ini to specify the profile that should be used? Also, how does the presence of both ~/.boto and ~/.aws/credentials files affect this?
