Buy Percona ServicesBuy Now!

Using multiple profiles on boto.cfg with

  • Filter
  • Time
  • Show
Clear All
new posts

  • Using multiple profiles on boto.cfg with

    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]

    aws_access_key_id = KEY
    aws_secret_access_key = SECRET

    aws_access_key_id = KEY
    aws_secret_access_key = SECRET

    When I launch the script with the option -n PROFILE, -n Credentials2 it doesn't work.

    ps: boto.provider.ProfileNotFoundError: Profile "Credentials2" not found!

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

    ex: -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 -r sa-east-1 -l works

    Could you help regarding this issue?

    I really appreciate.

    Best Regards.

    Last edited by Lufer; 01-21-2016, 10:46 AM.

  • #2
    You have to define a profile in the following way:

    [profile Credentials2]
    aws_access_key_id = KEY
    aws_secret_access_key = SECRET
    Than -n Credentials2 ... should pick it up.


    • #3
      Thanks, it works like a charm!