Kinesis Data Analytics Deployer
An AWS CloudOps agent skill that deploys Amazon Kinesis Data Analytics
applications (Managed Service for Apache Flink and Studio SQL
applications) with correct production defaults. Emits a
READY_TO_DEPLOY checklist verifying every configuration item.
Quick navigation
| Need |
Section |
| What MUST be in the response |
"STRICT output contract" |
| Why application-before-code order matters |
"Reasoning framework" |
| What to verify before deploying |
"Prerequisites" |
| The ordered deployment steps |
"Deployment procedure" |
| Common silent-failure pitfalls |
"NEVER" |
| SQL-vs-Flink decision matrix |
"Workload matrix" |
| 2024-2026 feature changes |
"Recent AWS features" |
| Deep CLI sequences |
references/cli-commands-and-iac.md |
| Execution roles, parallelism, checkpoints, full NEVER |
references/execution-and-capacity-guide.md |
STRICT output contract
When this skill is invoked with a Kinesis Data Analytics deployment
request, the agent MUST respond with the READY_TO_DEPLOY checklist
defined in "Output format" using the literal all-caps labels
APPLICATION:, VERDICT:, CHECKLIST:, and VERIFICATION_COMMANDS:.
Do NOT preface the checklist with prose, headings, or disclaimers —
emit the block as the first lines.
Required output structure
APPLICATION: <application-name> — the KDA application being
deployed.
VERDICT: READY_TO_DEPLOY OR VERDICT: PREREQUISITES_MISSING.
CHECKLIST: followed by indented lines with status markers
([✓], [✗], [OPTIONAL], [INPUT NEEDED]).
VERIFICATION_COMMANDS: followed by indented
aws kinesisanalyticsv2 ... commands.
FORBIDDEN output patterns
- No prose preamble before
APPLICATION: — first non-empty line
MUST be APPLICATION:.
- No markdown variants of labels — write
VERDICT:, not
**VERDICT:**, ### Verdict, or `VERDICT`.
- No swapping verdict tokens — exactly
READY_TO_DEPLOY or
PREREQUISITES_MISSING.
- No omitting
VERIFICATION_COMMANDS: — include even when
PREREQUISITES_MISSING.
- No extra sections after
VERIFICATION_COMMANDS: — the
checklist block is the entire response.
- No status marker drift — use only
[✓], [✗], [OPTIONAL],
[INPUT NEEDED].
Perfect example (copy the shape exactly)
APPLICATION: fraud-detection-flink
VERDICT: READY_TO_DEPLOY
CHECKLIST:
[✓] Runtime environment — FLINK-1_19, application mode STREAMING
[✓] Service execution role — arn:aws:iam::123456789012:role/KDAExecutionRole (Kinesis read, Firehose write, CloudWatch Logs, S3 code)
[✓] Source — Kinesis Data Stream arn:aws:kinesis:us-east-1:123456789012:stream/transactions, starting position LATEST
[✓] Destination — Kinesis Data Stream arn:aws:aws...:stream/alerts, parallelism 4
[✓] Application code — s3://kda-apps/fraud-detection-1.0.0.jar (pinned, NOT latest)
[✓] Checkpointing — interval 60000 ms, min pause 5000 ms, configuration UPDATE
[✓] Parallelism — 4 (parallelismPerKPU 1, 4 KPUs total)
[✓] CloudWatch logging — enabled, log group /aws/kinesis-analytics/fraud-detection-flink
[✓] Snapshots — configured for stateful recovery
[✓] Tags — Environment=production, Application=fraud-detection
[OPTIONAL] Studio notebook — Apache Zeppelin (not configured for this app)
VERIFICATION_COMMANDS:
aws kinesisanalyticsv2 describe-application --application-name fraud-detection-flink
aws iam get-role --role-name KDAExecutionRole
aws kinesis describe-stream --stream-name transactions
aws logs describe-log-groups --log-group-name-prefix /aws/kinesis-analytics/fraud-detection-flink
Reasoning framework (why the application-before-code order matters)
- Application FIRST — a KDA application is the container for all
Flink/SQL streaming work. It defines the runtime environment
(FLINK-1_19 or SQL-1_0), execution role, parallelism, and
checkpointing. Without an application you cannot run code.
- Service execution role — the IAM role the application assumes
at runtime for Kinesis reads, Firehose/S3 writes, CloudWatch
logging, and S3 code retrieval. Without it, the application fails
to start with
AccessDeniedException on the first source read.
- Source configuration — Kinesis Data Stream or Firehose as the
streaming source. Defines the stream ARN and starting position
(LATEST, TRIM_HORIZON, or AT_TIMESTAMP). Without a source, the
application starts but processes zero records.
- Destination configuration — Kinesis Data Stream, Firehose, or
S3 as the destination. SQL apps emit INSERT results; Flink apps
write via sinks. Without a destination, processed records are
dropped.
- Application code — for Flink, a JAR/Python package in S3; for
SQL, an in-line SQL script. Pin to a versioned key — NEVER
latest
or /current/ paths.
- Checkpointing and parallelism LAST — tuning parameters applied
AFTER the application is created. Checkpointing enables stateful
recovery; parallelism controls throughput. Changing them requires
an application update.
Prerequisites (verify before deployment)
| Prerequisite |
Why it matters |
How to verify |
| IAM service execution role |
Trust kinesisanalytics.amazonaws.com. Scope for Kinesis/Firehose/S3/CloudWatch. NEVER AdministratorAccess. |
aws iam get-role --role-name <role> |
| Source Kinesis stream (or Firehose) |
MUST exist and be ACTIVE before the application reads. Without it, the source is empty. |
aws kinesis describe-stream --stream-name <name> |
| Destination resource |
Kinesis stream, Firehose delivery stream, or S3 bucket. MUST exist before the application writes. |
aws kinesis describe-stream / aws firehose describe-delivery-stream / aws s3 ls |
| S3 code bucket (Flink apps) |
Stores the application JAR/Python package. MUST exist with the code object. |
aws s3 ls s3://<bucket>/<key> |
| CloudWatch log group |
KDA streams application logs and Flink TaskManager logs. Recommended for production. |
aws logs describe-log-groups --log-group-name-prefix /aws/kinesis-analytics/ |
| Runtime environment |
FLINK-1_19 (or SQL-1_0 for legacy SQL). Determines engine version. Use the latest stable Flink runtime. |
aws kinesisanalyticsv2 list-applications (check similar apps) |
| Service quota |
Default KPUs per Region per account. Request increase BEFORE production. |
aws service-quotas get-service-quota --service-code kinesisanalytics --quota-code L-XXXXXXXX |
| VPC configuration (if private sources) |
If the app reads from private MSK or private OpenSearch, VPC subnets and security groups are REQUIRED. |
aws ec2 describe-subnets --subnet-ids <ids> |
| Glue schema registry (if avro/protobuf) |
Source records using Avro/Protobuf MUST have a schema in the registry for Flink to deserialize. |
aws glue get-registry --registry-name <name> |
Deployment procedure (apply in order)
Step 1: IAM service execution role
The service execution role is assumed by the KDA application for all
runtime AWS API calls (Kinesis reads, Firehose writes, S3 code
retrieval, CloudWatch logging). Without it, the application fails on
the first source read.
aws iam create-role \
--role-name KDAExecutionRole \
--assume-role-policy-document '{
"Version": "2012-10-17",
"Statement": [{
"Effect": "Allow",
"Principal": {"Service": "kinesisanalytics.amazonaws.com"},
"Action": "sts:AssumeRole"
}]
}'
aws iam put-role-policy \
--role-name KDAExecutionRole \
--policy-name kda-exec \
--policy-document '{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": ["kinesis:GetRecords", "kinesis:GetShardIterator", "kinesis:DescribeStream", "kinesis:ListShards"],
"Resource": "arn:aws:kinesis:us-east-1:123456789012:stream/transactions"
},
{
"Effect": "Allow",
"Action": ["kinesis:PutRecord", "kinesis:PutRecords"],
"Resource": "arn:aws:kinesis:us-east-1:123456789012:stream/alerts"
},
{
"Effect": "Allow",
"Action": ["s3:GetObject"],
"Resource": "arn:aws:s3:::kda-apps/fraud-detection-1.0.0.jar"
},
{
"Effect": "Allow",
"Action": ["logs:CreateLogGroup", "logs:CreateLogStream", "logs:PutLogEvents", "logs:DescribeLogGroups"],
"Resource": "arn:aws:logs:us-east-1:123456789012:log-group:/aws/kinesis-analytics/*"
},
{
"Effect": "Allow",
"Action": ["kinesisanalytics:CreateApplicationSnapshot", "kinesisanalytics:DeleteApplicationSnapshot", "kinesisanalytics:DescribeApplicationSnapshot"],
"Resource": "arn:aws:kinesisanalytics:us-east-1:123456789012:application/fraud-detection-flink"
}
]
}'
Rules:
- Trust
kinesisanalytics.amazonaws.com — NOT
firehose.amazonaws.com (separate service principal).
- NEVER use
AdministratorAccess — scope to the specific Kinesis
streams, Firehose delivery streams, and S3 code objects the app
needs.
- CloudWatch Logs permissions — required for application log
delivery and Flink framework errors.
- Pass role for KDA-created resources — if the app creates
snapshots, include
kinesisanalytics:*ApplicationSnapshot.
Step 2: Confirm source stream exists
aws kinesis describe-stream --stream-name transactions \
--query 'StreamDescription.{Status:StreamStatus,ARN:StreamARN,Shards:Shards[*].ShardId}'
# StreamStatus MUST be ACTIVE
For Firehose source:
aws firehose describe-delivery-stream --delivery-stream-name ingestion-stream \
--query 'DeliveryStreamDescription.{Status:DeliveryStreamStatus,ARN:DeliveryStreamARN}'
# DeliveryStreamStatus MUST be ACTIVE
Step 3: Create the application (Flink)
aws kinesisanalyticsv2 create-application \
--application-name fraud-detection-flink \
--runtime-environment FLINK-1_19 \
--service-execution-role arn:aws:iam::123456789012:role/KDAExecutionRole \
--application-configuration '{
"ApplicationCodeConfiguration": {
"CodeContent": {
"S3ContentLocation": {
"BucketARN": "arn:aws:s3:::kda-apps",
"FileKey": "fraud-detection-1.0.0.jar"
},
"CodeContentType": "ZIPFILE"
},
"CodeContentType": "ZIPFILE"
},
"FlinkApplicationConfiguration": {
"CheckpointConfiguration": {
"ConfigurationType": "CUSTOM",
"CheckpointingEnabled": true,
"CheckpointInterval": 60000,
"MinPauseBetweenCheckpoints": 5000
},
"ParallelismConfiguration": {
"ConfigurationType": "CUSTOM",
"Parallelism": 4,
"ParallelismPerKPU": 1
},
"MonitoringConfiguration": {
"ConfigurationType": "CUSTOM",
"MetricsLevel": "APPLICATION",
"LogLevel": "INFO",
"LogStreamARN": "arn:aws:logs:us-east-1:123456789012:log-group:/aws/kinesis-analytics/fraud-detection-flink"
}
},
"EnvironmentProperties": {
"PropertyGroups": [
{"PropertyGroupId": "ConsumerConfig", "PropertyMap": {"STREAM_NAME": "transactions", "AWS_REGION": "us-east-1", "SCAN_START_POSITION": "LATEST"}}
]
},
"ApplicationSnapshotConfiguration": {
"SnapshotsEnabled": true
}
}' \
--tags Environment=production,Application=fraud-detection
Step 4: Create the application (SQL)
aws kinesisanalyticsv2 create-application \
--application-name session-windows-sql \
--runtime-environment SQL-1_0 \
--service-execution-role arn:aws:iam::123456789012:role/KDAExecutionRole \
--application-configuration '{
"SqlApplicationConfiguration": {
"Inputs": [{
"NamePrefix": "SOURCE_SQL_STREAM",
"KinesisStreamsInput": {
"ResourceARN": "arn:aws:kinesis:us-east-1:123456789012:stream/clicks",
"RoleARN": "arn:aws:iam::123456789012:role/KDAExecutionRole"
},
"InputSchema": {
"RecordFormat": {"RecordFormatType": "JSON"},
"RecordColumns": [
{"Name": "event_time", "SqlType": "TIMESTAMP", "Mapping": "$.event_time"},
{"Name": "user_id", "SqlType": "VARCHAR(64)", "Mapping": "$.user_id"},
{"Name": "event_type", "SqlType": "VARCHAR(32)", "Mapping": "$.event_type"}
]
},
"InputParallelism": {"Count": 1},
"InputStartingPositionConfiguration": {"InputStartingPosition": "NOW"}
}]
},
"ApplicationCodeConfiguration": {
"CodeContent": {
"TextInput": "CREATE OR REPLACE PUMP \"SESSION_PUMP\" AS INSERT INTO DESTINATION_SQL_STREAM SELECT STREAM user_id, COUNT(*) AS event_count, SESSION_START() AS window_start, SESSION_END() AS window_end FROM SOURCE_SQL_STREAM_001 GROUP BY user_id, SESSION(event_time, INTERVAL '''60''' SECONDS);"
},
"CodeContentType": "INLINE"
}
}' \
--tags Environment=production,Application=session-windows
Step 5: Configure source via CloudWatch log group
aws logs create-log-group \
--log-group-name /aws/kinesis-analytics/fraud-detection-flink
Step 6: Start the application
aws kinesisanalyticsv2 start-application \
--application-name fraud-detection-flink \
--run-configuration '{
"FlinkRunConfiguration": {"AllowNonRestoredState": false},
"SqlRunConfigurations": [],
"ApplicationRestoreConfiguration": {
"RestoreType": "RESTORE_FROM_LATEST_SNAPSHOT"
}
}'
Wait for RUNNING state:
aws kinesisanalyticsv2 describe-application \
--application-name fraud-detection-flink \
--query 'ApplicationDetail.ApplicationStatus'
# Should return 'RUNNING'
Step 7: Checkpointing (Flink stateful recovery)
Moved verbatim → references/execution-and-capacity-guide.md § "Step 7: Checkpointing (Flink stateful recovery)".
Load when: configuring Flink checkpointing — interval, min pause, AllowNonRestoredState rules.
Step 8: Parallelism tuning
Moved verbatim → references/execution-and-capacity-guide.md § "Step 8: Parallelism tuning".
Load when: sizing parallelism and KPUs — matching parallelism to shard count, ParallelismPerKPU, JobManager overhead.
Step 9: Studio notebook (Zeppelin, interactive analysis)
Moved verbatim → references/execution-and-capacity-guide.md § "Step 9: Studio notebook (Zeppelin, interactive analysis)".
Load when: creating a Studio notebook — Zeppelin application config, custom artifacts, promotion to a production app.
Step 10: Application snapshots (stateful recovery)
Moved verbatim → references/execution-and-capacity-guide.md § "Step 10: Application snapshots (stateful recovery)".
Load when: using snapshots for stateful recovery — create/list snapshots and RESTORE_FROM_CUSTOM_SNAPSHOT starts.
Step 11: Verification
aws kinesisanalyticsv2 describe-application --application-name fraud-detection-flink
aws kinesisanalyticsv2 describe-application --application-name fraud-detection-flink --query 'ApplicationDetail.ApplicationStatus'
aws iam get-role --role-name KDAExecutionRole
aws kinesis describe-stream --stream-name transactions
aws logs describe-log-groups --log-group-name-prefix /aws/kinesis-analytics/fraud-detection-flink
aws kinesisanalyticsv2 list-application-snapshots --application-name fraud-detection-flink
Recent AWS features (2024-2026)
Moved verbatim → references/advanced-patterns.md § "Recent AWS features (2024-2026)".
Load when: checking 2024-2026 feature availability — session windows, snapshots, Flink 1.19, Glue Catalog, VPC sources.
Workload matrix
| Workload |
Runtime |
Source |
Destination |
Parallelism |
Checkpointing |
Studio notebook |
| Fraud detection (Flink) |
FLINK-1_19 |
Kinesis Stream |
Kinesis Stream |
4-8 |
60s interval |
No |
| Sessionization (SQL) |
SQL-1_0 |
Kinesis Stream |
Kinesis Stream |
1-2 |
N/A (SQL) |
No |
| Click analytics (SQL) |
SQL-1_0 |
Kinesis Stream |
Firehose |
1 |
N/A (SQL) |
No |
| Anomaly detection (Flink) |
FLINK-1_19 |
Kinesis Stream |
S3 via Firehose |
8 |
30s interval |
No |
| Exploratory analysis (Zeppelin) |
ZEPPELIN-FLINK-1_0 |
Kinesis Stream |
(notebook output) |
2 |
Optional |
Yes |
| ETL enrichment (Flink) |
FLINK-1_19 |
Kinesis Stream |
Firehose to S3 |
4 |
60s interval |
No |
| Alerting (SQL lambdas) |
SQL-1_0 |
Kinesis Stream |
Lambda via Firehose |
1 |
N/A (SQL) |
No |
| Dev/test |
FLINK-1_19 |
Kinesis Stream |
Kinesis Stream |
1 |
120s interval |
Optional |
NEVER (top 5 — full list of 12 in references)
- NEVER start a KDA application that has no service execution role
configured. The application fails immediately with
AccessDeniedException on the first Kinesis GetRecords call. The
execution role is the #1 prerequisite for KDA.
- NEVER use
AdministratorAccess on the service execution role. Scope
to the specific Kinesis streams, Firehose delivery streams, and S3
code objects the app needs. KDA applications run arbitrary streaming
code — a broad role is a privilege escalation vector.
- NEVER deploy a Flink application that reads from a Kinesis stream
with fewer shards than
Parallelism. Sub-parallelism wastes KPUs.
Match Parallelism to the source shard count for full utilization.
- NEVER disable checkpointing in production. A failure means full
state loss and replay from the earliest unprocessed record. For
stateful Flink apps, checkpoints are the ONLY recovery mechanism.
- NEVER use
latest or unversioned S3 keys for application code. KDA
pulls the code at application start — a new push silently changes
what runs. Pin to a versioned key (e.g., fraud-detection-1.0.0.jar)
or SHA suffix. #1 reproducibility breaker.
Expert heuristic — parallelism, checkpoints, and SQL-vs-Flink strategy
Moved verbatim → references/execution-and-capacity-guide.md § "Expert heuristic — parallelism, checkpoints, and SQL-vs-Flink strategy".
Load when: tuning strategy — SQL-vs-Flink selection, session-window gaps, parallelism sizing, checkpoint intervals, log retention.
Pre-flight safety checks (run before any deployment CLI)
Moved verbatim → references/diagnostic-commands.md § "Pre-flight safety checks (run before any deployment CLI)".
Load when: about to run any deployment CLI — the confirmation checklist covering role, streams, code object, quota, log group.
Output format — MANDATORY literal labels
When invoked with a Kinesis Data Analytics deployment request, your
ENTIRE response MUST be the checklist block below. The labels are
case-sensitive all-caps keywords. Do NOT write a preamble. Start
with APPLICATION: and stop after the VERIFICATION_COMMANDS: block.
APPLICATION: <name>
VERDICT: READY_TO_DEPLOY | PREREQUISITES_MISSING
CHECKLIST:
[✓] Runtime environment — FLINK-1_19 | SQL-1_0 | ZEPPELIN-FLINK-1_0
[✓] Service execution role — <role-arn> (<scoped-permissions>)
[✓] Source — Kinesis Data Stream | Firehose, <stream-arn>, starting position <LATEST | TRIM_HORIZON | NOW>
[✓] Destination — Kinesis Data Stream | Firehose | S3, <resource-arn>, parallelism <n>
[✓] Application code — s3://<bucket>/<key> (Flink) | inline SQL (SQL)
[✓] Checkpointing — interval <ms>, min pause <ms>, configuration CUSTOM | DEFAULT
[✓] Parallelism — <n> (parallelismPerKPU <n>, <total> KPUs)
[✓] CloudWatch logging — enabled, log group <log-group>
[✓] Tags — <tags>
[OPTIONAL] Studio notebook — Apache Zeppelin (configured | not configured)
[OPTIONAL] Application snapshots — enabled for stateful recovery
VERIFICATION_COMMANDS:
aws kinesisanalyticsv2 describe-application --application-name <name>
aws iam get-role --role-name <exec-role>
aws kinesis describe-stream --stream-name <source-stream>
aws logs describe-log-groups --log-group-name-prefix /aws/kinesis-analytics/<name>
Status marker semantics:
[✓] — applied and verified.
[✗] — NOT applied or misconfigured. Cite the gap.
[OPTIONAL] — recommended but not required.
[INPUT NEEDED] — prerequisite value missing; operator must provide.
PREREQUISITES_MISSING verdict: if any REQUIRED prerequisite is
missing (execution role, source stream, destination resource, S3 code
object for Flink apps), the verdict is PREREQUISITES_MISSING.
References (load on demand)
- references/cli-commands-and-iac.md — full copy-pasteable CLI sequence for all 11 deployment steps with Terraform / CloudFormation equivalents (existing)
- references/execution-and-capacity-guide.md — checkpointing, parallelism and KPU tuning, Studio notebook setup, application snapshots, expert SQL-vs-Flink heuristics (moved verbatim; existing deep reference)
- references/diagnostic-commands.md — pre-flight safety checks to run before any deployment CLI
- references/advanced-patterns.md — edge-case handling (cross-account sources, schema evolution, VPC sources) and recent AWS features 2024-2026
Domain
AWS CloudOps / Kinesis Data Analytics Streaming Compute Provisioning.
Edge-case handling
Moved verbatim → references/advanced-patterns.md § "Edge-case handling".
Load when: hitting an edge case — cross-account sources, schema evolution, snapshot restore with code changes, VPC/private MSK sources.
AWS documentation
References
references/cli-commands-and-iac.md — full copy-pasteable CLI command
sequence for all 11 deployment steps, including execution role
creation, source stream verification, Flink/SQL application
creation, checkpointing and parallelism configuration, Studio
notebook setup, application snapshots, and Terraform /
CloudFormation equivalents.
references/execution-and-capacity-guide.md — deep reference on
service execution role scoping, parallelism and KPU tuning,
checkpointing strategy, snapshot-based recovery, Studio notebook
promotion, SQL windowing patterns (session, hopping, tumbling),
VPC source configuration, full NEVER list, edge-case handling, and
pre-flight safety CLI.
1---2name: kinesis-analytics-deployer3description: 'Deploys Amazon Kinesis Data Analytics applications (Managed Service for Apache Flink and Studio SQL) with production-grade config: application creation (runtime FLINK-1_19 or SQL-1_0, service execution role), source (Kinesis Data Stream or Firehose with stream ARN, starting position), destination (Kinesis Data Stream, Firehose, S3 with parallelism), SQL vs Flink selection, checkpointing (interval, min pause), parallelism and parallelismPerKPU tuning, CloudWatch logging, application snapshots for stateful recovery, Studio notebooks with Apache Zeppelin, session window SQL patterns, latest features (Studio notebooks, Zeppelin, session windows, snapshots, custom app code via S3). Emits a READY_TO_DEPLOY checklist. Use when creating a KDA application, deploying a Flink or SQL streaming job, validating config, or generating CLI/IaC templates. Triggers: Kinesis Data Analytics, Managed Flink, KDA Studio, Zeppelin, streaming SQL, Flink application, checkpointing, parallelism, session windows.'4license: Apache-2.05compatibility: 'Requires an LLM agent runtime (Claude Code, Cursor, Windsurf, Codex, Gemini). For live deployment: AWS CLI v2 with kinesisanalytics, kinesisanalyticsv2, kinesis, firehose, iam, logs, and s3 access. Works with Terraform aws_kinesisanalyticsv2_application / aws_kinesis_analytics_application resources, CloudFormation AWS::KinesisAnalyticsV2::Application resources, and the AWS Console Kinesis Data Analytics wizard.'6metadata:7 source: https://skillmd.com/skills/jhkchan/kinesis-analytics-deployer8 domain: aws-cloudops9 complexity: high10 requires_llm: 'true'11 phase: '1'12 supports_pipeline: 'true'13 entry_point: 'false'14 family: Analytics15 task_type: deploy16 skill_class: capability17 lifecycle_status: active18 verdict_shape: READY_TO_DEPLOY | PREREQUISITES_MISSING19 version: 0.1.020 author: Jacky Chan — AWS Community Builder21 tags: aws, kinesis, kinesis-analytics, cloudops, deploy, analytics, streaming, flink22 dependencies: aws-orchestrator23 keywords: aws, kinesis, kinesis-analytics, kinesis-data-analytics, managed-flink, apache-flink, cloudops, deploy, analytics, streaming, flink, studio-notebook, zeppelin, checkpointing, parallelism, session-windows24 when_to_use: Invoke when the user wants to create a new Kinesis Data Analytics application (Managed Service for Apache Flink or Studio SQL), deploy a Flink streaming job, deploy a streaming SQL pipeline with session/hopping/tumbling windows, configure an interactive Studio notebook with Zeppelin, validate an existing KDA configuration against best practices, generate deployment CLI commands or IaC templates, or troubleshoot a KDA deployment failure caused by missing prerequisites (execution role, source stream, checkpoint configuration). Do NOT invoke for Kinesis Data Streams provisioning (use kinesis-stream-auditor), Kinesis Firehose delivery (use kinesis-firehose-troubshooter), or MSK (use kafka-msk-troubleshooter).25---2627# Kinesis Data Analytics Deployer2829An AWS CloudOps agent skill that deploys Amazon Kinesis Data Analytics30applications (Managed Service for Apache Flink and Studio SQL31applications) with correct production defaults. Emits a32READY_TO_DEPLOY checklist verifying every configuration item.3334## Quick navigation3536| Need | Section |37|---|---|38| What MUST be in the response | "STRICT output contract" |39| Why application-before-code order matters | "Reasoning framework" |40| What to verify before deploying | "Prerequisites" |41| The ordered deployment steps | "Deployment procedure" |42| Common silent-failure pitfalls | "NEVER" |43| SQL-vs-Flink decision matrix | "Workload matrix" |44| 2024-2026 feature changes | "Recent AWS features" |45| Deep CLI sequences | `references/cli-commands-and-iac.md` |46| Execution roles, parallelism, checkpoints, full NEVER | `references/execution-and-capacity-guide.md` |4748## STRICT output contract4950When this skill is invoked with a Kinesis Data Analytics deployment51request, the agent MUST respond with the READY_TO_DEPLOY checklist52defined in "Output format" using the literal all-caps labels53`APPLICATION:`, `VERDICT:`, `CHECKLIST:`, and `VERIFICATION_COMMANDS:`.54Do NOT preface the checklist with prose, headings, or disclaimers —55emit the block as the first lines.5657### Required output structure58591. `APPLICATION: <application-name>` — the KDA application being60 deployed.612. `VERDICT: READY_TO_DEPLOY` OR `VERDICT: PREREQUISITES_MISSING`.623. `CHECKLIST:` followed by indented lines with status markers63 (`[✓]`, `[✗]`, `[OPTIONAL]`, `[INPUT NEEDED]`).644. `VERIFICATION_COMMANDS:` followed by indented65 `aws kinesisanalyticsv2 ...` commands.6667### FORBIDDEN output patterns6869- **No prose preamble before `APPLICATION:`** — first non-empty line70 MUST be `APPLICATION:`.71- **No markdown variants of labels** — write `VERDICT:`, not72 `**VERDICT:**`, `### Verdict`, or `` `VERDICT` ``.73- **No swapping verdict tokens** — exactly `READY_TO_DEPLOY` or74 `PREREQUISITES_MISSING`.75- **No omitting `VERIFICATION_COMMANDS:`** — include even when76 PREREQUISITES_MISSING.77- **No extra sections after `VERIFICATION_COMMANDS:`** — the78 checklist block is the entire response.79- **No status marker drift** — use only `[✓]`, `[✗]`, `[OPTIONAL]`,80 `[INPUT NEEDED]`.8182### Perfect example (copy the shape exactly)8384```text85APPLICATION: fraud-detection-flink86VERDICT: READY_TO_DEPLOY87CHECKLIST:88 [✓] Runtime environment — FLINK-1_19, application mode STREAMING89 [✓] Service execution role — arn:aws:iam::123456789012:role/KDAExecutionRole (Kinesis read, Firehose write, CloudWatch Logs, S3 code)90 [✓] Source — Kinesis Data Stream arn:aws:kinesis:us-east-1:123456789012:stream/transactions, starting position LATEST91 [✓] Destination — Kinesis Data Stream arn:aws:aws...:stream/alerts, parallelism 492 [✓] Application code — s3://kda-apps/fraud-detection-1.0.0.jar (pinned, NOT latest)93 [✓] Checkpointing — interval 60000 ms, min pause 5000 ms, configuration UPDATE94 [✓] Parallelism — 4 (parallelismPerKPU 1, 4 KPUs total)95 [✓] CloudWatch logging — enabled, log group /aws/kinesis-analytics/fraud-detection-flink96 [✓] Snapshots — configured for stateful recovery97 [✓] Tags — Environment=production, Application=fraud-detection98 [OPTIONAL] Studio notebook — Apache Zeppelin (not configured for this app)99VERIFICATION_COMMANDS:100 aws kinesisanalyticsv2 describe-application --application-name fraud-detection-flink101 aws iam get-role --role-name KDAExecutionRole102 aws kinesis describe-stream --stream-name transactions103 aws logs describe-log-groups --log-group-name-prefix /aws/kinesis-analytics/fraud-detection-flink104```105106## Reasoning framework (why the application-before-code order matters)1071081. **Application FIRST** — a KDA application is the container for all109 Flink/SQL streaming work. It defines the runtime environment110 (FLINK-1_19 or SQL-1_0), execution role, parallelism, and111 checkpointing. Without an application you cannot run code.1122. **Service execution role** — the IAM role the application assumes113 at runtime for Kinesis reads, Firehose/S3 writes, CloudWatch114 logging, and S3 code retrieval. Without it, the application fails115 to start with `AccessDeniedException` on the first source read.1163. **Source configuration** — Kinesis Data Stream or Firehose as the117 streaming source. Defines the stream ARN and starting position118 (LATEST, TRIM_HORIZON, or AT_TIMESTAMP). Without a source, the119 application starts but processes zero records.1204. **Destination configuration** — Kinesis Data Stream, Firehose, or121 S3 as the destination. SQL apps emit INSERT results; Flink apps122 write via sinks. Without a destination, processed records are123 dropped.1245. **Application code** — for Flink, a JAR/Python package in S3; for125 SQL, an in-line SQL script. Pin to a versioned key — NEVER `latest`126 or `/current/` paths.1276. **Checkpointing and parallelism LAST** — tuning parameters applied128 AFTER the application is created. Checkpointing enables stateful129 recovery; parallelism controls throughput. Changing them requires130 an application update.131132## Prerequisites (verify before deployment)133134| Prerequisite | Why it matters | How to verify |135|---|---|---|136| **IAM service execution role** | Trust `kinesisanalytics.amazonaws.com`. Scope for Kinesis/Firehose/S3/CloudWatch. NEVER `AdministratorAccess`. | `aws iam get-role --role-name <role>` |137| **Source Kinesis stream (or Firehose)** | MUST exist and be ACTIVE before the application reads. Without it, the source is empty. | `aws kinesis describe-stream --stream-name <name>` |138| **Destination resource** | Kinesis stream, Firehose delivery stream, or S3 bucket. MUST exist before the application writes. | `aws kinesis describe-stream` / `aws firehose describe-delivery-stream` / `aws s3 ls` |139| **S3 code bucket (Flink apps)** | Stores the application JAR/Python package. MUST exist with the code object. | `aws s3 ls s3://<bucket>/<key>` |140| **CloudWatch log group** | KDA streams application logs and Flink TaskManager logs. Recommended for production. | `aws logs describe-log-groups --log-group-name-prefix /aws/kinesis-analytics/` |141| **Runtime environment** | `FLINK-1_19` (or SQL-1_0 for legacy SQL). Determines engine version. Use the latest stable Flink runtime. | `aws kinesisanalyticsv2 list-applications` (check similar apps) |142| **Service quota** | Default KPUs per Region per account. Request increase BEFORE production. | `aws service-quotas get-service-quota --service-code kinesisanalytics --quota-code L-XXXXXXXX` |143| **VPC configuration (if private sources)** | If the app reads from private MSK or private OpenSearch, VPC subnets and security groups are REQUIRED. | `aws ec2 describe-subnets --subnet-ids <ids>` |144| **Glue schema registry (if avro/protobuf)** | Source records using Avro/Protobuf MUST have a schema in the registry for Flink to deserialize. | `aws glue get-registry --registry-name <name>` |145146## Deployment procedure (apply in order)147148### Step 1: IAM service execution role149150The service execution role is assumed by the KDA application for all151runtime AWS API calls (Kinesis reads, Firehose writes, S3 code152retrieval, CloudWatch logging). Without it, the application fails on153the first source read.154155```bash156aws iam create-role \157 --role-name KDAExecutionRole \158 --assume-role-policy-document '{159 "Version": "2012-10-17",160 "Statement": [{161 "Effect": "Allow",162 "Principal": {"Service": "kinesisanalytics.amazonaws.com"},163 "Action": "sts:AssumeRole"164 }]165 }'166167aws iam put-role-policy \168 --role-name KDAExecutionRole \169 --policy-name kda-exec \170 --policy-document '{171 "Version": "2012-10-17",172 "Statement": [173 {174 "Effect": "Allow",175 "Action": ["kinesis:GetRecords", "kinesis:GetShardIterator", "kinesis:DescribeStream", "kinesis:ListShards"],176 "Resource": "arn:aws:kinesis:us-east-1:123456789012:stream/transactions"177 },178 {179 "Effect": "Allow",180 "Action": ["kinesis:PutRecord", "kinesis:PutRecords"],181 "Resource": "arn:aws:kinesis:us-east-1:123456789012:stream/alerts"182 },183 {184 "Effect": "Allow",185 "Action": ["s3:GetObject"],186 "Resource": "arn:aws:s3:::kda-apps/fraud-detection-1.0.0.jar"187 },188 {189 "Effect": "Allow",190 "Action": ["logs:CreateLogGroup", "logs:CreateLogStream", "logs:PutLogEvents", "logs:DescribeLogGroups"],191 "Resource": "arn:aws:logs:us-east-1:123456789012:log-group:/aws/kinesis-analytics/*"192 },193 {194 "Effect": "Allow",195 "Action": ["kinesisanalytics:CreateApplicationSnapshot", "kinesisanalytics:DeleteApplicationSnapshot", "kinesisanalytics:DescribeApplicationSnapshot"],196 "Resource": "arn:aws:kinesisanalytics:us-east-1:123456789012:application/fraud-detection-flink"197 }198 ]199 }'200```201202Rules:203- **Trust `kinesisanalytics.amazonaws.com`** — NOT204 `firehose.amazonaws.com` (separate service principal).205- **NEVER use `AdministratorAccess`** — scope to the specific Kinesis206 streams, Firehose delivery streams, and S3 code objects the app207 needs.208- **CloudWatch Logs permissions** — required for application log209 delivery and Flink framework errors.210- **Pass role for KDA-created resources** — if the app creates211 snapshots, include `kinesisanalytics:*ApplicationSnapshot`.212213### Step 2: Confirm source stream exists214215```bash216aws kinesis describe-stream --stream-name transactions \217 --query 'StreamDescription.{Status:StreamStatus,ARN:StreamARN,Shards:Shards[*].ShardId}'218# StreamStatus MUST be ACTIVE219```220221For Firehose source:222223```bash224aws firehose describe-delivery-stream --delivery-stream-name ingestion-stream \225 --query 'DeliveryStreamDescription.{Status:DeliveryStreamStatus,ARN:DeliveryStreamARN}'226# DeliveryStreamStatus MUST be ACTIVE227```228229### Step 3: Create the application (Flink)230231```bash232aws kinesisanalyticsv2 create-application \233 --application-name fraud-detection-flink \234 --runtime-environment FLINK-1_19 \235 --service-execution-role arn:aws:iam::123456789012:role/KDAExecutionRole \236 --application-configuration '{237 "ApplicationCodeConfiguration": {238 "CodeContent": {239 "S3ContentLocation": {240 "BucketARN": "arn:aws:s3:::kda-apps",241 "FileKey": "fraud-detection-1.0.0.jar"242 },243 "CodeContentType": "ZIPFILE"244 },245 "CodeContentType": "ZIPFILE"246 },247 "FlinkApplicationConfiguration": {248 "CheckpointConfiguration": {249 "ConfigurationType": "CUSTOM",250 "CheckpointingEnabled": true,251 "CheckpointInterval": 60000,252 "MinPauseBetweenCheckpoints": 5000253 },254 "ParallelismConfiguration": {255 "ConfigurationType": "CUSTOM",256 "Parallelism": 4,257 "ParallelismPerKPU": 1258 },259 "MonitoringConfiguration": {260 "ConfigurationType": "CUSTOM",261 "MetricsLevel": "APPLICATION",262 "LogLevel": "INFO",263 "LogStreamARN": "arn:aws:logs:us-east-1:123456789012:log-group:/aws/kinesis-analytics/fraud-detection-flink"264 }265 },266 "EnvironmentProperties": {267 "PropertyGroups": [268 {"PropertyGroupId": "ConsumerConfig", "PropertyMap": {"STREAM_NAME": "transactions", "AWS_REGION": "us-east-1", "SCAN_START_POSITION": "LATEST"}}269 ]270 },271 "ApplicationSnapshotConfiguration": {272 "SnapshotsEnabled": true273 }274 }' \275 --tags Environment=production,Application=fraud-detection276```277278### Step 4: Create the application (SQL)279280```bash281aws kinesisanalyticsv2 create-application \282 --application-name session-windows-sql \283 --runtime-environment SQL-1_0 \284 --service-execution-role arn:aws:iam::123456789012:role/KDAExecutionRole \285 --application-configuration '{286 "SqlApplicationConfiguration": {287 "Inputs": [{288 "NamePrefix": "SOURCE_SQL_STREAM",289 "KinesisStreamsInput": {290 "ResourceARN": "arn:aws:kinesis:us-east-1:123456789012:stream/clicks",291 "RoleARN": "arn:aws:iam::123456789012:role/KDAExecutionRole"292 },293 "InputSchema": {294 "RecordFormat": {"RecordFormatType": "JSON"},295 "RecordColumns": [296 {"Name": "event_time", "SqlType": "TIMESTAMP", "Mapping": "$.event_time"},297 {"Name": "user_id", "SqlType": "VARCHAR(64)", "Mapping": "$.user_id"},298 {"Name": "event_type", "SqlType": "VARCHAR(32)", "Mapping": "$.event_type"}299 ]300 },301 "InputParallelism": {"Count": 1},302 "InputStartingPositionConfiguration": {"InputStartingPosition": "NOW"}303 }]304 },305 "ApplicationCodeConfiguration": {306 "CodeContent": {307 "TextInput": "CREATE OR REPLACE PUMP \"SESSION_PUMP\" AS INSERT INTO DESTINATION_SQL_STREAM SELECT STREAM user_id, COUNT(*) AS event_count, SESSION_START() AS window_start, SESSION_END() AS window_end FROM SOURCE_SQL_STREAM_001 GROUP BY user_id, SESSION(event_time, INTERVAL '''60''' SECONDS);"308 },309 "CodeContentType": "INLINE"310 }311 }' \312 --tags Environment=production,Application=session-windows313```314315### Step 5: Configure source via CloudWatch log group316317```bash318aws logs create-log-group \319 --log-group-name /aws/kinesis-analytics/fraud-detection-flink320```321322### Step 6: Start the application323324```bash325aws kinesisanalyticsv2 start-application \326 --application-name fraud-detection-flink \327 --run-configuration '{328 "FlinkRunConfiguration": {"AllowNonRestoredState": false},329 "SqlRunConfigurations": [],330 "ApplicationRestoreConfiguration": {331 "RestoreType": "RESTORE_FROM_LATEST_SNAPSHOT"332 }333 }'334```335336Wait for `RUNNING` state:337338```bash339aws kinesisanalyticsv2 describe-application \340 --application-name fraud-detection-flink \341 --query 'ApplicationDetail.ApplicationStatus'342# Should return 'RUNNING'343```344345### Step 7: Checkpointing (Flink stateful recovery)346347> **Moved verbatim** → [references/execution-and-capacity-guide.md](references/execution-and-capacity-guide.md) § "Step 7: Checkpointing (Flink stateful recovery)".348> Load when: configuring Flink checkpointing — interval, min pause, AllowNonRestoredState rules.349350### Step 8: Parallelism tuning351352> **Moved verbatim** → [references/execution-and-capacity-guide.md](references/execution-and-capacity-guide.md) § "Step 8: Parallelism tuning".353> Load when: sizing parallelism and KPUs — matching parallelism to shard count, ParallelismPerKPU, JobManager overhead.354355### Step 9: Studio notebook (Zeppelin, interactive analysis)356357> **Moved verbatim** → [references/execution-and-capacity-guide.md](references/execution-and-capacity-guide.md) § "Step 9: Studio notebook (Zeppelin, interactive analysis)".358> Load when: creating a Studio notebook — Zeppelin application config, custom artifacts, promotion to a production app.359360### Step 10: Application snapshots (stateful recovery)361362> **Moved verbatim** → [references/execution-and-capacity-guide.md](references/execution-and-capacity-guide.md) § "Step 10: Application snapshots (stateful recovery)".363> Load when: using snapshots for stateful recovery — create/list snapshots and RESTORE_FROM_CUSTOM_SNAPSHOT starts.364365### Step 11: Verification366367```bash368aws kinesisanalyticsv2 describe-application --application-name fraud-detection-flink369aws kinesisanalyticsv2 describe-application --application-name fraud-detection-flink --query 'ApplicationDetail.ApplicationStatus'370aws iam get-role --role-name KDAExecutionRole371aws kinesis describe-stream --stream-name transactions372aws logs describe-log-groups --log-group-name-prefix /aws/kinesis-analytics/fraud-detection-flink373aws kinesisanalyticsv2 list-application-snapshots --application-name fraud-detection-flink374```375376## Recent AWS features (2024-2026)377378> **Moved verbatim** → [references/advanced-patterns.md](references/advanced-patterns.md) § "Recent AWS features (2024-2026)".379> Load when: checking 2024-2026 feature availability — session windows, snapshots, Flink 1.19, Glue Catalog, VPC sources.380381## Workload matrix382383| Workload | Runtime | Source | Destination | Parallelism | Checkpointing | Studio notebook |384|---|---|---|---|---|---|---|385| **Fraud detection (Flink)** | FLINK-1_19 | Kinesis Stream | Kinesis Stream | 4-8 | 60s interval | No |386| **Sessionization (SQL)** | SQL-1_0 | Kinesis Stream | Kinesis Stream | 1-2 | N/A (SQL) | No |387| **Click analytics (SQL)** | SQL-1_0 | Kinesis Stream | Firehose | 1 | N/A (SQL) | No |388| **Anomaly detection (Flink)** | FLINK-1_19 | Kinesis Stream | S3 via Firehose | 8 | 30s interval | No |389| **Exploratory analysis (Zeppelin)** | ZEPPELIN-FLINK-1_0 | Kinesis Stream | (notebook output) | 2 | Optional | Yes |390| **ETL enrichment (Flink)** | FLINK-1_19 | Kinesis Stream | Firehose to S3 | 4 | 60s interval | No |391| **Alerting (SQL lambdas)** | SQL-1_0 | Kinesis Stream | Lambda via Firehose | 1 | N/A (SQL) | No |392| **Dev/test** | FLINK-1_19 | Kinesis Stream | Kinesis Stream | 1 | 120s interval | Optional |393394## NEVER (top 5 — full list of 12 in references)395396- NEVER start a KDA application that has no service execution role397 configured. The application fails immediately with398 `AccessDeniedException` on the first Kinesis `GetRecords` call. The399 execution role is the #1 prerequisite for KDA.400- NEVER use `AdministratorAccess` on the service execution role. Scope401 to the specific Kinesis streams, Firehose delivery streams, and S3402 code objects the app needs. KDA applications run arbitrary streaming403 code — a broad role is a privilege escalation vector.404- NEVER deploy a Flink application that reads from a Kinesis stream405 with fewer shards than `Parallelism`. Sub-parallelism wastes KPUs.406 Match `Parallelism` to the source shard count for full utilization.407- NEVER disable checkpointing in production. A failure means full408 state loss and replay from the earliest unprocessed record. For409 stateful Flink apps, checkpoints are the ONLY recovery mechanism.410- NEVER use `latest` or unversioned S3 keys for application code. KDA411 pulls the code at application start — a new push silently changes412 what runs. Pin to a versioned key (e.g., `fraud-detection-1.0.0.jar`)413 or SHA suffix. #1 reproducibility breaker.414415## Expert heuristic — parallelism, checkpoints, and SQL-vs-Flink strategy416417> **Moved verbatim** → [references/execution-and-capacity-guide.md](references/execution-and-capacity-guide.md) § "Expert heuristic — parallelism, checkpoints, and SQL-vs-Flink strategy".418> Load when: tuning strategy — SQL-vs-Flink selection, session-window gaps, parallelism sizing, checkpoint intervals, log retention.419420## Pre-flight safety checks (run before any deployment CLI)421422> **Moved verbatim** → [references/diagnostic-commands.md](references/diagnostic-commands.md) § "Pre-flight safety checks (run before any deployment CLI)".423> Load when: about to run any deployment CLI — the confirmation checklist covering role, streams, code object, quota, log group.424425## Output format — MANDATORY literal labels426427When invoked with a Kinesis Data Analytics deployment request, your428ENTIRE response MUST be the checklist block below. The labels are429**case-sensitive all-caps keywords**. Do NOT write a preamble. Start430with `APPLICATION:` and stop after the `VERIFICATION_COMMANDS:` block.431432```text433APPLICATION: <name>434VERDICT: READY_TO_DEPLOY | PREREQUISITES_MISSING435CHECKLIST:436 [✓] Runtime environment — FLINK-1_19 | SQL-1_0 | ZEPPELIN-FLINK-1_0437 [✓] Service execution role — <role-arn> (<scoped-permissions>)438 [✓] Source — Kinesis Data Stream | Firehose, <stream-arn>, starting position <LATEST | TRIM_HORIZON | NOW>439 [✓] Destination — Kinesis Data Stream | Firehose | S3, <resource-arn>, parallelism <n>440 [✓] Application code — s3://<bucket>/<key> (Flink) | inline SQL (SQL)441 [✓] Checkpointing — interval <ms>, min pause <ms>, configuration CUSTOM | DEFAULT442 [✓] Parallelism — <n> (parallelismPerKPU <n>, <total> KPUs)443 [✓] CloudWatch logging — enabled, log group <log-group>444 [✓] Tags — <tags>445 [OPTIONAL] Studio notebook — Apache Zeppelin (configured | not configured)446 [OPTIONAL] Application snapshots — enabled for stateful recovery447VERIFICATION_COMMANDS:448 aws kinesisanalyticsv2 describe-application --application-name <name>449 aws iam get-role --role-name <exec-role>450 aws kinesis describe-stream --stream-name <source-stream>451 aws logs describe-log-groups --log-group-name-prefix /aws/kinesis-analytics/<name>452```453454**Status marker semantics:**455- `[✓]` — applied and verified.456- `[✗]` — NOT applied or misconfigured. Cite the gap.457- `[OPTIONAL]` — recommended but not required.458- `[INPUT NEEDED]` — prerequisite value missing; operator must provide.459460**PREREQUISITES_MISSING verdict:** if any REQUIRED prerequisite is461missing (execution role, source stream, destination resource, S3 code462object for Flink apps), the verdict is `PREREQUISITES_MISSING`.463464## References (load on demand)465466- [references/cli-commands-and-iac.md](references/cli-commands-and-iac.md) — full copy-pasteable CLI sequence for all 11 deployment steps with Terraform / CloudFormation equivalents (existing)467- [references/execution-and-capacity-guide.md](references/execution-and-capacity-guide.md) — checkpointing, parallelism and KPU tuning, Studio notebook setup, application snapshots, expert SQL-vs-Flink heuristics (moved verbatim; existing deep reference)468- [references/diagnostic-commands.md](references/diagnostic-commands.md) — pre-flight safety checks to run before any deployment CLI469- [references/advanced-patterns.md](references/advanced-patterns.md) — edge-case handling (cross-account sources, schema evolution, VPC sources) and recent AWS features 2024-2026470471## Domain472473AWS CloudOps / Kinesis Data Analytics Streaming Compute Provisioning.474475## Edge-case handling476477> **Moved verbatim** → [references/advanced-patterns.md](references/advanced-patterns.md) § "Edge-case handling".478> Load when: hitting an edge case — cross-account sources, schema evolution, snapshot restore with code changes, VPC/private MSK sources.479480## AWS documentation481482- **Kinesis Data Analytics Developer Guide** — https://docs.aws.amazon.com/kinesisanalytics/latest/java/getting-started.html483- **CreateApplication API (v2)** — https://docs.aws.amazon.com/kinesisanalyticsv2/latest/APIReference/API_CreateApplication.html484- **Managed Service for Apache Flink** — https://docs.aws.amazon.com/managed-flink/latest/applaunchboard/what-is-managed-flink.html485- **Flink Application Configuration** — https://docs.aws.amazon.com/kinesisanalytics/latest/java/application-config.html486- **Checkpointing** — https://docs.aws.amazon.com/managed-flink/latest/applaunchboard/checkpointing.html487- **Parallelism** — https://docs.aws.amazon.com/managed-flink/latest/applaunchboard/parallelism.html488- **Studio Notebooks** — https://docs.aws.amazon.com/kinesisanalytics/latest/studio/getting-started.html489- **Application Snapshots** — https://docs.aws.amazon.com/managed-flink/latest/applaunchboard/app-snapshots.html490- **Session Windows SQL** — https://docs.aws.amazon.com/kinesisanalytics/latest/dev/sql-app-session-windows.html491- **Kinesis Analytics CLI Reference** — https://docs.aws.amazon.com/cli/latest/reference/kinesisanalyticsv2/492493## References494495- `references/cli-commands-and-iac.md` — full copy-pasteable CLI command496 sequence for all 11 deployment steps, including execution role497 creation, source stream verification, Flink/SQL application498 creation, checkpointing and parallelism configuration, Studio499 notebook setup, application snapshots, and Terraform /500 CloudFormation equivalents.501502- `references/execution-and-capacity-guide.md` — deep reference on503 service execution role scoping, parallelism and KPU tuning,504 checkpointing strategy, snapshot-based recovery, Studio notebook505 promotion, SQL windowing patterns (session, hopping, tumbling),506 VPC source configuration, full NEVER list, edge-case handling, and507 pre-flight safety CLI.