UNPKG

dynamodb-stream-elasticsearch

Version:

Missing blueprint for AWS Lambda. Reads stream from AWS DynamoDB and writes it to AWS ElasticSearch.

15 lines (14 loc) 418 B
// Extracts the DynamoDB table from an ARN module.exports = arn => { /** This is a default dynamo table arn * arn:aws:dynamodb:eu-west-1:123456789012:table/table-name/stream/2015-11-13T09:23:17.104 * After split * [ * 'arn:aws:dynamodb:eu-west-1:123456789012:table', * 'table-name', * 'stream', * '2015-11-13T09:23:17.104' * ] */ return arn.split('/')[1].toLowerCase() }