Creating Public AMIs Securely for EC2
alestic.com
alestic.com
libguestfs[1] that I helped to write provides some solutions for this, including access to secure scrub utilities[2] and this script[3] for removing "empty" space in a disk image.
</advert>
[2] http://libguestfs.org/guestfish.1.html#scrub_file
[3] https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-imag...