Skip to content

Instantly share code, notes, and snippets.

@adrianhall
Created November 27, 2018 23:05
Show Gist options
  • Save adrianhall/d9bad4a09696683005ae0c70e2b294da to your computer and use it in GitHub Desktop.
Save adrianhall/d9bad4a09696683005ae0c70e2b294da to your computer and use it in GitHub Desktop.
functions:
dynamodb_stream:
handler: elasticsearch.lambda_handler
name: ${self:custom.api}-dynamodb_stream_handler
description: Stream data from DynamoDB to ElasticSearch
runtime: python3.6
memorySize: 128
role: ElasticSearchStreamingLambdaIAMRole
environment:
ES_ENDPOINT: { Fn::GetAtt: [ ElasticSearchDomain, DomainEndpoint ]}
DEBUG: 1
events:
- stream:
type: dynamodb
arn: { Fn::GetAtt: [ DynamoDBTable, StreamArn ]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment