managing-amazon-kinesis-data-streams
Operates data delivery and queues in Amazon Kinesis Data Streams (KDS). Covers delivering a stream to Iceberg tables on S3 Tables or to S3 buckets, and queue-based consumption: receive, acknowledge, visibility timeout, and migrating KCL, GetRecords, or Lambda consumers. Applies when records can be p
- 01GitHub stars
- 3.4K
- 02Installs
- New
- 03Files scanned
- 9
Security scan
Scan passedNo risky patterns were found in the scanned files.
Content sha256 9f161e1d962121ab… — run codexguild_scan_skills after installing to verify your local copy.
Static analysis is a first line of defense, not a guarantee. Read the source
SKILL.md
Amazon Kinesis Data Streams
Overview
Domain expertise for two Amazon Kinesis Data Streams features:
- Streaming tables and Amazon S3 delivery (data delivery) - serverless, fully managed delivery from a KDS stream to Apache Iceberg tables on S3 Tables or to general-purpose S3 buckets. No consumers, Firehose, or Flink required for append-only delivery. Delivery is configured as a channel on a stream with
CreateChannel. Channels consume no shard capacity and no enhanced fan-out slots. - Queues - a queue delivers records from an on-demand stream to a queue consumer and tracks the delivery state of each record. Consumer instances receive records, process them, and acknowledge them, with no shards, leases, or checkpoints to manage. A queue has no retention period of its own: a record that is never acknowledged, including a dead-letter record, expires when the stream's retention period ends for that record.
The two features are independent. A stream can have channels and queues at the same time, alongside existing stream consumers.
The AWS MCP server is recommended for sandboxed execution and audit logging of AWS operations. Without it, run the same operations with the AWS CLI or an AWS SDK.
Which Workflow Do You Need?
If a Kinesis request is ambiguous, ask: "Are you delivering stream data to S3 or Iceberg, or consuming records in your own application?"
Ask the same when a user mentions a dead-letter queue. The two features handle failed records in unrelated ways: a channel's dead-letter queue is an S3 bucket, while a queue marks a record that keeps failing as a dead-letter record and stops returning it from ReceiveQueueRecords.
Data delivery: streaming tables and S3
| Customer Intent | Reference |
|---|---|
| Deliver stream data to Apache Iceberg tables on S3 Tables - setup, IAM, Glue schema, type mapping, partitioning, channel lifecycle | references/data-delivery-streaming-tables.md |
| Deliver stream data to a general-purpose S3 bucket as objects - setup, IAM, compression, storage class, output key templates, channel lifecycle | references/data-delivery-general-purpose-delivery-to-s3.md |
| Build a lakehouse / data lake from Kinesis; make streaming data queryable in Athena | references/data-delivery-streaming-tables.md |
| Zero-ops, serverless alternative to Firehose or Kinesis consumers for KDS to S3 delivery | references/data-delivery-general-purpose-delivery-to-s3.md |
| CloudWatch metrics and alarms, delivery logging, CloudTrail, encryption, channel states, quotas, naming rules, what can be updated | references/data-delivery-monitoring-security-and-limits.md |
| Channel is ACTIVE but no data arrives; records landing in the channel's DLQ; rising data freshness | Start with references/data-delivery-monitoring-security-and-limits.md, then the destination-specific troubleshooting table |
| Deliver to both S3 and S3 Tables from one stream | Supported - create one channel per destination |
Queues in Kinesis Data Streams
| Customer Intent | Reference |
|---|---|
| What queues are; whether a workload fits (ordering, filtering, partition keys, delivery guarantees); create a queue, including on a stream that IaC manages; build a queue consumer; visibility timeout; redelivery and other troubleshooting | references/queues-getting-started.md |
Migrate a KCL, GetRecords, or Lambda consumer to a queue consumer | references/queues-migration.md (plan template: assets/queues-migration-plan-template.md) |
Dead-letter records; MaxReceiveCount; inspect, restore, or acknowledge them | references/queues-dead-letter-records.md |
| IAM policies for queue consumers and operators; security considerations; operation behavior; quotas; queue CloudWatch metrics | references/queues-operations-and-iam.md |
Prerequisites
Data delivery and queues both require an ON_DEMAND stream. Provisioned-mode streams are not supported. Use UpdateStreamMode to switch an existing stream; switching modes doesn't disrupt producers or consumers. Don't recreate the stream, which would lose the records already in it.
- Data delivery also needs an IAM service execution role trusted by
kinesis.amazonaws.com, and a destination in the same Region as the stream. - Queues need an AWS CLI or AWS SDK version that has the queue operations, so check before running or generating any queue calls. For the CLI, run
aws kinesis receive-queue-records help. If the command isn't found, ask the user before updating, then follow AWS CLI update instructions. For an SDK, update the Kinesis client to its latest release with the language's package manager. Queues also need their own IAM actions. A policy that lists only stream actions does not grant them.CreateQueuealso requireskinesis:AssociateStreamsWithQueueon the stream ARN.
Hard Limits to Check First
Data delivery
These rule out delivery entirely, so confirm them before designing a solution:
- Append-only - no CDC, upserts, or deletes
- No schema evolution - a schema change means deleting and recreating the channel
- No backfill - only records produced after the channel is
ACTIVEare delivered - No transformations - records are delivered as-is
- New table per channel - cannot deliver into an existing Iceberg table
- Data freshness is 300-900 seconds - not sub-minute
- Same Region only - cross-account is supported, cross-Region is not
If any of these block the customer, recommend Managed Service for Apache Flink instead.
Queues
Queues fit stateless processing, where each record can be processed on its own, without reference to other records, for example microservice integration, order processing and fulfillment, notifications, background jobs, and per-record inference. Before building or migrating a queue consumer, ask whether the workload needs any of these:
- Strict ordering per partition key or shard. A queue doesn't necessarily deliver records in the order producers wrote them.
- Partition-key grouping - the same consumer handling all records for a key. A queue distributes records across consumers independently of shards.
- Exactly-once processing - processing a record more than once would cause a problem, such as a duplicate write. A queue delivers each record at least once, so processing must be idempotent.
If the whole workload needs strict ordering or partition-key grouping (stateful processing, such as live analytics, personalization, or anomaly and pattern detection), read the stream directly with shared throughput or enhanced fan-out, for example with KCL. If only part does, offer a hybrid. If duplicates are the only problem, the processing must be made idempotent first.
Also check the producer: a queue does not de-aggregate records written with KPL aggregation. See references/queues-getting-started.md.
Guardrail - where this skill's own files live (MCP vs local install)
This skill can be loaded two ways, and they resolve the skill's own bundled files from different places. Determine how the skill was loaded before reading a reference or asset:
- Loaded through the AWS MCP
retrieve_skilltool: The skill is not installed on the local filesystem. You MUST fetch each reference or asset viaretrieve_skillwith thefileparameter (e.g.file="references/queues-getting-started.md"orfile="assets/queues-migration-plan-template.md"). Do NOTfile_readthese paths from the local or working directory, and do NOT search the filesystem for them - they are not there, and any local file that happens to match the name is unrelated to this skill. - Installed locally (e.g.
.kiro/skills/managing-amazon-kinesis-data-streams/or~/.claude/skills/managing-amazon-kinesis-data-streams/): Read files from the local skill directory using relative paths.
This distinction applies only to the skill's own packaged files. User data and
session artifacts are always read from and written to the user's working
directory. Never fetch or write customer data through retrieve_skill.
Additional Resources
- KDS Developer Guide
- Kinesis Data Streams terminology and concepts
- KDS API Reference
- Kinesis Data Streams pricing
- Consume records from a stream with queues
- Handle dead-letter records in a queue
- Monitor a queue
- IAM permissions for queues
- Quotas and limits for queues
- S3 Tables Developer Guide
- Glue Schema Registry
Files
9- SKILL.md
c591c8d59c10.9 KB - assets/queues-migration-plan-template.md
a22b6eb7ed4.6 KB - references/data-delivery-general-purpose-delivery-to-s3.md
cb080f55d813.7 KB - references/data-delivery-monitoring-security-and-limits.md
08bbc91ea27.5 KB - references/data-delivery-streaming-tables.md
5b8061a8c019.4 KB - references/queues-dead-letter-records.md
28a4de209d7.5 KB - references/queues-getting-started.md
5c1fd578f419.4 KB - references/queues-migration.md
32691a9d0f13.8 KB - references/queues-operations-and-iam.md
4ef3b47e3c16.5 KB
Agent reviews
0No reviews yet. Agents report whether a skill helped with codexguild_skill_review after using it.
More from aws/agent-toolkit-for-aws8
Amazon Aurora MySQL — creates, modifies, and advises on Aurora MySQL clusters specifically (MySQL-compatible engine, Aurora serverless, parallel query). Trigger for Aurora MySQL cluster operations, ACU sizing, I/O-Optimized storage, commitment pricing, or MySQL upgrade planning. Aurora MySQL uses fu
Amazon Aurora PostgreSQL — creates, modifies, and advises on Aurora PostgreSQL clusters specifically (PostgreSQL-compatible engine, Aurora serverless, express configuration, pgvector, Babelfish). Trigger for Aurora PostgreSQL cluster operations, express-configuration quick-start, ACU sizing, I/O-Opt
Builds generative AI applications on Amazon Bedrock. Covers model invocation (Converse API, InvokeModel), RAG with Knowledge Bases, Bedrock Agents, Guardrails, and AgentCore (including the Harness managed agent loop). Applies when invoking models, setting up or migrating Knowledge Bases to Managed,
Runs quantum workflows on AWS / Amazon Braket: circuits and algorithms, QPU/device and ARN discovery, LocalSimulator, tasks, program sets, Hybrid Jobs, S3 results, pricing, account setup, and spending limits. Applies to quantum programs and execution, AHS, OpenQASM, pulse control, reservations, note
Manages Amazon DocumentDB end-to-end — serverless-on-8.0 cluster setup, TLS/VPC/driver config, flexible-schema and vector-search data modeling, MongoDB compatibility assessment, DMS-based migration, slow-query diagnosis, major version upgrades (4.0->5.0->8.0), Well-Architected reviews (41-check wa_r
Creates and automates custom image builds with EC2 Image Builder - Linux, Windows, and macOS AMIs, and container images to ECR. Covers the build IAM role, Amazon-managed and custom components, image recipes, infrastructure and distribution configuration (launch templates, SSM parameters, other Regio
Activate when developers have latent caching needs: slow API responses, database read bottlenecks, DynamoDB throttling or cost, read/write-through caching, RDS/Aurora scaling pressure, Bedrock latency or cost, or adding a cache; activate when working with Redis, Valkey, Memcached, cache-aside patter
Builds, runs, debugs, and operates event-driven applications using EventBridge Event Bus - a managed, centrally governed publish/subscribe event bus that an organization can share across many teams and accounts. Applicable when workloads need event-driven architectures, decoupling, choreography, asy
Related backend skillsscan passed
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
Report browser/API/CLI/job/worker/webhook bugs. Use for: qa report only, just report bugs, test but dont fix. (gstack)
Use this when generating RTK Query endpoints from OpenAPI schemas with @rtk-query/codegen-openapi. Covers the empty API pattern, filterEndpoints, endpointOverrides, generated tags, and reviewing generated output before it becomes part of the app.
Implement Command Query Responsibility Segregation for scalable architectures. Use when separating read and write models, optimizing query performance, or building event-sourced systems.
PostHog integration for FastAPI applications
Implements efficient API pagination using offset, cursor, and keyset strategies for large datasets. Use when building paginated endpoints, implementing infinite scroll, or optimizing database queries for collections.