# pass profile instead of access key and secret key as parameter

**URL:** <https://forum.ansible.com/t/pass-profile-instead-of-access-key-and-secret-key-as-parameter/13493>\
**Category:** Ansible Project\
**Tags:** aws\
**Created:** [September 17, 2013, 10:23am UTC](https://forum.ansible.com/t/pass-profile-instead-of-access-key-and-secret-key-as-parameter/13493 "2013-09-17T10:23:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cpatanaik](https://avatars.discourse-cdn.com/v4/letter/c/cdc98d/32.png) [@cpatanaik](https://forum.ansible.com/u/cpatanaik)\
**Post date:** [September 17, 2013, 10:23am UTC](https://forum.ansible.com/t/pass-profile-instead-of-access-key-and-secret-key-as-parameter/13493/1 "2013-09-17T10:23:38Z")

</div>

Hi,

I have used AWS CLI with --profile option to manage instances w.r.t different users. My config file is as shown below.

[default]  
aws\_access\_key\_id=xxxx  
aws\_secret\_access\_key=xxxx

[profile Test]  
aws\_access\_key\_id = xxxx  
aws\_secret\_access\_key = xxxx  
region=us-east-1

Recently I have started learning ansible. I have created a config file ~/.boto which is shown below.

[Credentials]  
aws\_access\_key\_id = xxxx  
aws\_secret\_access\_key = xxxx  
region = us-east-1

So My question is there a provision to add profiles to boto config file and use that option in ec2 and ec2\_vol module to pass access key and secret key…??
