Socket
Socket
Sign inDemoInstall

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

Package Overview
Dependencies
18
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

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


Version published
Maintainers
2
Created

Readme

Source

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.

Keywords

FAQs

Last updated on 07 Jan 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc