Skip to content

Instantly share code, notes, and snippets.

@bobbyno
Created April 11, 2014 17:36
Show Gist options
  • Save bobbyno/10486743 to your computer and use it in GitHub Desktop.
Save bobbyno/10486743 to your computer and use it in GitHub Desktop.
Quick test of manipulating amazon with boot
#!/usr/bin/env boot
#tailrecursion.boot.core/version "2.3.1"
(set-env! :dependencies '[[amazonica "0.2.11"]])
(require '[amazonica.aws.ec2 :as ec2]
'[amazonica.core :refer [defcredential]])
(defcredential
(System/getenv "AWS_ACCESS_KEY_ID")
(System/getenv "AWS_SECRET_KEY")
"us-west-2")
(defn -main [& args]
(ec2/describe-instances)
(System/exit 0))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment