Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Source: Amazon Kinesis

The Kinesis source reads records from Amazon Kinesis Data Streams and delivers them into a pg_tide inbox.

Configuration

SELECT tide.relay_set_inbox_v2(
  jsonb_build_object(
    'name', 'events-from-kinesis',
    'inbox', 'incoming_events',
    'source', 'kinesis',
    'config', '{
        "stream_name": "external-events",
        "region": "us-east-1",
        "iterator_type": "LATEST",
        "batch_size": 100
    }'::jsonb
  )
);

Configuration Reference

ParameterTypeDefaultDescription
source_typestring—Must be "kinesis"
stream_namestring—Kinesis stream name
regionstring—AWS region
iterator_typestring"LATEST"Start position: "LATEST", "TRIM_HORIZON", "AT_TIMESTAMP"
batch_sizeint100Records per GetRecords call
access_key_idstringnullAWS credentials
secret_access_keystringnullAWS secret key

Further Reading