You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This example demonstrate how to use Flink DynamoDB Streams source.
10
+
11
+
This example uses the `DynamoDbStreamsSource` provided in Apache Flink's connector ecosystem.
12
+
13
+
### Pre-requisite set up
14
+
15
+
To run this example, the following resources needs to be created:
16
+
1. A DynamoDB table - the example uses a table schema documented using `@DynamoDbBean`. See `DdbTableItem`.
17
+
2. Set up DynamoDB Stream against the created table. See [DynamoDB Streams documentation](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Streams.html).
18
+
3. Add items to the DynamoDB table using the schema created via console.
19
+
20
+
21
+
### Runtime configuration
22
+
23
+
The application reads the runtime configuration from the Runtime Properties, when running on Amazon Managed Service for Apache Flink,
24
+
or, when running locally, from the [`resources/flink-application-properties-dev.json`](resources/flink-application-properties-dev.json) file located in the resources folder.
|`InputStream0`|`stream.arn`| ARN of the input stream. |
31
+
32
+
Every parameter in the `InputStream0` group is passed to the DynamoDB Streams consumer, for example `flink.stream.initpos`.
33
+
34
+
See Flink DynamoDB connector docs](https://nightlies.apache.org/flink/flink-docs-master/docs/connectors/datastream/dynamodb/) for details about configuring the DynamoDB connector.
35
+
36
+
To configure the application on Managed Service for Apache Flink, set up these parameter in the *Runtime properties*.
37
+
38
+
To configure the application for running locally, edit the [json file](resources/flink-application-properties-dev.json).
39
+
40
+
### Running in IntelliJ
41
+
42
+
You can run this example directly in IntelliJ, without any local Flink cluster or local Flink installation.
43
+
44
+
See [Running examples locally](../running-examples-locally.md) for details.
0 commit comments