Launching an EC2 Instance with an IAM Role Using Ansible

amazon ec2ansible

I'm trying to launch an instance with an IAM Role using Ansible.

But I don't find how to do it.

Does anyone know if it is possible?

If I can't use Ansible. I try it with boto

Best Answer

http://docs.ansible.com/ec2_module.html

instance_profile_name (added in 1.3):
Name of the IAM instance profile to use. Boto library must be 2.5.0+