Skip to content

Latest commit

 

History

History
40 lines (23 loc) · 911 Bytes

README.md

File metadata and controls

40 lines (23 loc) · 911 Bytes

s3-util

Some utility functions for working with Amazon S3. Uses clj-aws-s3 underneath. This is a work in progress.

Usage

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"})

License

Copyright © 2013 Greg Phillips

Distributed under the Eclipse Public License, the same as Clojure.