I just created a demo, created a new role and used this new policy, and then created a new instance that used this new role.
Demo policy:
{ "Version": "2012-10-17", "Statement": [ { "Sid": "Demo201505282045", "Effect": "Allow", "Action": [ "ec2:Describe*", "route53:ListHostedZones", "route53:ListResourceRecordSets" ], "Resource": "*" } ] }
I had to add route53 since I am using the route53 parameter ( route53 = true in ec2.ini), but other than that it worked fine.
If you still have problems, try running ec2.py from the command line ( ./ec2.py ), as they usually give reasonable error messages when starting directly.
source share