EC2 instance roles for EC2 inventory plugin?

22 views
Skip to first unread message

Graham Babbitt

unread,
Mar 12, 2018, 12:11:07 PM3/12/18
to Ansible Project
Hello,

Unless I'm missing something I don't believe the ec2 inventory plugin currently supports getting aws credentials via an ec2 instance role?

Specifically in `_set_credentials`:

It will raise an error if neither a boto profile nor an aws key/secret are configured, but if one is using an ec2 instance role for authentication none of those will be available.

If this is indeed an inadvertent limitation I'm happy to open up a PR fixing this, but wanted to confirm I was understanding it correctly first.

Thanks,
Graham
Reply all
Reply to author
Forward
0 new messages