@literacyplanet/lambda_configure_event_sources
Creates, updates and deletes lambda event sources (dynamodb, kinesis)
Last updated 5 years ago by literacyplanet .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @literacyplanet/lambda_configure_event_sources 
SYNC missed versions from official npm registry.

##AWS configure Lambda events

Creates, updates and deletes lambda event sources (dynamodb, kinesis)

Build Status

Coverage Status

###Setup

npm install @literacyplanet/lambda_configure_event_sources --save

####./event_sources.json

[
    {
      "EventSourceArn": "arn:aws:dynamodb:us-east-1:xxxxxx:table/my_dynamo_table/stream/2015-12-03T01:01:02.357",
      "StartingPosition": "TRIM_HORIZON",
      "Enabled": true,
      "FunctionName": "my_lamdba_handler",
      "BatchSize": 1
    }
]

####./index.js

var configureEvents = require('@literacyplanet/lambda_configure_event_source');
var eventSources = require('./event_sources.json');

configureEvents.createOrUpdateSources({
  eventSources: eventSources,
  region: 'us-east-1',
  lambdaName: 'my_lamdba_handler'
}, function(err) {
  // Done
});

###Run tests

npm run test

Current Tags

  • 1.0.2                                ...           latest (5 years ago)

3 Versions

  • 1.0.2                                ...           5 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 3
Last Month 4
Dependencies (3)
Dev Dependencies (7)

Copyright 2014 - 2016 © taobao.org |