1.0.0 • Published 6 years ago

@cfn-modules/lambda-event-source-dynamodb-stream v1.0.0

Weekly downloads
1
License
Apache-2.0
Repository
github
Last release
6 years ago

Build Status NPM version

cfn-modules: AWS Lambda event source: DynamoDB stream

DynamoDB stream event source for AWS Lambda function.

Install

Install Node.js and npm first!

npm i @cfn-modules/lambda-event-source-dynamodb-stream

Usage

You have to set the StreamViewType parameter in the lambda-function module to != DISABLED to make this event source work.

---
AWSTemplateFormatVersion: '2010-09-09'
Description: 'cfn-modules example'
Resources:
  EventSource:
    Type: 'AWS::CloudFormation::Stack'
    Properties:
      Parameters:
        LambdaModule: !GetAtt 'Function.Outputs.StackName' # required
        TableModule: !GetAtt 'Table.Outputs.StackName' # required
        BatchSize: '10' # optional
        StartingPosition: LATEST # optional
      TemplateURL: './node_modules/@cfn-modules/lambda-event-source-dynamodb-stream/module.yml'

Parameters

1.0.0

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago