https://github.com/weavejester/delegance-aws
Library to integrate Delegance with Amazon Web Services
https://github.com/weavejester/delegance-aws
Last synced: 6 months ago
JSON representation
Library to integrate Delegance with Amazon Web Services
- Host: GitHub
- URL: https://github.com/weavejester/delegance-aws
- Owner: weavejester
- Created: 2013-05-22T18:29:12.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-05-29T12:01:45.000Z (over 12 years ago)
- Last Synced: 2025-06-09T17:13:39.538Z (7 months ago)
- Language: Clojure
- Size: 137 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Delegance for AWS
This library allows [Delegance][1] to work with Amazon's [SQS][2],
[SimpleDB][3] and [S3][4] services.
[1]: https://github.com/weavejester/delegance
[2]: http://aws.amazon.com/sqs/
[3]: http://aws.amazon.com/simpledb/
[4]: http://aws.amazon.com/s3/
## Installation
Add the following dependency to your `project.clj` file:
[delegance/amazon-web-services "0.1.2"]
## Usage
Create a configuration map using `s3-store` and `sqs-queue`:
```clojure
(def cred
{:access-key ...
:secret-key ...})
(def config
{:queue (sqs-queue (assoc cred :queue "delegance"))
:store (s3-store (assoc cred :bucket "delegance"))})
```
Create the SQS queue and S3 bucket if necessary, then use the config
with delegance:
```clojure
(def worker
(run-worker config))
(def result
(delegate config `(+ 1 1))
```
## License
Copyright © 2013 James Reeves
Distributed under the Eclipse Public License, the same as Clojure.