Skip to content

Instantly share code, notes, and snippets.

@merictaze
Created July 2, 2018 20:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save merictaze/0c4add0c9c275d8e726df7db47f0e498 to your computer and use it in GitHub Desktop.
Save merictaze/0c4add0c9c275d8e726df7db47f0e498 to your computer and use it in GitHub Desktop.
EsIndexerFunction:
Type: 'AWS::Lambda::Function'
Properties:
Handler: 'index.handler'
Runtime: nodejs6.10
Role: !GetAtt LambdaRole.Arn
Code:
ZipFile: |
exports.handler = (event, context, callback) => {
event.Records.forEach(record => {
console.log(record);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment