https://github.com/peerlibrary/meteor-aws-sdk
SDK for AWS services including Amazon S3, Amazon EC2, DynamoDB, and Amazon SWF
https://github.com/peerlibrary/meteor-aws-sdk
Last synced: about 1 year ago
JSON representation
SDK for AWS services including Amazon S3, Amazon EC2, DynamoDB, and Amazon SWF
- Host: GitHub
- URL: https://github.com/peerlibrary/meteor-aws-sdk
- Owner: peerlibrary
- License: other
- Created: 2013-04-10T18:40:13.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2020-01-06T22:17:04.000Z (over 6 years ago)
- Last Synced: 2025-03-29T05:22:36.459Z (about 1 year ago)
- Language: JavaScript
- Homepage: https://aws.amazon.com/sdk-for-node-js/
- Size: 35.2 KB
- Stars: 102
- Watchers: 6
- Forks: 23
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
AWS SDK smart package
=====================
[AWS SDK](https://aws.amazon.com/javascript/) Meteor smart package for [node.js](https://aws.amazon.com/sdk-for-node-js/)
and [browser](https://aws.amazon.com/sdk-for-browser/) package, providing the SDK that helps
take the complexity out of coding by providing JavaScript objects for AWS services including
Amazon S3, Amazon EC2, DynamoDB, and Amazon SWF.
After Adding this package to your [Meteor](http://www.meteor.com/) application import it using `import { AWS } from 'meteor/peerlibrary:aws-sdk';`,
which you can then use [according to the documentation](http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/index.html).
On the server-side, in addition to existing API, a [fibers](https://github.com/laverdet/node-fibers)-enabled
synchronous ([blocking](https://github.com/peerlibrary/meteor-blocking)) methods are added to objects. They
are named the same, but with a `Sync` suffix.
Server-side example using [CoffeeScript](http://coffeescript.org/):
```coffee
if Meteor.settings.AWS
AWS.config.update
accessKeyId: Meteor.settings.AWS.accessKeyId
secretAccessKey: Meteor.settings.AWS.secretAccessKey
else
console.warn "AWS settings missing"
s3 = new AWS.S3()
list = s3.listObjectsSync
Bucket: 'bucketname'
Prefix: 'subdirectory/'
for file in list.Contents
# ...
```
Both client and server side.
Installation
------------
```
meteor add peerlibrary:aws-sdk
```