Searching through github ( http://github.com/search?q=puppet) I came across a very similar approach on howto bootstrap EC2 images with capistrano puppet and iclassify. ec2-cap is build on top of the Rightscale Amazon EC2 gem (http://rightaws.rubyforge.org/)