ec2-consistent-snapshot is a great tool to create a snapshot of an EC2 instance. It can create a snapshot of a MySQL database and record the master and slave positions before doing so.

To install it install the needed libraries:

sudo apt-get install libfile-slurp-perl libnet-amazon-ec2-perl libdatetime-perl

Then get the source from GitHUB:

git clone'

Run it with