# @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.

Latest version **0.0.16** (published 2021-01-07) · ISC license · 0 weekly downloads

## Install

```sh
npm install @scavasoft/aws-cdk-dynamodb-to-elasticsearch-stream
pnpm add @scavasoft/aws-cdk-dynamodb-to-elasticsearch-stream
yarn add @scavasoft/aws-cdk-dynamodb-to-elasticsearch-stream
bun add @scavasoft/aws-cdk-dynamodb-to-elasticsearch-stream
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.16 |
| Published | 2021-01-07 |
| First published | 2020-10-17 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 18 |
| Unpacked size | 24.7 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 5 |
| Maintainers | scavasoft_owner, dzhuneyt |
| Keywords | AWS, aws, AWS-CDK, aws-cdk, AWS CDK, aws cdk, AWS Lambda, aws lambda, Lambda, AWS DynamoDB, DynamoDB, dynamodb, AWS Elasticsearch, Elasticsearch, elasticsearch, elasticsearch stream, Stream, Node |

## Links

- npm: https://www.npmjs.com/package/@scavasoft/aws-cdk-dynamodb-to-elasticsearch-stream
- Repository: https://github.com/scavasoft/aws-cdk-stream-dynamodb-to-elasticsearch
- Homepage: https://github.com/scavasoft/aws-cdk-stream-dynamodb-to-elasticsearch#readme
- Issues: https://github.com/scavasoft/aws-cdk-stream-dynamodb-to-elasticsearch/issues
- npm.io page: https://npm.io/package/@scavasoft/aws-cdk-dynamodb-to-elasticsearch-stream

## Dependencies (18)

- [jest](https://npm.io/package/jest.md) ^26.6.3
- [aws-sdk](https://npm.io/package/aws-sdk.md) ^2.823.0
- [ts-jest](https://npm.io/package/ts-jest.md) ^26.4.4
- [ts-node](https://npm.io/package/ts-node.md) ^9.1.1
- [aws-lambda](https://npm.io/package/aws-lambda.md) ^1.0.6
- [typescript](https://npm.io/package/typescript.md) ^3.9.7
- [@types/jest](https://npm.io/package/@types/jest.md) ^26.0.20
- [@types/node](https://npm.io/package/@types/node.md) ^10.17.50
- [@aws-cdk/core](https://npm.io/package/@aws-cdk/core.md) ^1.83.0
- [@aws-cdk/assert](https://npm.io/package/@aws-cdk/assert.md) ^1.83.0
- [@aws-cdk/aws-iam](https://npm.io/package/@aws-cdk/aws-iam.md) ^1.83.0
- [@types/aws-lambda](https://npm.io/package/@types/aws-lambda.md) ^8.10.70
- [@aws-cdk/aws-lambda](https://npm.io/package/@aws-cdk/aws-lambda.md) ^1.83.0
- [@aws-cdk/aws-dynamodb](https://npm.io/package/@aws-cdk/aws-dynamodb.md) ^1.83.0
- [@elastic/elasticsearch](https://npm.io/package/@elastic/elasticsearch.md) ^7.10.0
- [@aws-cdk/aws-elasticsearch](https://npm.io/package/@aws-cdk/aws-elasticsearch.md) ^1.83.0
- [@aws-cdk/aws-lambda-nodejs](https://npm.io/package/@aws-cdk/aws-lambda-nodejs.md) ^1.83.0
- [@aws-cdk/aws-lambda-event-sources](https://npm.io/package/@aws-cdk/aws-lambda-event-sources.md) ^1.83.0

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 0.0.16 (latest) — 2021-01-07
- 0.0.15 — 2021-01-04
- 0.0.14 — 2020-12-22
- 0.0.13 — 2020-10-28
- 0.0.12 — 2020-10-28
- 0.0.11 — 2020-10-26
- 0.0.10 — 2020-10-17
- 0.0.9 — 2020-10-17
- 0.0.8 — 2020-10-17
- 0.0.0 — 2020-10-17

## README

# Stream DynamoDB to ElasticSearch

[![npm version](https://badge.fury.io/js/%40scavasoft%2Faws-cdk-dynamodb-to-elasticsearch-stream.svg)](https://www.npmjs.com/package/@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.

#### 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:
```typescript
import * as dynamodb from '@aws-cdk/aws-dynamodb';

new dynamodb.Table(this, 'table', {
    partitionKey: {
        name: "id",
        type: AttributeType.STRING,
    },
});
```
After:
```typescript
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.

---
_Source: https://npm.io/package/@scavasoft/aws-cdk-dynamodb-to-elasticsearch-stream · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
