dsql-to-analytics-pipelinelisted
Install: claude install-skill jaingxyz/aws-data-skills
# Aurora DSQL to Analytics Pipeline Skill
This skill covers everything DOWNSTREAM of the DSQL CDC stream: how to wire
the stream into Kinesis, write a correct consumer Lambda, model events at
the analytics sink, and avoid the data-loss footguns that come with async
statement APIs and unordered delivery. Source-side DSQL concerns (DDL,
IAM auth, OCC, schema design) belong to the companion `dsql` skill.
## Why this skill exists
In the Aurora DSQL CDC public preview, both INSERT and UPDATE arrive as
`op='c'`. Code that expects a separate `'u'` op (the typical Debezium /
DMS shape) will silently treat every UPDATE as if no row existed, then
miss the latest state when downstream readers query a naive `MAX(event_id)`
view. The append-only + ROW_NUMBER-by-commit-timestamp pattern this skill
prescribes handles both cases correctly. There are several sibling
footguns (the Redshift Data API's 200-parameter cap, the async
`execute_statement` poll requirement, poison-record wedging) that cause
silent data loss when missed. Each one is called out below.
## When to use
- You have an Aurora DSQL cluster and want the change events available
for analytics in Redshift Serverless, S3 Tables (Iceberg), or both.
- You are writing the consumer Lambda that reads from the DSQL CDC
Kinesis stream and lands rows in an analytics sink.
- You are choosing between an in-place upsert and an append-only event
log for the sink table shape.
- You need the operational gotchas (batch sizes, retries,