Neolithic Psychedelic Mushrooms

    @literacyplanet/lambda_configure_event_sources

    1.0.2 • Public • Published

    ##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

    Install

    npm i @literacyplanet/lambda_configure_event_sources

    DownloadsWeekly Downloads

    4

    Version

    1.0.2

    License

    ISC

    Last publish

    Collaborators

    • literacyplanet