AWS-OME-SDK
WARNING: this project as been deprecated
This repository/package will no longer be maintained. We advice you to swith to standard aws-sdk
configuation.
Simpler and more reliable sample here: https://gist.github.com/ChristopheBougere/4fe9af102063607077990c7403fc1309
Description
Using this package with Serverless Framework and offline/local extensions:
/!\ All plugins should be installed /!\
How to install
Install all required serverless plugins.
Then install aws-ome-sdk
:
$ npm install --save aws-ome-sdk
How to use
Use like aws-sdk.
const AWS = require('aws-ome-sdk');
const ddb = AWS.DynamoDB();
const ddbDoc = AWS.DynamoDB.DocumentClient();
const s3 = AWS.S3();
You can define local ports by setting these environment variables:
export LOCAL_DYNAMODB_PORT=8000;
export LOCAL_S3_PORT=4569;
or in Node.js:
process.env.LOCAL_DYNAMODB_PORT = 8000;
process.env.LOCAL_S3_PORT = 4569;
How to test
$ npm run test
$ npm run lint
TODO