Some utility functions for working with Amazon S3. Uses clj-aws-s3 underneath. This is a work in progress.
Current leiningen dependency:
[s3-util "0.1.0-SNAPSHOT"]
Right now there are only a couple of functions:
(def cred {:access-key "...", :secret-key "..."})
;; creates or overwrites "some-key" with "some-value" in "my-bucket"
;; "my-bucket" is automatically created if it does not already exist
(spit cred "my-bucket" "some-key" "some-value")
;; creates or overwrites key-value pairs in "my-bucket" using the
;; key-value pairs in the supplied map. "my-bucket" is automatically
;; created if it does not already exist
(spit-map cred "my-bucket" {"some-key" "some-value"
"another-key" "another-value"})
Copyright © 2013 Greg Phillips
Distributed under the Eclipse Public License, the same as Clojure.