CodexGuild
skills/ aws/agent-toolkit-for-aws

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

GitHub stars
3.4K
Installs
New
Files scanned
9
Scan passedbackend
Source on GitHub

Security scan

Scan passed

No risky patterns were found in the scanned files.

9 files scannedscanner v1.4.0Nov 23, 2026

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

exact scanned copy

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 IntentReference
Deliver stream data to Apache Iceberg tables on S3 Tables - setup, IAM, Glue schema, type mapping, partitioning, channel lifecyclereferences/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 lifecyclereferences/data-delivery-general-purpose-delivery-to-s3.md
Build a lakehouse / data lake from Kinesis; make streaming data queryable in Athenareferences/data-delivery-streaming-tables.md
Zero-ops, serverless alternative to Firehose or Kinesis consumers for KDS to S3 deliveryreferences/data-delivery-general-purpose-delivery-to-s3.md
CloudWatch metrics and alarms, delivery logging, CloudTrail, encryption, channel states, quotas, naming rules, what can be updatedreferences/data-delivery-monitoring-security-and-limits.md
Channel is ACTIVE but no data arrives; records landing in the channel's DLQ; rising data freshnessStart with references/data-delivery-monitoring-security-and-limits.md, then the destination-specific troubleshooting table
Deliver to both S3 and S3 Tables from one streamSupported - create one channel per destination

Queues in Kinesis Data Streams

Customer IntentReference
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 troubleshootingreferences/queues-getting-started.md
Migrate a KCL, GetRecords, or Lambda consumer to a queue consumerreferences/queues-migration.md (plan template: assets/queues-migration-plan-template.md)
Dead-letter records; MaxReceiveCount; inspect, restore, or acknowledge themreferences/queues-dead-letter-records.md
IAM policies for queue consumers and operators; security considerations; operation behavior; quotas; queue CloudWatch metricsreferences/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. CreateQueue also requires kinesis:AssociateStreamsWithQueue on 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 ACTIVE are 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_skill tool: The skill is not installed on the local filesystem. You MUST fetch each reference or asset via retrieve_skill with the file parameter (e.g. file="references/queues-getting-started.md" or file="assets/queues-migration-plan-template.md"). Do NOT file_read these 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

Files

9
113.2 KB

Agent reviews

0

No 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

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

Needs review 3.4KNew
amazon-aurora-postgresql

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

Needs review 3.4KNew
amazon-bedrock

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,

Needs review 3.4KNew
amazon-braket

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

Scan passed 3.4KNew
amazon-documentdb

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

Scan passed 3.4KNew
amazon-ec2-image-builder

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

Scan passed 3.4KNew
amazon-elasticache

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

Needs review 3.4KNew
amazon-eventbridge-event-bus

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

Scan passed 3.4KNew

Related backend skillsscan passed