-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathMakefile
34 lines (29 loc) · 1 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
include .env
raw:
decodable stream create \
--name dynamodb_cdc_customers \
--field awsRegion=string \
--field eventID=string \
--field eventName=string \
--field userIdentity=string \
--field recordFormat=string \
--field tableName=string \
--field dynamodb="row< \
ApproximateCreationDateTime bigint, \
Keys row<userid row<N int>>, \
NewImage row<last_name row<S string>, phone row<N int>, userid row<N int>, first_name row<S string> >, \
OldImage row<last_name row<S string>, phone row<N int>, userid row<N int>, first_name row<S string> >, \
SizeBytes int >" \
--field eventSource=string
kinesis:
decodable conn create \
--name dynamodb_cdc_customers_source \
--connector kinesis \
--type source \
--stream-id=$(shell decodable stream list -o json | jq -sr '.[] |select(.name=="dynamodb_cdc_customers")|.id ' ) \
--prop aws.credentials.role.arn=$(AWS_ARN) \
--prop aws.region=$(AWS_REGION) \
--prop format=json \
--prop stream=$(AWS_KINESIS_STREAM)
load:
node load.js