Here’s an example:
https://github.com/ansible/ansible-examples/blob/master/language_features/eucalyptus-ec2.yml
Some folks like to provision and configure in seperate steps, so you might use includes to make it doable.
I’d also highly recommend the EC2 inventory script.