generated from ConduitIO/conduit-connector-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add integrations tests + docs * Update README.md Co-authored-by: Lovro Mažgon <[email protected]> * Update README.md Co-authored-by: Lovro Mažgon <[email protected]> * address reviews --------- Co-authored-by: Lovro Mažgon <[email protected]>
- Loading branch information
1 parent
ac17a8c
commit bb67173
Showing
8 changed files
with
486 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,40 @@ | ||
# Conduit Connector for DynamoDB | ||
|
||
[Conduit](https://conduit.io) connector for [DynamoDB](https://aws.amazon.com/dynamodb/). | ||
The DynamoDB connector is one of [Conduit](https://github.com/ConduitIO/conduit) standalone plugins. It provides a source | ||
connector for [DynamoDB](https://aws.amazon.com/dynamodb/). | ||
|
||
## How to build? | ||
|
||
Run `make build` to build the connector. | ||
|
||
## Testing | ||
|
||
Run `make test` to run all the unit tests. | ||
Run `make test` to run all the unit tests. | ||
|
||
Run `make test-integration` to run all the integration tests. Tests require Docker to be installed and running. | ||
The command will handle starting and stopping docker containers for you. | ||
|
||
## Source | ||
A source connector that pulls data from a DynamoDB table to downstream resources via Conduit. | ||
|
||
A source connector pulls data from an external resource and pushes it to downstream resources via Conduit. | ||
The connector starts with a snapshot of the data currently existent in the table, sends these records to the | ||
destination, then starts the CDC (Change Data Capture) mode which will listen to events happening on the table | ||
in real-time, and sends these event records to the destination (these events include: `updates`, `deletes`, and `inserts`). | ||
|
||
The source connector uses [DynamoDB Streams](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Streams.html) to get CDC events, | ||
so you need to enable the stream before running the connector. Check out the documentation for [how to enable a DynamoDB Stream](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Streams.html#Streams.Enabling). | ||
|
||
### Configuration | ||
|
||
| name | description | required | default | example | | ||
|-----------------------|-----------------------------------------------------------------------|----------|---------|----------------------| | ||
| `table` | Table is the DynamoDB table name to pull data from. | true | | Employees | | ||
| `aws.region` | AWS region. | true | | us-east-1 | | ||
| `aws.accessKeyId` | AWS access key id. | true | | MY_ACCESS_KEY_ID | | ||
| `aws.secretAccessKey` | AWS secret access key. | true | | MY_SECRET_ACCESS_KEY | | ||
| `pollingPeriod` | Polling period for the CDC mode, formatted as a time.Duration string. | false | 1s | 100ms, 1m, 10m, 1h | | ||
| `skipSnapshot` | Determines weather to skip the snapshot or not. | false | false | true | | ||
| name | description | required | default | example | | ||
|-----------------------|-----------------------------------------------------------------------|----------|---------|-----------------------| | ||
| `table` | Table is the DynamoDB table name to pull data from. | true | | Employees | | ||
| `aws.region` | AWS region. | true | | us-east-1 | | ||
| `aws.accessKeyId` | AWS access key id. | true | | MY_ACCESS_KEY_ID | | ||
| `aws.secretAccessKey` | AWS secret access key. | true | | MY_SECRET_ACCESS_KEY | | ||
| `aws.url` | The URL for AWS (useful when testing the connector with localstack). | false | | http://localhost:4566 | | ||
| `pollingPeriod` | Polling period for the CDC mode, formatted as a time.Duration string. | false | 1s | 100ms, 1m, 10m, 1h | | ||
| `skipSnapshot` | Determines weather to skip the snapshot or not. | false | false | true | | ||
|
||
<!-- Todo: working on adding some implementation details --> | ||
|
||
![scarf pixel connector-dynamodb-readme](https://static.scarf.sh/a.png?x-pxid=cbb3901b-e502-4106-aa10-0b0726532dd6) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.