Has someone figured out the minimum IAM policies required to run the EC2 dynamic inventory script (ec2.py
) on ansible via an IAM role?.
So far, I haven't seen a concrete reference in this matter other than specifying credentials for boto
library in the official documentation of ansible, however, on production environments, I rarely use key pairs for access to AWS services from EC2 instances, instead I have embraced the use of IAM roles for that case scenario.
I have tried policies allowing ec2:Describe*
actions but it doesn't seem to be enough for the script as it always exits with Unauthorized operation
.
Could you help me out?. Thank you.
Aucun commentaire:
Enregistrer un commentaire