# Using multiple profiles on boto.cfg with pmp-check-aws-rds.py

**URL:** <https://forums.percona.com/t/using-multiple-profiles-on-boto-cfg-with-pmp-check-aws-rds-py/4677>\
**Category:** Percona Monitoring Plugins\
**Created:** [January 21, 2016, 10:13am UTC](https://forums.percona.com/t/using-multiple-profiles-on-boto-cfg-with-pmp-check-aws-rds-py/4677 "2016-01-21T10:13:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lufer](https://avatars.discourse-cdn.com/v4/letter/l/f475e1/32.png) [@Lufer](https://forums.percona.com/u/Lufer)\
**Post date:** [January 21, 2016, 10:13am UTC](https://forums.percona.com/t/using-multiple-profiles-on-boto-cfg-with-pmp-check-aws-rds-py/4677/1 "2016-01-21T10:13:16Z")

</div>

Hello everybody,  
I’m facing a problem with this awesome plugin. I’m trying to use it with multiple AWS accounts with no success.

I have configured boto.cfg with two accounts, [Credentials], [Credentials2]

[Credentials]  
aws\_access\_key\_id = KEY  
aws\_secret\_access\_key = SECRET

[Credentials2]  
aws\_access\_key\_id = KEY  
aws\_secret\_access\_key = SECRET

When I launch the script pmp-check-aws-rds.py with the option -n PROFILE, -n Credentials2 it doesn’t work.

ps:

If I use only one account at a time, it works without passing the parameter -n PROFILE.

ex: pmp-check-aws-rds.py -n Credentials2 -r sa-east-1 -l not working with the second profile

If I use only Credentials it works, but i have to switch the file…not cool  
pmp-check-aws-rds.py -r sa-east-1 -l works

Could you help regarding this issue?

I really appreciate.

Best Regards.

LuFer

---

<div class="post-metadata">

**Author:** ![weber](https://avatars.discourse-cdn.com/v4/letter/w/da6949/32.png) [@weber](https://forums.percona.com/u/weber)\
**Post date:** [January 22, 2016, 3:30pm UTC](https://forums.percona.com/t/using-multiple-profiles-on-boto-cfg-with-pmp-check-aws-rds-py/4677/2 "2016-01-22T15:30:32Z")

</div>

You have to define a profile in the following way:

```auto
[profile Credentials2]
aws_access_key_id = KEY
aws_secret_access_key = SECRET

```

Than pmp-check-aws-rds.py -n Credentials2 … should pick it up.

[url][Boto Config — boto v2.49.0](http://boto.cloudhackers.com/en/latest/boto_config_tut.html#credentials%5B/url%5D)

---

<div class="post-metadata">

**Author:** ![Lufer](https://avatars.discourse-cdn.com/v4/letter/l/f475e1/32.png) [@Lufer](https://forums.percona.com/u/Lufer)\
**Post date:** [January 26, 2016, 8:23am UTC](https://forums.percona.com/t/using-multiple-profiles-on-boto-cfg-with-pmp-check-aws-rds-py/4677/3 "2016-01-26T08:23:47Z")

</div>

Thanks, it works like a charm!
