Emergency

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

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

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

    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: 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: 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
    Last edited by Lufer; 01-21-2016, 10:46 AM.

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

    Code:
    [profile Credentials2]
    aws_access_key_id = KEY
    aws_secret_access_key = SECRET
    Than pmp-check-aws-rds.py -n Credentials2 ... should pick it up.

    http://boto.cloudhackers.com/en/late...ml#credentials

    Comment


    • #3
      Thanks, it works like a charm!

      Comment


      • #4
        Elisabeth Camaur founded Camaur Crampton Family Law as a resource to help clients through divorce and child custody turmoil with a focus on the future. “Instead of regretfully looking back and affixing blame, I like to look forward. I like to turn divorce into an opportunity to change people’s lives for the better,” says family law attorney Elisabeth Camaur.

        Prenuptial Agreement
        Family Law Attorney Orange County
        Camaur Crampton Family Law: services for divorce & child custody. Strategic representation by a top notch lawyer with the utmost skill & decades of

        Comment

        Working...
        X