I was reading about pallet here: <http://twoguysarguing.wordpress.com/2010/11/01/starting-a-cluster-on-ec2-with-pallet/>, as well as on the pallet site: <http://palletops.com/>. I'm still a little confused. The examples are arranged as if I'm expected to enter the code at a REPL. 

But I think I'm missing something. Because I feel like (or I'm hoping) there should be some sort of lein support/integration, so that I can define some code to spin up a cluster, start the cluster, stop the cluster, deploy a war file, etc. via a series of lein commands. 

I did find the following project on github, but it appears to be written to work with maven instead of lein: <https://github.com/cemerick/clojure-web-deploy-conj>.

And, this is very close to what I want, except that I want this tied into lein targets somehow: <http://cemerick.com/2010/05/12/provisioning-administration-and-deployment-of-couchdb-java-tomcat/>.