This is the source code for a tutorial on using the ec2.py dynamic inventory feature.