JSPM

@scavasoft/aws-cdk-dynamodb-to-elasticsearch-stream

0.0.16
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q45985F
  • License ISC

AWS CDK based construct that enables you to easily stream data from a DynamoDB table to an ElasticSearch index.

Package Exports

  • @scavasoft/aws-cdk-dynamodb-to-elasticsearch-stream

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@scavasoft/aws-cdk-dynamodb-to-elasticsearch-stream) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Stream DynamoDB to ElasticSearch

npm version

AWS CDK based construct that enables you to easily stream data from a DynamoDB table to an ElasticSearch index.

Installation

npm install @scavasoft/aws-cdk-dynamodb-to-elasticsearch-stream

Sample usage

Use the construct as a "drop-in" replacement of the dynamodb.Table construct.

Before:

import * as dynamodb from '@aws-cdk/aws-dynamodb';

new dynamodb.Table(this, 'table', {
    partitionKey: {
        name: "id",
        type: AttributeType.STRING,
    },
});

After:

import * as elasticsearch from '@aws-cdk/aws-elasticsearch';

new DynamoDBWithElasticSearchStream(this, 'table', {
    partitionKey: {
        name: "id",
        type: AttributeType.STRING,
    },
    streamTo: {
        domain: new elasticsearch.Domain(this, 'elasticsearch', {
            version: ElasticsearchVersion.V7_7,
        }),
        index: "some-elasticsearch-index",
    }
});

A more in-depth example is available in the /examples subfolder.