}

Ansible: EC2 inventory script (ec2.py) returns: Forbidden

Created:

The problem

When running ec2.py/ec2.ini "out of the box" with all the proper boto configuration in place, the error "Forbidden" was raised and nothing else.

Solution

The "Forbidden" message is confusing, but setting elasticache = False and rds = False could solved the issue.