Skip to content

Get AWS client for online or offline/local execution of serverless Framework

License

Notifications You must be signed in to change notification settings

RedbirdHQ/aws-ome-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  • More tests

About

Get AWS client for online or offline/local execution of serverless Framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors 4

  •  
  •  
  •  
  •