Skip to content

AdStage/clj-aws-s3

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

clj-aws-s3

IMPORTANT NOTICE

This is a fork that I am forced to do to bring in this fix: aws/aws-sdk-java#191

I personally would like to use this: https://github.com/cognitect-labs/aws-api but could not due to incompatible deps issues in the project that is using it. So is the fork.

So please DO NOT USE this lib unless you had to. If you had to, please fork it and maintain your own fork.

Introduction

A Clojure library for accessing Amazon S3, based on the official AWS Java SDK.

Although there are a few S3 clients for Clojure around, this library aims to provide a more complete implementation, with metadata, streams and protocols for uploading different types of data.

Currently the library supports functions to create, list and delete buckets, to list, get, and put objects and their metadata, and to get and update the access control lists (ACLs) for buckets and objects.

Install

Add the following dependency to your project.clj file:

[adstage-lab/clj-aws-s3 "0.3.12"]

Example

(require '[aws.sdk.s3 :as s3])

(def cred {:access-key "...", :secret-key "..."})

(s3/create-bucket cred "my-bucket")

(s3/put-object cred "my-bucket" "some-key" "some-value")

(s3/update-object-acl cred "my-bucket" "some-key" (s3/grant :all-users :read))

(println (slurp (:content (s3/get-object cred "my-bucket" "some-key"))))

Documentation

License

Copyright © 2014 James Reeves

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

About

S3 client library for Clojure

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Clojure 100.0%