[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AD6BNG93NTS5SDX5J2Y2FH":3,"skill-same:01M7AD6BNG93NTS5SDX5J2Y2FH":151},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":43,"commitSha":44,"skillDirectory":45,"forksCount":46,"repositoryHtmlUrl":47,"repositoryHomepageUrl":6,"ownerHtmlUrl":48,"ownerBlogUrl":6,"ownerDescription":49,"updatedAt":50,"install":51,"resources":64},"01M7AD6BNG93NTS5SDX5J2Y2FH","stepfunctions-statemachine-deployer",null,"Provisions production-grade AWS Step Functions state machines with correct type selection (Standard exactly-once up to 1 year vs Express at-least-once up to 5 min), Amazon States Language definitions (Task, Choice, Parallel, Map, Wait, Pass, Fail, Succeed), service integrations via Resource ARN patterns (Lambda, DynamoDB, SQS, SNS, ECS, SageMaker, Glue, Athena, Bedrock), sync (.sync) vs callback (.waitForTaskToken) invocation patterns, error handling (Retry with exponential backoff, Catch routing), Inline Map (40 concurrent) vs Distributed Map (10000+ concurrent with S3\u002FDynamoDB ItemReader, ItemBatcher, toleratedFailurePercentage), IAM least-privilege execution role, input\u002Foutput processing (InputPath, ResultPath, OutputPath, Parameters), Express sync (RequestResponse) vs async (Firehose logging) workflows, and AWS SDK service integrations for direct API calls without Lambda. Emits a READY_TO_DEPLOY checklist. Use when provisioning state machines, designing ASL workflows, configuring service.","jhkchan\u002Faws-agent-skills","jhkchan","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1083902?v=4","01M7A2SVQYP9GQTPTDXP5JKYQ4","Jacky Chan","01M7A2SVS117YWCTZABB75HZR1",4,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-statemachine-deployer\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: stepfunctions-statemachine-deployer\ndescription: Provisions production-grade AWS Step Functions state machines with correct type selection (Standard exactly-once up to 1 year vs Express at-least-once up to 5 min), Amazon States Language definitions (Task, Choice, Parallel, Map, Wait, Pass, Fail, Succeed), service integrations via Resource ARN patterns (Lambda, DynamoDB, SQS, SNS, ECS, SageMaker, Glue, Athena, Bedrock), sync (.sync) vs callback (.waitForTaskToken) invocation patterns, error handling (Retry with exponential backoff, Catch routing), Inline Map (40 concurrent) vs Distributed Map (10000+ concurrent with S3\u002FDynamoDB ItemReader, ItemBatcher, toleratedFailurePercentage), IAM least-privilege execution role, input\u002Foutput processing (InputPath, ResultPath, OutputPath, Parameters), Express sync (RequestResponse) vs async (Firehose logging) workflows, and AWS SDK service integrations for direct API calls without Lambda. Emits a READY_TO_DEPLOY checklist. Use when provisioning state machines, designing ASL workflows, configuring service.\nlicense: Apache-2.0\ncompatibility: Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). No AWS CLI required for offline architecture planning. Live deployment uses aws stepfunctions create-state-machine, update-state-machine, describe-state-machine, validate-state-machine-definition, start-execution, and aws iam create-role \u002F attach-role-policy (AWS CLI v2, SSO or key-based credentials).\nmetadata:\n  domain: aws-cloudops\n  complexity: high\n  requires_llm: 'true'\n  phase: '1'\n  supports_pipeline: 'true'\n  entry_point: 'false'\n  family: AppIntegration\n  task_type: deploy\n  skill_class: capability\n  lifecycle_status: active\n  verdict_shape: READY_TO_DEPLOY | PREREQUISITES_MISSING\n  when_to_use: Provisioning a new Step Functions state machine, choosing between Standard and Express workflow types, designing an ASL definition with service integrations (Lambda, DynamoDB, SQS, ECS, Glue, Bedrock), configuring Retry\u002FCatch error handling, building a Distributed Map for large-scale fan-out, scoping the IAM execution role to specific resource ARNs, choosing between sync (.sync) and callback (.waitForTaskToken) integration patterns, or hardening an Express workflow for production.\n  activation_triggers: create a state machine, deploy Step Functions workflow, Standard vs Express workflow, write ASL definition, service integration Resource ARN, Retry and Catch blocks, Distributed Map state, waitForTaskToken callback, Step Functions execution role, Step Functions + Lambda orchestration, Step Functions + Bedrock, Express workflow synchronous\n  invocation_schema: 'Input shape (one of): (a) a deployment specification including workflow name, type (STANDARD | EXPRESS), ASL definition (or requirements to derive one), service integrations, error-handling requirements, and execution role scope; (b) a partial spec for interactive refinement (e.g., \"Express workflow invoking Lambda + DynamoDB, sync, 60s budget\"); (c) an existing state machine ARN for architecture review against the well-architected checklist. Output shape: { STATE_MACHINE_SPEC, VERDICT, ARCHITECTURE, CHECKLIST[], FINDINGS[], DEPLOY_COMMANDS } where VERDICT ∈ { READY_TO_DEPLOY, PREREQUISITES_MISSING, ERROR }.'\n  version: 0.1.0\n  author: Jacky Chan — AWS Community Builder\n  keywords: Step Functions, state machine, ASL, Amazon States Language, Standard workflow, Express workflow, Task state, Choice state, Parallel state, Map state, Distributed Map, Inline Map, Retry, Catch, error handling, service integration, Resource ARN, waitForTaskToken, sync integration, callback pattern, Task Token, IAM execution role, states:StartExecution, InputPath, ResultPath, OutputPath, Parameters, ItemReader, ItemBatcher, Bedrock invocation, AWS SDK integration, Step Functions Playground\n  tags: stepfunctions, app-integration, deploy, state-machine, asl, express, standard, distributed-map, service-integration, iam, error-handling\n---\n\n# Step Functions State Machine Deployer\n\n## Mindset\n\n**One-line takeaway:** a production state machine is not \"a JSON definition\nplus a role\" — it is an **orchestration contract** where the workflow type,\nthe service integration pattern, the error-handling semantics, and the IAM\nrole scope must each be a deliberate decision. The ASL syntax is the least\ninteresting part; the **type semantics, integration pattern, and Retry\u002FCatch\nshape** determine cost, durability, and blast radius.\n\nThree facts make Step Functions provisioning different from \"write a JSON\":\n\n- **Workflow type is a durability + cost decision, not a syntax decision.**\n  Standard workflows bill per state transition ($0.025 per 1,000); Express\n  workflows bill per invocation + duration ($1.00 per million invocations).\n  Standard guarantees exactly-once execution semantics and supports runs up\n  to 1 year. Express is at-least-once and caps at 5 minutes. A high-volume\n  event-driven workload on Standard can balloon cost 100x versus Express; a\n  long-running compensation saga on Express is impossible — the 5-minute cap\n  kills it. Type is decided FIRST, before any ASL is written.\n\n- **The Resource ARN suffix selects the integration semantics, not the\n  service.** `arn:aws:states:::lambda:invoke` fires-and-forgets;\n  `arn:aws:states:::lambda:invoke.sync` does not exist (Lambda is already\n  sync); `arn:aws:states:::ecs:runTask.sync` waits for the task to complete;\n  `arn:aws:states:::sqs:sendMessage.waitForTaskToken` pauses the workflow\n  until an external worker calls `SendTaskSuccess`. Getting the suffix wrong\n  produces either silent fire-and-forget bugs or stuck executions.\n\n- **A fallible Task without Retry AND Catch fails the entire execution on\n  the first transient error.** ASL does NOT auto-retry. Lambda\n  `ServiceException`, DynamoDB `ProvisionedThroughputExceededException`, and\n  ECS `CapacityProviderInsufficientCapacity` are all transient — without an\n  explicit `Retry` block, the workflow dies and must be re-run from the top\n  (Standard) or lost entirely (Express async). Production Tasks require\n  BOTH `Retry` (for transient errors) and `Catch` (for terminal fallback).\n\n## Quick navigation\n\n| Section | What it covers | When to read it |\n|---|---|---|\n| **§ Quick reference** | Dimension → requirement table (type, ASL, integration, error handling, role, observability) | Identify which dimensions your spec touches |\n| **§ Pre-flight** | Required inputs gate (role ARN, type, definition) — blocks on missing | Before producing any plan |\n| **§ Process** | Ten-step architecture planning walk (type → ASL → integration → Map → error handling → I\u002FO → role → logging → Express → verification) | Walk in order for every deployment |\n| **§ Output format** | STATE_MACHINE_SPEC \u002F VERDICT \u002F ARCHITECTURE \u002F CHECKLIST \u002F FINDINGS \u002F DEPLOY_COMMANDS template | Format the response |\n| **§ Verification commands** | Post-deploy CLI checks (describe, start-execution, CloudWatch) | After `create-state-machine` returns |\n| **§ Anti-Patterns** | NEVER list — common deployment mistakes (wildcard role, missing Retry, .sync on Lambda, Express > 5min) | Review before concluding READY_TO_DEPLOY |\n| **§ References** | Deeper docs on ASL states and Resource ARN patterns | When you need the full integration catalog |\n\n## Quick reference — deployment checklist\n\n| Dimension | Requirement | Step |\n|---|---|---|\n| Workflow type | STANDARD (exactly-once, ≤1yr, $0.025\u002F1k transitions) OR EXPRESS (at-least-once, ≤5min, $1.00\u002FM invocations) — deliberate choice | Step 1 |\n| ASL definition | Validated JSON; every Task has explicit `TimeoutSeconds`; StartAt chain reaches terminal state | Step 2 |\n| Service integrations | Resource ARNs use correct suffix: bare (fire-and-forget), `.sync` (wait), `.waitForTaskToken` (callback) | Step 3 |\n| Sync vs callback | `.sync` for run-to-completion (ECS, Glue, Athena); `.waitForTaskToken` for human\u002Fexternal approval | Step 4 |\n| Map state | Inline (≤40 concurrent, ≤256KB input) OR Distributed (≤10000+ concurrent, S3\u002FDynamoDB ItemReader, ItemBatcher) | Step 5 |\n| Error handling | Every fallible Task has BOTH `Retry` (ErrorEquals, IntervalSeconds, MaxAttempts, BackoffRate) AND `Catch` (ErrorEquals, Next, ResultPath) | Step 6 |\n| I\u002FO processing | InputPath, ResultPath, OutputPath, Parameters used deliberately; payload \u003C 256KB (Standard) \u002F \u003C 256KB (Express) | Step 7 |\n| IAM role | Trust policy includes `states.amazonaws.com`; identity policy scoped to named actions on specific ARNs from the definition; no `Action: \"*\"` | Step 8 |\n| Logging (Express) | `LoggingConfiguration.level: ALL` + `includeExecutionData: true` — the ONLY durable record for Express | Step 9 |\n| Tracing (Standard) | `TracingConfiguration.enabled: true` + role grants `xray:PutTraceSegments` | Step 9 |\n| Express invocation mode | `Synchronous` (RequestResponse — caller blocks ≤5min) vs `Asynchronous` (Firehose logging, caller gets exec ARN) | Step 10 |\n\n## Pre-flight: deployment specification gate (run before architecture output)\n\nBefore producing the deployment plan, validate the input specification.\nSeveral requirements **block deployment** — proceeding with an invalid spec\nproduces a non-functional or insecure state machine.\n\n**Live-account pre-flight checks (skip if doing offline architecture plan):**\n1. Verify the caller has `states:CreateStateMachine`,\n   `states:ValidateStateMachineDefinition`, `iam:CreateRole`,\n   `iam:AttachRolePolicy`, and `iam:PassRole` on the execution role ARN.\n   Surface IAM gaps BEFORE emitting deployment commands.\n2. Validate the ASL definition structure:\n   `aws stepfunctions validate-state-machine-definition --definition file:\u002F\u002Fdef.json --type STANDARD`\n   This catches syntax errors before the API reject at `create-state-machine`.\n3. Verify the execution role's trust policy includes\n   `Principal: { Service: \"states.amazonaws.com\" }` — `CreateStateMachine`\n   accepts any role ARN without validating trust, but the workflow fails on\n   first integration at runtime with `AccessDenied`.\n4. Check service quotas: Standard has no per-account execution cap; Express\n   has a soft account-level launch quota (default 100,000\u002Fsec, raisable).\n\n| Attribute | Value | Effect on plan |\n|---|---|---|\n| `name` | Valid name (`[a-zA-Z0-9-_]{1,80}`) | Required — `CreateStateMachine` rejects others |\n| `type` | `STANDARD` | Exactly-once, ≤1 year, per-transition billing. Default. |\n| `type` | `EXPRESS` | At-least-once, ≤5 min, per-invocation billing. Required for high-throughput event-driven workloads. |\n| `definition` | Stringified ASL JSON | API expects `\"{\\\"StartAt\\\":...}\"` — a STRING, not parsed object. Terraform\u002FCloudFormation footgun. |\n| `roleArn` | Existing role ARN with trust to `states.amazonaws.com` | Required. If absent, emit PREREQUISITES_MISSING. |\n| `loggingConfiguration` | For Express: `level: ALL`, `includeExecutionData: true` | Mandatory for Express — execution history expires in minutes. |\n| `tracingConfiguration` | For Standard: `enabled: true` | Recommended — X-Ray only honored on Standard. |\n\n**If the deployment spec is incomplete** (missing role ARN, missing workflow\ntype, or missing definition), output:\n\n```text\nSTATE_MACHINE_SPEC: \u003Cname-or-unknown>\nVERDICT: PREREQUISITES_MISSING\nREASON: Deployment specification is missing required fields (\u003Clist>).\nCannot produce a deployment plan without \u003Cfield> — the resulting state\nmachine would be non-functional or insecure.\nREQUIRED:\n  - name (1-80 chars, [a-zA-Z0-9-_])\n  - type (STANDARD or EXPRESS)\n  - definition (ASL JSON, stringified for the API)\n  - roleArn (existing role trusting states.amazonaws.com)\n  - loggingConfiguration (for EXPRESS: level ALL + includeExecutionData)\n```\n\n## Process — Architecture planning (apply in order, produce deployment plan)\n\n### Step 0: Expert knowledge — non-obvious Step Functions behaviors that change the plan\n\n> Full detail moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) - load on demand.\n> Summary: the complete Step 0 catalog of behaviors that change the deployment plan (billing, idempotency, history expiry, tracing no-op, timeouts, heartbeats, Retry\u002FCatch, Map concurrency, .sync\u002F.waitForTaskToken billing, definition-as-string, States.ALL gap, trust policy, SDK integrations, Bedrock, Redrive).\n\n### Step 1: Workflow type selection (STANDARD vs EXPRESS)\n\nThis is the single highest-leverage decision. Everything downstream\n(error handling, logging, Map state, callback patterns) is constrained by\nthe type.\n\n| Dimension | STANDARD | EXPRESS |\n|---|---|---|\n| Execution semantics | Exactly-once | At-least-once (Tasks MUST be idempotent) |\n| Max duration | 1 year (31,536,000 seconds) | 5 minutes (300 seconds) |\n| Billing | $0.025 per 1,000 state transitions | $1.00 per 1M invocations + GB-sec duration |\n| Execution history | 90 days via API\u002Fconsole | 5 min (Synchronous) \u002F 1 hour (Asynchronous) |\n| X-Ray tracing | Honored via `TracingConfiguration` | NO-OP — use CloudWatch ServiceLens |\n| Callback (`.waitForTaskToken`) | Supported, up to 1 year | Supported, but capped at 5 min — practical only for fast external systems |\n| Distributed Map child executions | Billed per transition (parent + children) | Billed per child invocation |\n| Ideal workload | Long saga, multi-step approval, batch with human steps | High-volume event-driven (Kinesis\u002FIoT\u002FEventBridge fan-in), API Gateway sync backend |\n\n**Decision rule:**\n- If any Task can take > 5 minutes (Glue, Athena, ECS long task, human approval) → STANDARD.\n- If the workload is high-volume (>1000 executions\u002Fsec) and each run is \u003C 5 min → EXPRESS.\n- If Tasks are non-idempotent and cannot be made idempotent → STANDARD.\n- If the workload needs X-Ray distributed tracing → STANDARD.\n- If unsure, default STANDARD; Express is a deliberate optimization for cost\u002Fthroughput.\n\n### Step 2: ASL definition design\n\nThe Amazon States Language (ASL) defines the workflow as a JSON object\nwith `StartAt`, `States`, and terminal transitions. Each state has a\n`Type` that determines its fields:\n\n| State Type | Purpose | Required fields | Common pitfalls |\n|---|---|---|---|\n| `Task` | Invoke a service integration | `Resource`, `Next` (or `End: true`) | Missing `TimeoutSeconds` (defaults 60s); missing `Retry`\u002F`Catch` on fallible Resources |\n| `Choice` | Branch on input | `Choices[]`, `Default` | Missing `Default` is invalid ASL; `StringEquals` is case-sensitive |\n| `Parallel` | Run branches concurrently | `Branches[]`, `Next` | Errors in any branch fail the whole state; needs per-branch Catch |\n| `Map` | Iterate over a collection | `Iterator`, `ItemsPath`, `MaxConcurrency` | Inline Map caps 40 concurrent; Distributed Map needs `ItemReader` |\n| `Wait` | Pause for time\u002Fabsolute time | `Seconds`\u002F`SecondsPath`\u002F`Timestamp`\u002F`TimestampPath` | Standard only meaningful; Express caps total at 5 min |\n| `Pass` | Transform input, no integration | `Result`, `ResultPath`, `Next` | Useful for scaffolding\u002FParameters construction |\n| `Fail` | Terminal failure | `Error`, `Cause` | `Cause` is a static string — use `Parameters`-driven Pass before Fail for dynamic error context |\n| `Succeed` | Terminal success | (none) | Clean exit |\n\n**Walk the definition before deploying:**\n1. From `StartAt`, follow `Next` \u002F `Default` \u002F `Catch.Next` — every path\n   must reach a terminal (`End: true` or a `Fail`\u002F`Succeed`).\n2. Flag any unreachable state (no inbound transition).\n3. Flag any cycle with no exit (a `Task.Next` to itself with no\n   `Retry`\u002F`Catch` that can break out).\n4. Verify every `Task` has an explicit `TimeoutSeconds` (no silent 60s\n   default).\n5. Verify every fallible `Task` has at least one `Retry` AND at least\n   one `Catch`.\n\n### Step 3: Service integrations — Resource ARN patterns\n\n> Full detail moved verbatim to [references\u002Fservice-integration-patterns.md](references\u002Fservice-integration-patterns.md) - load on demand.\n> Summary: the full Resource ARN pattern catalog and suffix decision tree.\n\n### Step 4: Sync vs callback pattern selection\n\n> Full detail moved verbatim to [references\u002Fservice-integration-patterns.md](references\u002Fservice-integration-patterns.md) - load on demand.\n> Summary: the .sync vs .waitForTaskToken selection detail with anti-pattern.\n\n### Step 5: Map state design (Inline vs Distributed)\n\n> Full detail moved verbatim to [references\u002Fasl-states-reference.md](references\u002Fasl-states-reference.md) - load on demand.\n> Summary: the Inline-vs-Distributed comparison and both full ASL templates.\n\n### Step 6: Error handling — Retry and Catch\n\n> Full detail moved verbatim to [references\u002Ferror-handling.md](references\u002Ferror-handling.md) - load on demand.\n> Summary: the complete Retry\u002FCatch field reference and standard JSON shape.\n\n### Step 7: Input\u002Foutput processing\n\nASL provides four fields on every state for input\u002Foutput shaping:\n\n| Field | Operates on | Direction | Common use |\n|---|---|---|---|\n| `InputPath` | The state's input JSON | Inbound — filters input before `Parameters` | Strip irrelevant fields before processing |\n| `Parameters` | Static template + `.$` JSONPath values | Inbound — constructs the integration input | Build the integration's request body from the workflow input |\n| `ResultPath` | The state's output JSON | Outbound — controls where the integration's result is merged | Preserve original input alongside result: `\"$.result\"` |\n| `OutputPath` | The state's output JSON | Outbound — filters after `ResultPath` | Select a sub-field of the result to pass forward |\n\n**Pipeline order (apply left-to-right):**\n`stateInput → InputPath → Parameters → [integration] → ResultSelector → ResultPath → OutputPath → stateOutput`\n\n**Common pattern: pass-through with enriched output:**\n```json\n\"Task\": {\n  \"Type\": \"Task\",\n  \"Resource\": \"arn:aws:states:::lambda:invoke\",\n  \"Parameters\": {\n    \"FunctionName\": \"Enrich\",\n    \"Payload.$\": \"$\"\n  },\n  \"ResultPath\": \"$.enriched\",\n  \"OutputPath\": \"$\",\n  \"Next\": \"NextState\"\n}\n```\n\n**Payload size limits:** 256KB for the workflow execution input AND each\nstate's input\u002Foutput. For larger payloads, use S3 references (pass the S3\nURI in the payload, fetch in the next Task) or use Distributed Map.\n\n### Step 8: IAM execution role (least privilege)\n\n> Full detail moved verbatim to [references\u002Fiam-and-logging-templates.md](references\u002Fiam-and-logging-templates.md) - load on demand.\n> Summary: the trust policy, identity-policy derivation, and per-integration permission templates.\n\n### Step 9: Logging and tracing\n\n> Full detail moved verbatim to [references\u002Fiam-and-logging-templates.md](references\u002Fiam-and-logging-templates.md) - load on demand.\n> Summary: the Express logging and Standard tracing configuration templates.\n\n### Step 10: Express invocation mode\n\nExpress workflows have TWO invocation modes, set at `StartExecution` time:\n\n| Mode | Caller experience | Use case |\n|---|---|---|\n| `Synchronous` (RequestResponse) | Caller blocks until completion or 5-min cap; response includes final output | API Gateway backend, real-time request\u002Fresponse |\n| `Asynchronous` | Caller gets execution ARN immediately; result via CloudWatch Logs \u002F EventBridge | High-volume fan-in (Kinesis, IoT, EventBridge) |\n\nFor Synchronous Express, `StartExecution` is called via the\n`sync-execution` API endpoint. Errors in any state return directly to the\ncaller as the HTTP response. Set Express-Sync workflows' `StartAt` Task's\n`TimeoutSeconds` well under 5 minutes — the 5-min cap is a hard wall.\n\nFor Asynchronous Express, configure EventBridge to emit on\n`Step Functions Execution Status Change` for downstream alerting.\n\n## Output format (per state machine deployment plan)\n\n```text\nSTATE_MACHINE_SPEC: \u003Cname>\nVERDICT: READY_TO_DEPLOY | PREREQUISITES_MISSING\nARCHITECTURE:\n  Name: \u003Cname>\n  Type: STANDARD | EXPRESS\n  Definition: \u003CStartAt + state count + terminal states>\n  Service integrations:\n    - \u003CResource ARN pattern 1> — \u003Cintegration semantics>\n    - \u003CResource ARN pattern 2> — \u003Cintegration semantics>\n  Map states:\n    - Inline: \u003Ccount> (max concurrency \u003CN>)\n    - Distributed: \u003Ccount> (max concurrency \u003CN>, source \u003CS3|DynamoDB|payload>)\n  Error handling:\n    - \u003CN> Tasks with Retry + Catch\n    - \u003CN> Tasks without Retry (non-fallible or Pass states)\n  IAM role:\n    - Trust: states.amazonaws.com (verified)\n    - Identity policy: \u003CN> statements, scoped to \u003Clist of ARN patterns>\n  Logging (Express): level=ALL, includeExecutionData=true → CloudWatch Logs\n  Tracing (Standard): enabled=true → X-Ray\nCHECKLIST:\n  [x] Workflow type chosen deliberately (Standard vs Express)\n  [x] ASL definition validated — every path reaches a terminal\n  [x] Every fallible Task has Retry AND Catch\n  [x] Every Task has explicit TimeoutSeconds\n  [x] Resource ARN suffixes match desired semantics (bare \u002F .sync \u002F .waitForTaskToken)\n  [x] Map MaxConcurrency is set (not default 0\u002Funbounded)\n  [x] IAM role scoped to named actions on specific ARNs\n  [x] Trust policy includes states.amazonaws.com\n  [x] Express: LoggingConfiguration level=ALL + includeExecutionData=true\n  [x] Standard: TracingConfiguration enabled=true + role has xray:PutTraceSegments\nFINDINGS:\n  - [INFO] Estimated monthly cost: \u003Cbreakdown>\n  - [WARN] \u003Cany non-blocking concerns>\nDEPLOY_COMMANDS:\n  \u003Cordered list of aws stepfunctions create-* and aws iam * commands>\n```\n\n### Worked example — Express sync Lambda + DynamoDB workflow\n\n```text\nSTATE_MACHINE_SPEC: order-checkout-express\nVERDICT: READY_TO_DEPLOY\nARCHITECTURE:\n  Name: order-checkout-express\n  Type: EXPRESS\n  Definition: StartAt=ValidateCart, 5 states (ValidateCart, ChargePayment,\n    ReserveInventory, UpdateOrderRecord, Succeed), 1 Catch handler\n    (PaymentErrorHandler). All paths reach a terminal.\n  Service integrations:\n    - arn:aws:states:::lambda:invoke (ValidateCart, ChargePayment,\n      ReserveInventory) — fire-and-forget Lambda\n    - arn:aws:states:::aws-sdk:dynamodb:updateItem (UpdateOrderRecord) —\n      direct DynamoDB UpdateItem, no Lambda\n  Map states: none\n  Error handling:\n    - ChargePayment: Retry on Lambda.ServiceException (2s, 3 attempts,\n      2.0 backoff) + Catch States.ALL → PaymentErrorHandler\n    - ReserveInventory: Retry on Lambda.ServiceException (2s, 3 attempts,\n      2.0 backoff)\n    - UpdateOrderRecord: Retry on DynamoDB.ProvisionedThroughputExceededException\n      (5s, 5 attempts, 2.0 backoff)\n  IAM role:\n    - Trust: states.amazonaws.com (verified)\n    - Identity policy: lambda:InvokeFunction on 3 specific function ARNs;\n      dynamodb:UpdateItem on OrdersTable ARN; logs:* on log group ARN\n  Logging: level=ALL, includeExecutionData=true → CloudWatch Logs\n    (\u002Faws\u002Fstates\u002Forder-checkout-express)\n  Tracing: N\u002FA (Express — TracingConfiguration is no-op; ServiceLens\n    provides partial visibility)\nCHECKLIST:\n  [x] Workflow type: EXPRESS — high-volume API Gateway backend, \u003C5min total\n  [x] ASL definition validated — all paths reach Succeed or Fail\n  [x] Every fallible Task has Retry AND Catch (ChargePayment, ReserveInventory,\n      UpdateOrderRecord)\n  [x] Every Task has explicit TimeoutSeconds (30, 60, 30 respectively)\n  [x] Resource ARNs: bare lambda:invoke (already sync), aws-sdk dynamodb\n  [x] IAM role scoped to 3 Lambda ARNs + 1 DynamoDB table\n  [x] Trust policy: states.amazonaws.com verified\n  [x] Express Logging: level=ALL + includeExecutionData=true\nFINDINGS:\n  - [INFO] Estimated cost at 10M invocations\u002Fday @ 100ms avg: $10\u002Fday\n    invocation + ~$5\u002Fday GB-sec = ~$15\u002Fday (~$450\u002Fmonth)\n  - [INFO] Idempotency: ChargePayment Lambda must be idempotent (Express\n    at-least-once semantics) — verify the function uses an idempotency key\n  - [WARN] Express sync via API Gateway: total workflow must complete in\n    \u003C 29s (API Gateway 30s timeout) — current longest path is ~10s\nDEPLOY_COMMANDS:\n  1. aws iam create-role --role-name order-checkout-sfn-role\n       --assume-role-policy-document file:\u002F\u002Ftrust-policy.json\n  2. aws iam put-role-policy --role-name order-checkout-sfn-role\n       --policy-name Scoped --policy-document file:\u002F\u002Fidentity-policy.json\n  3. aws stepfunctions validate-state-machine-definition\n       --definition file:\u002F\u002Fdefinition.json --type EXPRESS\n  4. aws logs create-log-group --log-group-name \u002Faws\u002Fstates\u002Forder-checkout-express\n  5. aws stepfunctions create-state-machine\n       --name order-checkout-express --definition file:\u002F\u002Fdefinition.json\n       --type EXPRESS --role-arn arn:aws:iam::111111111111:role\u002Forder-checkout-sfn-role\n       --logging-configuration level=ALL,includeExecutionData=true\n       --log-configuration-destinations cloudWatchLogsLogGroupArn=arn:aws:logs:us-east-1:111111111111:log-group:\u002Faws\u002Fstates\u002Forder-checkout-express:*\n```\n\n## Verification commands (run after deployment)\n\n> Full detail moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) - load on demand.\n> Summary: the full post-deployment verification CLI listing.\n\n## Anti-Patterns — NEVER\n\n- NEVER choose Express for a workflow with any Task that can run > 5 min\n  (Glue job, Athena query, ECS long task, human approval). Express caps\n  total execution at 5 minutes — the Task will be killed mid-run.\n\n- NEVER use `.waitForTaskToken` on Express for human approval. The 5-min\n  cap fails the Task before any human responds. Use Standard for\n  callback-driven approval flows.\n\n- NEVER deploy a fallible Task (Lambda, DynamoDB, SQS, ECS, Glue) without\n  BOTH `Retry` AND `Catch`. ASL does NOT auto-retry — the first transient\n  error (`Lambda.ServiceException`,\n  `DynamoDB.ProvisionedThroughputExceededException`) fails the entire\n  execution.\n\n- NEVER deploy a Task without an explicit `TimeoutSeconds`. The default\n  is 60 seconds. Lambda functions configured for longer runtimes are\n  silently killed at 60s — the Lambda continues executing (and billing)\n  while Step Functions advances to `States.Timeout`.\n\n- NEVER use `Action: \"*\"` on the execution role. This is\n  admin-equivalent — one compromised state machine = full account\n  compromise. Scope to named actions on specific ARNs derived from the\n  definition.\n\n- NEVER use `AdministratorAccess` or `AmazonStepFunctionsFullAccess` as\n  the execution role's managed policy. These grant `states:*` on `*`,\n  enabling the workflow to chain into any other state machine in the\n  account (the Step Functions analogue of `sts:AssumeRole`).\n\n- NEVER grant `states:StartExecution` on `Resource: \"*\"` unless you\n  intend the workflow to chain into any sibling. This is the\n  chaining\u002Fescalation vector — scope to specific state machine ARNs.\n\n- NEVER forget the trust policy on the execution role.\n  `CreateStateMachine` accepts any role ARN — the trust policy is NOT\n  validated at creation. A role missing `states.amazonaws.com` fails\n  silently at runtime on the first integration.\n\n- NEVER use `MaxConcurrency: 0` (the default) on a Map iterating >100\n  items. Zero means unbounded — Step Functions invokes iterations as\n  fast as possible, overwhelming downstream services (Lambda concurrency,\n  DynamoDB throttling).\n\n- NEVER use an Inline Map for >1000 items or >256KB total payload. Use\n  Distributed Map. Inline Map caps at 40 concurrent iterations and 256KB.\n\n- NEVER assume `TracingConfiguration.enabled: true` produces X-Ray traces\n  on an Express workflow. The field is silently accepted but produces no\n  traces. Use Standard for X-Ray; use CloudWatch ServiceLens for Express.\n\n- NEVER assume `States.ALL` catches `States.Timeout`. On state machines\n  created before November 2022, `States.ALL` does NOT match\n  `States.Timeout`. Always list `States.Timeout` explicitly in `Catch`\n  for long-running workflows.\n\n- NEVER pass a parsed JSON object as the `definition` to\n  `CreateStateMachine`. The API expects a STRINGIFIED JSON\n  (`\"{\\\"StartAt\\\": ...}\"`). Use `jsonencode()` in Terraform or proper\n  string escaping in CloudFormation.\n\n- NEVER use `.sync` on a Lambda integration. `arn:aws:states:::lambda:invoke`\n  is already synchronous — the `.sync` suffix is only meaningful for\n  async-launch services (ECS, Glue, Athena, SageMaker, Step Functions\n  nested).\n\n- NEVER build non-idempotent Tasks in an Express workflow. Express\n  at-least-once semantics means Tasks can be invoked MORE THAN ONCE on\n  internal failure. DynamoDB `PutItem` without a composite idempotency\n  key, SQS SendMessage without dedup, Stripe charge without\n  idempotency key — all produce duplicates on retry.\n\n- NEVER recommend deleting a state machine as a remediation step without\n  first verifying no in-flight executions exist. Standard executions can\n  run for up to 1 year; deleting the state machine orphans them.\n\n- NEVER forget that the execution role may be shared across multiple\n  state machines. Tightening the role for one workflow may break another.\n  Before `put-role-policy`, list dependents via\n  `aws resourcegroupstaggingapi get-resources --resource-type-filters states:stateMachine`.\n\n## Pre-flight safety checks (run before any deployment CLI)\n\n> Full detail moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) - load on demand.\n> Summary: the pre-deployment safety checklist and CLI listings.\n\n## Recent AWS features (2024-2026)\n\n> Full detail moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) - load on demand.\n> Summary: the 2024-2026 feature list (Redrive, Distributed Map enhancements, SDK integrations, Bedrock, resource policies, payload validation, JSONata).\n\n## References\n\n- `references\u002Fasl-states-reference.md` — complete ASL state catalog\n  (Task, Choice, Parallel, Map, Wait, Pass, Fail, Succeed) with field\n  requirements, valid transitions, and worked examples per state type.\n- `references\u002Fservice-integration-patterns.md` — exhaustive Resource ARN\n  catalog (Lambda, DynamoDB, SQS, SNS, ECS, SageMaker, Glue, Athena,\n  Bedrock, AWS SDK) with sync\u002Fcallback variants, required IAM actions,\n  and integration-specific gotchas.\n\n## References (load on demand)\n\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) - Step 0 expert knowledge and recent AWS features\n- [references\u002Ferror-handling.md](references\u002Ferror-handling.md) - Retry\u002FCatch design deep dive\n- [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) - post-deploy verification and pre-deploy safety CLI listings\n- [references\u002Fiam-and-logging-templates.md](references\u002Fiam-and-logging-templates.md) - IAM trust\u002Fidentity policy and logging\u002Ftracing templates\n- [references\u002Fasl-states-reference.md](references\u002Fasl-states-reference.md) - (existing) ASL state catalog; now also holds Map design and I\u002FO processing detail\n- [references\u002Fservice-integration-patterns.md](references\u002Fservice-integration-patterns.md) - (existing) Resource ARN catalog; now also holds Steps 3-4 selection detail\n\n## Domain\n\nAWS CloudOps \u002F Step Functions Orchestration Provisioning.\n\n## AWS documentation\n\n- **AWS Step Functions Developer Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Fwelcome.html\n- **Amazon States Language spec** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Fconcepts-amazon-states-language.html\n- **Service integrations** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Fconnect-to-services.html\n- **Distributed Map** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Fconcepts-asl-use-map-state-distributed.html\n- **Step Functions API Reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fapireference\u002F\n- **Step Functions CLI Reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcli\u002Flatest\u002Freference\u002Fstepfunctions\u002F\n- **Standard vs Express** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Fconcepts-standard-vs-express.html\n","# Step Functions State Machine Deployer\n\n## Mindset\n\n**One-line takeaway:** a production state machine is not \"a JSON definition\nplus a role\" — it is an **orchestration contract** where the workflow type,\nthe service integration pattern, the error-handling semantics, and the IAM\nrole scope must each be a deliberate decision. The ASL syntax is the least\ninteresting part; the **type semantics, integration pattern, and Retry\u002FCatch\nshape** determine cost, durability, and blast radius.\n\nThree facts make Step Functions provisioning different from \"write a JSON\":\n\n- **Workflow type is a durability + cost decision, not a syntax decision.**\n  Standard workflows bill per state transition ($0.025 per 1,000); Express\n  workflows bill per invocation + duration ($1.00 per million invocations).\n  Standard guarantees exactly-once execution semantics and supports runs up\n  to 1 year. Express is at-least-once and caps at 5 minutes. A high-volume\n  event-driven workload on Standard can balloon cost 100x versus Express; a\n  long-running compensation saga on Express is impossible — the 5-minute cap\n  kills it. Type is decided FIRST, before any ASL is written.\n\n- **The Resource ARN suffix selects the integration semantics, not the\n  service.** `arn:aws:states:::lambda:invoke` fires-and-forgets;\n  `arn:aws:states:::lambda:invoke.sync` does not exist (Lambda is already\n  sync); `arn:aws:states:::ecs:runTask.sync` waits for the task to complete;\n  `arn:aws:states:::sqs:sendMessage.waitForTaskToken` pauses the workflow\n  until an external worker calls `SendTaskSuccess`. Getting the suffix wrong\n  produces either silent fire-and-forget bugs or stuck executions.\n\n- **A fallible Task without Retry AND Catch fails the entire execution on\n  the first transient error.** ASL does NOT auto-retry. Lambda\n  `ServiceException`, DynamoDB `ProvisionedThroughputExceededException`, and\n  ECS `CapacityProviderInsufficientCapacity` are all transient — without an\n  explicit `Retry` block, the workflow dies and must be re-run from the top\n  (Standard) or lost entirely (Express async). Production Tasks require\n  BOTH `Retry` (for transient errors) and `Catch` (for terminal fallback).\n\n## Quick navigation\n\n| Section | What it covers | When to read it |\n|---|---|---|\n| **§ Quick reference** | Dimension → requirement table (type, ASL, integration, error handling, role, observability) | Identify which dimensions your spec touches |\n| **§ Pre-flight** | Required inputs gate (role ARN, type, definition) — blocks on missing | Before producing any plan |\n| **§ Process** | Ten-step architecture planning walk (type → ASL → integration → Map → error handling → I\u002FO → role → logging → Express → verification) | Walk in order for every deployment |\n| **§ Output format** | STATE_MACHINE_SPEC \u002F VERDICT \u002F ARCHITECTURE \u002F CHECKLIST \u002F FINDINGS \u002F DEPLOY_COMMANDS template | Format the response |\n| **§ Verification commands** | Post-deploy CLI checks (describe, start-execution, CloudWatch) | After `create-state-machine` returns |\n| **§ Anti-Patterns** | NEVER list — common deployment mistakes (wildcard role, missing Retry, .sync on Lambda, Express > 5min) | Review before concluding READY_TO_DEPLOY |\n| **§ References** | Deeper docs on ASL states and Resource ARN patterns | When you need the full integration catalog |\n\n## Quick reference — deployment checklist\n\n| Dimension | Requirement | Step |\n|---|---|---|\n| Workflow type | STANDARD (exactly-once, ≤1yr, $0.025\u002F1k transitions) OR EXPRESS (at-least-once, ≤5min, $1.00\u002FM invocations) — deliberate choice | Step 1 |\n| ASL definition | Validated JSON; every Task has explicit `TimeoutSeconds`; StartAt chain reaches terminal state | Step 2 |\n| Service integrations | Resource ARNs use correct suffix: bare (fire-and-forget), `.sync` (wait), `.waitForTaskToken` (callback) | Step 3 |\n| Sync vs callback | `.sync` for run-to-completion (ECS, Glue, Athena); `.waitForTaskToken` for human\u002Fexternal approval | Step 4 |\n| Map state | Inline (≤40 concurrent, ≤256KB input) OR Distributed (≤10000+ concurrent, S3\u002FDynamoDB ItemReader, ItemBatcher) | Step 5 |\n| Error handling | Every fallible Task has BOTH `Retry` (ErrorEquals, IntervalSeconds, MaxAttempts, BackoffRate) AND `Catch` (ErrorEquals, Next, ResultPath) | Step 6 |\n| I\u002FO processing | InputPath, ResultPath, OutputPath, Parameters used deliberately; payload \u003C 256KB (Standard) \u002F \u003C 256KB (Express) | Step 7 |\n| IAM role | Trust policy includes `states.amazonaws.com`; identity policy scoped to named actions on specific ARNs from the definition; no `Action: \"*\"` | Step 8 |\n| Logging (Express) | `LoggingConfiguration.level: ALL` + `includeExecutionData: true` — the ONLY durable record for Express | Step 9 |\n| Tracing (Standard) | `TracingConfiguration.enabled: true` + role grants `xray:PutTraceSegments` | Step 9 |\n| Express invocation mode | `Synchronous` (RequestResponse — caller blocks ≤5min) vs `Asynchronous` (Firehose logging, caller gets exec ARN) | Step 10 |\n\n## Pre-flight: deployment specification gate (run before architecture output)\n\nBefore producing the deployment plan, validate the input specification.\nSeveral requirements **block deployment** — proceeding with an invalid spec\nproduces a non-functional or insecure state machine.\n\n**Live-account pre-flight checks (skip if doing offline architecture plan):**\n1. Verify the caller has `states:CreateStateMachine`,\n   `states:ValidateStateMachineDefinition`, `iam:CreateRole`,\n   `iam:AttachRolePolicy`, and `iam:PassRole` on the execution role ARN.\n   Surface IAM gaps BEFORE emitting deployment commands.\n2. Validate the ASL definition structure:\n   `aws stepfunctions validate-state-machine-definition --definition file:\u002F\u002Fdef.json --type STANDARD`\n   This catches syntax errors before the API reject at `create-state-machine`.\n3. Verify the execution role's trust policy includes\n   `Principal: { Service: \"states.amazonaws.com\" }` — `CreateStateMachine`\n   accepts any role ARN without validating trust, but the workflow fails on\n   first integration at runtime with `AccessDenied`.\n4. Check service quotas: Standard has no per-account execution cap; Express\n   has a soft account-level launch quota (default 100,000\u002Fsec, raisable).\n\n| Attribute | Value | Effect on plan |\n|---|---|---|\n| `name` | Valid name (`[a-zA-Z0-9-_]{1,80}`) | Required — `CreateStateMachine` rejects others |\n| `type` | `STANDARD` | Exactly-once, ≤1 year, per-transition billing. Default. |\n| `type` | `EXPRESS` | At-least-once, ≤5 min, per-invocation billing. Required for high-throughput event-driven workloads. |\n| `definition` | Stringified ASL JSON | API expects `\"{\\\"StartAt\\\":...}\"` — a STRING, not parsed object. Terraform\u002FCloudFormation footgun. |\n| `roleArn` | Existing role ARN with trust to `states.amazonaws.com` | Required. If absent, emit PREREQUISITES_MISSING. |\n| `loggingConfiguration` | For Express: `level: ALL`, `includeExecutionData: true` | Mandatory for Express — execution history expires in minutes. |\n| `tracingConfiguration` | For Standard: `enabled: true` | Recommended — X-Ray only honored on Standard. |\n\n**If the deployment spec is incomplete** (missing role ARN, missing workflow\ntype, or missing definition), output:\n\n```text\nSTATE_MACHINE_SPEC: \u003Cname-or-unknown>\nVERDICT: PREREQUISITES_MISSING\nREASON: Deployment specification is missing required fields (\u003Clist>).\nCannot produce a deployment plan without \u003Cfield> — the resulting state\nmachine would be non-functional or insecure.\nREQUIRED:\n  - name (1-80 chars, [a-zA-Z0-9-_])\n  - type (STANDARD or EXPRESS)\n  - definition (ASL JSON, stringified for the API)\n  - roleArn (existing role trusting states.amazonaws.com)\n  - loggingConfiguration (for EXPRESS: level ALL + includeExecutionData)\n```\n\n## Process — Architecture planning (apply in order, produce deployment plan)\n\n### Step 0: Expert knowledge — non-obvious Step Functions behaviors that change the plan\n\n> Full detail moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) - load on demand.\n> Summary: the complete Step 0 catalog of behaviors that change the deployment plan (billing, idempotency, history expiry, tracing no-op, timeouts, heartbeats, Retry\u002FCatch, Map concurrency, .sync\u002F.waitForTaskToken billing, definition-as-string, States.ALL gap, trust policy, SDK integrations, Bedrock, Redrive).\n\n### Step 1: Workflow type selection (STANDARD vs EXPRESS)\n\nThis is the single highest-leverage decision. Everything downstream\n(error handling, logging, Map state, callback patterns) is constrained by\nthe type.\n\n| Dimension | STANDARD | EXPRESS |\n|---|---|---|\n| Execution semantics | Exactly-once | At-least-once (Tasks MUST be idempotent) |\n| Max duration | 1 year (31,536,000 seconds) | 5 minutes (300 seconds) |\n| Billing | $0.025 per 1,000 state transitions | $1.00 per 1M invocations + GB-sec duration |\n| Execution history | 90 days via API\u002Fconsole | 5 min (Synchronous) \u002F 1 hour (Asynchronous) |\n| X-Ray tracing | Honored via `TracingConfiguration` | NO-OP — use CloudWatch ServiceLens |\n| Callback (`.waitForTaskToken`) | Supported, up to 1 year | Supported, but capped at 5 min — practical only for fast external systems |\n| Distributed Map child executions | Billed per transition (parent + children) | Billed per child invocation |\n| Ideal workload | Long saga, multi-step approval, batch with human steps | High-volume event-driven (Kinesis\u002FIoT\u002FEventBridge fan-in), API Gateway sync backend |\n\n**Decision rule:**\n- If any Task can take > 5 minutes (Glue, Athena, ECS long task, human approval) → STANDARD.\n- If the workload is high-volume (>1000 executions\u002Fsec) and each run is \u003C 5 min → EXPRESS.\n- If Tasks are non-idempotent and cannot be made idempotent → STANDARD.\n- If the workload needs X-Ray distributed tracing → STANDARD.\n- If unsure, default STANDARD; Express is a deliberate optimization for cost\u002Fthroughput.\n\n### Step 2: ASL definition design\n\nThe Amazon States Language (ASL) defines the workflow as a JSON object\nwith `StartAt`, `States`, and terminal transitions. Each state has a\n`Type` that determines its fields:\n\n| State Type | Purpose | Required fields | Common pitfalls |\n|---|---|---|---|\n| `Task` | Invoke a service integration | `Resource`, `Next` (or `End: true`) | Missing `TimeoutSeconds` (defaults 60s); missing `Retry`\u002F`Catch` on fallible Resources |\n| `Choice` | Branch on input | `Choices[]`, `Default` | Missing `Default` is invalid ASL; `StringEquals` is case-sensitive |\n| `Parallel` | Run branches concurrently | `Branches[]`, `Next` | Errors in any branch fail the whole state; needs per-branch Catch |\n| `Map` | Iterate over a collection | `Iterator`, `ItemsPath`, `MaxConcurrency` | Inline Map caps 40 concurrent; Distributed Map needs `ItemReader` |\n| `Wait` | Pause for time\u002Fabsolute time | `Seconds`\u002F`SecondsPath`\u002F`Timestamp`\u002F`TimestampPath` | Standard only meaningful; Express caps total at 5 min |\n| `Pass` | Transform input, no integration | `Result`, `ResultPath`, `Next` | Useful for scaffolding\u002FParameters construction |\n| `Fail` | Terminal failure | `Error`, `Cause` | `Cause` is a static string — use `Parameters`-driven Pass before Fail for dynamic error context |\n| `Succeed` | Terminal success | (none) | Clean exit |\n\n**Walk the definition before deploying:**\n1. From `StartAt`, follow `Next` \u002F `Default` \u002F `Catch.Next` — every path\n   must reach a terminal (`End: true` or a `Fail`\u002F`Succeed`).\n2. Flag any unreachable state (no inbound transition).\n3. Flag any cycle with no exit (a `Task.Next` to itself with no\n   `Retry`\u002F`Catch` that can break out).\n4. Verify every `Task` has an explicit `TimeoutSeconds` (no silent 60s\n   default).\n5. Verify every fallible `Task` has at least one `Retry` AND at least\n   one `Catch`.\n\n### Step 3: Service integrations — Resource ARN patterns\n\n> Full detail moved verbatim to [references\u002Fservice-integration-patterns.md](references\u002Fservice-integration-patterns.md) - load on demand.\n> Summary: the full Resource ARN pattern catalog and suffix decision tree.\n\n### Step 4: Sync vs callback pattern selection\n\n> Full detail moved verbatim to [references\u002Fservice-integration-patterns.md](references\u002Fservice-integration-patterns.md) - load on demand.\n> Summary: the .sync vs .waitForTaskToken selection detail with anti-pattern.\n\n### Step 5: Map state design (Inline vs Distributed)\n\n> Full detail moved verbatim to [references\u002Fasl-states-reference.md](references\u002Fasl-states-reference.md) - load on demand.\n> Summary: the Inline-vs-Distributed comparison and both full ASL templates.\n\n### Step 6: Error handling — Retry and Catch\n\n> Full detail moved verbatim to [references\u002Ferror-handling.md](references\u002Ferror-handling.md) - load on demand.\n> Summary: the complete Retry\u002FCatch field reference and standard JSON shape.\n\n### Step 7: Input\u002Foutput processing\n\nASL provides four fields on every state for input\u002Foutput shaping:\n\n| Field | Operates on | Direction | Common use |\n|---|---|---|---|\n| `InputPath` | The state's input JSON | Inbound — filters input before `Parameters` | Strip irrelevant fields before processing |\n| `Parameters` | Static template + `.$` JSONPath values | Inbound — constructs the integration input | Build the integration's request body from the workflow input |\n| `ResultPath` | The state's output JSON | Outbound — controls where the integration's result is merged | Preserve original input alongside result: `\"$.result\"` |\n| `OutputPath` | The state's output JSON | Outbound — filters after `ResultPath` | Select a sub-field of the result to pass forward |\n\n**Pipeline order (apply left-to-right):**\n`stateInput → InputPath → Parameters → [integration] → ResultSelector → ResultPath → OutputPath → stateOutput`\n\n**Common pattern: pass-through with enriched output:**\n```json\n\"Task\": {\n  \"Type\": \"Task\",\n  \"Resource\": \"arn:aws:states:::lambda:invoke\",\n  \"Parameters\": {\n    \"FunctionName\": \"Enrich\",\n    \"Payload.$\": \"$\"\n  },\n  \"ResultPath\": \"$.enriched\",\n  \"OutputPath\": \"$\",\n  \"Next\": \"NextState\"\n}\n```\n\n**Payload size limits:** 256KB for the workflow execution input AND each\nstate's input\u002Foutput. For larger payloads, use S3 references (pass the S3\nURI in the payload, fetch in the next Task) or use Distributed Map.\n\n### Step 8: IAM execution role (least privilege)\n\n> Full detail moved verbatim to [references\u002Fiam-and-logging-templates.md](references\u002Fiam-and-logging-templates.md) - load on demand.\n> Summary: the trust policy, identity-policy derivation, and per-integration permission templates.\n\n### Step 9: Logging and tracing\n\n> Full detail moved verbatim to [references\u002Fiam-and-logging-templates.md](references\u002Fiam-and-logging-templates.md) - load on demand.\n> Summary: the Express logging and Standard tracing configuration templates.\n\n### Step 10: Express invocation mode\n\nExpress workflows have TWO invocation modes, set at `StartExecution` time:\n\n| Mode | Caller experience | Use case |\n|---|---|---|\n| `Synchronous` (RequestResponse) | Caller blocks until completion or 5-min cap; response includes final output | API Gateway backend, real-time request\u002Fresponse |\n| `Asynchronous` | Caller gets execution ARN immediately; result via CloudWatch Logs \u002F EventBridge | High-volume fan-in (Kinesis, IoT, EventBridge) |\n\nFor Synchronous Express, `StartExecution` is called via the\n`sync-execution` API endpoint. Errors in any state return directly to the\ncaller as the HTTP response. Set Express-Sync workflows' `StartAt` Task's\n`TimeoutSeconds` well under 5 minutes — the 5-min cap is a hard wall.\n\nFor Asynchronous Express, configure EventBridge to emit on\n`Step Functions Execution Status Change` for downstream alerting.\n\n## Output format (per state machine deployment plan)\n\n```text\nSTATE_MACHINE_SPEC: \u003Cname>\nVERDICT: READY_TO_DEPLOY | PREREQUISITES_MISSING\nARCHITECTURE:\n  Name: \u003Cname>\n  Type: STANDARD | EXPRESS\n  Definition: \u003CStartAt + state count + terminal states>\n  Service integrations:\n    - \u003CResource ARN pattern 1> — \u003Cintegration semantics>\n    - \u003CResource ARN pattern 2> — \u003Cintegration semantics>\n  Map states:\n    - Inline: \u003Ccount> (max concurrency \u003CN>)\n    - Distributed: \u003Ccount> (max concurrency \u003CN>, source \u003CS3|DynamoDB|payload>)\n  Error handling:\n    - \u003CN> Tasks with Retry + Catch\n    - \u003CN> Tasks without Retry (non-fallible or Pass states)\n  IAM role:\n    - Trust: states.amazonaws.com (verified)\n    - Identity policy: \u003CN> statements, scoped to \u003Clist of ARN patterns>\n  Logging (Express): level=ALL, includeExecutionData=true → CloudWatch Logs\n  Tracing (Standard): enabled=true → X-Ray\nCHECKLIST:\n  [x] Workflow type chosen deliberately (Standard vs Express)\n  [x] ASL definition validated — every path reaches a terminal\n  [x] Every fallible Task has Retry AND Catch\n  [x] Every Task has explicit TimeoutSeconds\n  [x] Resource ARN suffixes match desired semantics (bare \u002F .sync \u002F .waitForTaskToken)\n  [x] Map MaxConcurrency is set (not default 0\u002Funbounded)\n  [x] IAM role scoped to named actions on specific ARNs\n  [x] Trust policy includes states.amazonaws.com\n  [x] Express: LoggingConfiguration level=ALL + includeExecutionData=true\n  [x] Standard: TracingConfiguration enabled=true + role has xray:PutTraceSegments\nFINDINGS:\n  - [INFO] Estimated monthly cost: \u003Cbreakdown>\n  - [WARN] \u003Cany non-blocking concerns>\nDEPLOY_COMMANDS:\n  \u003Cordered list of aws stepfunctions create-* and aws iam * commands>\n```\n\n### Worked example — Express sync Lambda + DynamoDB workflow\n\n```text\nSTATE_MACHINE_SPEC: order-checkout-express\nVERDICT: READY_TO_DEPLOY\nARCHITECTURE:\n  Name: order-checkout-express\n  Type: EXPRESS\n  Definition: StartAt=ValidateCart, 5 states (ValidateCart, ChargePayment,\n    ReserveInventory, UpdateOrderRecord, Succeed), 1 Catch handler\n    (PaymentErrorHandler). All paths reach a terminal.\n  Service integrations:\n    - arn:aws:states:::lambda:invoke (ValidateCart, ChargePayment,\n      ReserveInventory) — fire-and-forget Lambda\n    - arn:aws:states:::aws-sdk:dynamodb:updateItem (UpdateOrderRecord) —\n      direct DynamoDB UpdateItem, no Lambda\n  Map states: none\n  Error handling:\n    - ChargePayment: Retry on Lambda.ServiceException (2s, 3 attempts,\n      2.0 backoff) + Catch States.ALL → PaymentErrorHandler\n    - ReserveInventory: Retry on Lambda.ServiceException (2s, 3 attempts,\n      2.0 backoff)\n    - UpdateOrderRecord: Retry on DynamoDB.ProvisionedThroughputExceededException\n      (5s, 5 attempts, 2.0 backoff)\n  IAM role:\n    - Trust: states.amazonaws.com (verified)\n    - Identity policy: lambda:InvokeFunction on 3 specific function ARNs;\n      dynamodb:UpdateItem on OrdersTable ARN; logs:* on log group ARN\n  Logging: level=ALL, includeExecutionData=true → CloudWatch Logs\n    (\u002Faws\u002Fstates\u002Forder-checkout-express)\n  Tracing: N\u002FA (Express — TracingConfiguration is no-op; ServiceLens\n    provides partial visibility)\nCHECKLIST:\n  [x] Workflow type: EXPRESS — high-volume API Gateway backend, \u003C5min total\n  [x] ASL definition validated — all paths reach Succeed or Fail\n  [x] Every fallible Task has Retry AND Catch (ChargePayment, ReserveInventory,\n      UpdateOrderRecord)\n  [x] Every Task has explicit TimeoutSeconds (30, 60, 30 respectively)\n  [x] Resource ARNs: bare lambda:invoke (already sync), aws-sdk dynamodb\n  [x] IAM role scoped to 3 Lambda ARNs + 1 DynamoDB table\n  [x] Trust policy: states.amazonaws.com verified\n  [x] Express Logging: level=ALL + includeExecutionData=true\nFINDINGS:\n  - [INFO] Estimated cost at 10M invocations\u002Fday @ 100ms avg: $10\u002Fday\n    invocation + ~$5\u002Fday GB-sec = ~$15\u002Fday (~$450\u002Fmonth)\n  - [INFO] Idempotency: ChargePayment Lambda must be idempotent (Express\n    at-least-once semantics) — verify the function uses an idempotency key\n  - [WARN] Express sync via API Gateway: total workflow must complete in\n    \u003C 29s (API Gateway 30s timeout) — current longest path is ~10s\nDEPLOY_COMMANDS:\n  1. aws iam create-role --role-name order-checkout-sfn-role\n       --assume-role-policy-document file:\u002F\u002Ftrust-policy.json\n  2. aws iam put-role-policy --role-name order-checkout-sfn-role\n       --policy-name Scoped --policy-document file:\u002F\u002Fidentity-policy.json\n  3. aws stepfunctions validate-state-machine-definition\n       --definition file:\u002F\u002Fdefinition.json --type EXPRESS\n  4. aws logs create-log-group --log-group-name \u002Faws\u002Fstates\u002Forder-checkout-express\n  5. aws stepfunctions create-state-machine\n       --name order-checkout-express --definition file:\u002F\u002Fdefinition.json\n       --type EXPRESS --role-arn arn:aws:iam::111111111111:role\u002Forder-checkout-sfn-role\n       --logging-configuration level=ALL,includeExecutionData=true\n       --log-configuration-destinations cloudWatchLogsLogGroupArn=arn:aws:logs:us-east-1:111111111111:log-group:\u002Faws\u002Fstates\u002Forder-checkout-express:*\n```\n\n## Verification commands (run after deployment)\n\n> Full detail moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) - load on demand.\n> Summary: the full post-deployment verification CLI listing.\n\n## Anti-Patterns — NEVER\n\n- NEVER choose Express for a workflow with any Task that can run > 5 min\n  (Glue job, Athena query, ECS long task, human approval). Express caps\n  total execution at 5 minutes — the Task will be killed mid-run.\n\n- NEVER use `.waitForTaskToken` on Express for human approval. The 5-min\n  cap fails the Task before any human responds. Use Standard for\n  callback-driven approval flows.\n\n- NEVER deploy a fallible Task (Lambda, DynamoDB, SQS, ECS, Glue) without\n  BOTH `Retry` AND `Catch`. ASL does NOT auto-retry — the first transient\n  error (`Lambda.ServiceException`,\n  `DynamoDB.ProvisionedThroughputExceededException`) fails the entire\n  execution.\n\n- NEVER deploy a Task without an explicit `TimeoutSeconds`. The default\n  is 60 seconds. Lambda functions configured for longer runtimes are\n  silently killed at 60s — the Lambda continues executing (and billing)\n  while Step Functions advances to `States.Timeout`.\n\n- NEVER use `Action: \"*\"` on the execution role. This is\n  admin-equivalent — one compromised state machine = full account\n  compromise. Scope to named actions on specific ARNs derived from the\n  definition.\n\n- NEVER use `AdministratorAccess` or `AmazonStepFunctionsFullAccess` as\n  the execution role's managed policy. These grant `states:*` on `*`,\n  enabling the workflow to chain into any other state machine in the\n  account (the Step Functions analogue of `sts:AssumeRole`).\n\n- NEVER grant `states:StartExecution` on `Resource: \"*\"` unless you\n  intend the workflow to chain into any sibling. This is the\n  chaining\u002Fescalation vector — scope to specific state machine ARNs.\n\n- NEVER forget the trust policy on the execution role.\n  `CreateStateMachine` accepts any role ARN — the trust policy is NOT\n  validated at creation. A role missing `states.amazonaws.com` fails\n  silently at runtime on the first integration.\n\n- NEVER use `MaxConcurrency: 0` (the default) on a Map iterating >100\n  items. Zero means unbounded — Step Functions invokes iterations as\n  fast as possible, overwhelming downstream services (Lambda concurrency,\n  DynamoDB throttling).\n\n- NEVER use an Inline Map for >1000 items or >256KB total payload. Use\n  Distributed Map. Inline Map caps at 40 concurrent iterations and 256KB.\n\n- NEVER assume `TracingConfiguration.enabled: true` produces X-Ray traces\n  on an Express workflow. The field is silently accepted but produces no\n  traces. Use Standard for X-Ray; use CloudWatch ServiceLens for Express.\n\n- NEVER assume `States.ALL` catches `States.Timeout`. On state machines\n  created before November 2022, `States.ALL` does NOT match\n  `States.Timeout`. Always list `States.Timeout` explicitly in `Catch`\n  for long-running workflows.\n\n- NEVER pass a parsed JSON object as the `definition` to\n  `CreateStateMachine`. The API expects a STRINGIFIED JSON\n  (`\"{\\\"StartAt\\\": ...}\"`). Use `jsonencode()` in Terraform or proper\n  string escaping in CloudFormation.\n\n- NEVER use `.sync` on a Lambda integration. `arn:aws:states:::lambda:invoke`\n  is already synchronous — the `.sync` suffix is only meaningful for\n  async-launch services (ECS, Glue, Athena, SageMaker, Step Functions\n  nested).\n\n- NEVER build non-idempotent Tasks in an Express workflow. Express\n  at-least-once semantics means Tasks can be invoked MORE THAN ONCE on\n  internal failure. DynamoDB `PutItem` without a composite idempotency\n  key, SQS SendMessage without dedup, Stripe charge without\n  idempotency key — all produce duplicates on retry.\n\n- NEVER recommend deleting a state machine as a remediation step without\n  first verifying no in-flight executions exist. Standard executions can\n  run for up to 1 year; deleting the state machine orphans them.\n\n- NEVER forget that the execution role may be shared across multiple\n  state machines. Tightening the role for one workflow may break another.\n  Before `put-role-policy`, list dependents via\n  `aws resourcegroupstaggingapi get-resources --resource-type-filters states:stateMachine`.\n\n## Pre-flight safety checks (run before any deployment CLI)\n\n> Full detail moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) - load on demand.\n> Summary: the pre-deployment safety checklist and CLI listings.\n\n## Recent AWS features (2024-2026)\n\n> Full detail moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) - load on demand.\n> Summary: the 2024-2026 feature list (Redrive, Distributed Map enhancements, SDK integrations, Bedrock, resource policies, payload validation, JSONata).\n\n## References\n\n- `references\u002Fasl-states-reference.md` — complete ASL state catalog\n  (Task, Choice, Parallel, Map, Wait, Pass, Fail, Succeed) with field\n  requirements, valid transitions, and worked examples per state type.\n- `references\u002Fservice-integration-patterns.md` — exhaustive Resource ARN\n  catalog (Lambda, DynamoDB, SQS, SNS, ECS, SageMaker, Glue, Athena,\n  Bedrock, AWS SDK) with sync\u002Fcallback variants, required IAM actions,\n  and integration-specific gotchas.\n\n## References (load on demand)\n\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) - Step 0 expert knowledge and recent AWS features\n- [references\u002Ferror-handling.md](references\u002Ferror-handling.md) - Retry\u002FCatch design deep dive\n- [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) - post-deploy verification and pre-deploy safety CLI listings\n- [references\u002Fiam-and-logging-templates.md](references\u002Fiam-and-logging-templates.md) - IAM trust\u002Fidentity policy and logging\u002Ftracing templates\n- [references\u002Fasl-states-reference.md](references\u002Fasl-states-reference.md) - (existing) ASL state catalog; now also holds Map design and I\u002FO processing detail\n- [references\u002Fservice-integration-patterns.md](references\u002Fservice-integration-patterns.md) - (existing) Resource ARN catalog; now also holds Steps 3-4 selection detail\n\n## Domain\n\nAWS CloudOps \u002F Step Functions Orchestration Provisioning.\n\n## AWS documentation\n\n- **AWS Step Functions Developer Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Fwelcome.html\n- **Amazon States Language spec** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Fconcepts-amazon-states-language.html\n- **Service integrations** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Fconnect-to-services.html\n- **Distributed Map** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Fconcepts-asl-use-map-state-distributed.html\n- **Step Functions API Reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fapireference\u002F\n- **Step Functions CLI Reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcli\u002Flatest\u002Freference\u002Fstepfunctions\u002F\n- **Standard vs Express** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Fconcepts-standard-vs-express.html\n",{"name":5,"license":15,"metadata":24,"description":7,"compatibility":42},{"tags":25,"phase":26,"author":27,"domain":28,"family":29,"version":30,"keywords":31,"task_type":32,"complexity":33,"entry_point":34,"skill_class":35,"when_to_use":36,"requires_llm":37,"verdict_shape":38,"lifecycle_status":39,"invocation_schema":40,"supports_pipeline":37,"activation_triggers":41},"stepfunctions, app-integration, deploy, state-machine, asl, express, standard, distributed-map, service-integration, iam, error-handling","1","Jacky Chan — AWS Community Builder","aws-cloudops","AppIntegration","0.1.0","Step Functions, state machine, ASL, Amazon States Language, Standard workflow, Express workflow, Task state, Choice state, Parallel state, Map state, Distributed Map, Inline Map, Retry, Catch, error handling, service integration, Resource ARN, waitForTaskToken, sync integration, callback pattern, Task Token, IAM execution role, states:StartExecution, InputPath, ResultPath, OutputPath, Parameters, ItemReader, ItemBatcher, Bedrock invocation, AWS SDK integration, Step Functions Playground","deploy","high","false","capability","Provisioning a new Step Functions state machine, choosing between Standard and Express workflow types, designing an ASL definition with service integrations (Lambda, DynamoDB, SQS, ECS, Glue, Bedrock), configuring Retry\u002FCatch error handling, building a Distributed Map for large-scale fan-out, scoping the IAM execution role to specific resource ARNs, choosing between sync (.sync) and callback (.waitForTaskToken) integration patterns, or hardening an Express workflow for production.","true","READY_TO_DEPLOY | PREREQUISITES_MISSING","active","Input shape (one of): (a) a deployment specification including workflow name, type (STANDARD | EXPRESS), ASL definition (or requirements to derive one), service integrations, error-handling requirements, and execution role scope; (b) a partial spec for interactive refinement (e.g., \"Express workflow invoking Lambda + DynamoDB, sync, 60s budget\"); (c) an existing state machine ARN for architecture review against the well-architected checklist. Output shape: { STATE_MACHINE_SPEC, VERDICT, ARCHITECTURE, CHECKLIST[], FINDINGS[], DEPLOY_COMMANDS } where VERDICT ∈ { READY_TO_DEPLOY, PREREQUISITES_MISSING, ERROR }.","create a state machine, deploy Step Functions workflow, Standard vs Express workflow, write ASL definition, service integration Resource ARN, Retry and Catch blocks, Distributed Map state, waitForTaskToken callback, Step Functions execution role, Step Functions + Lambda orchestration, Step Functions + Bedrock, Express workflow synchronous","Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). No AWS CLI required for offline architecture planning. Live deployment uses aws stepfunctions create-state-machine, update-state-machine, describe-state-machine, validate-state-machine-definition, start-execution, and aws iam create-role \u002F attach-role-policy (AWS CLI v2, SSO or key-based credentials).","main","eeace51bd5dd1db2030729d83eeab988861553aa","skills\u002Fstepfunctions-statemachine-deployer",0,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills","https:\u002F\u002Fgithub.com\u002Fjhkchan","CTO & Co-Founder @Beever-AI  & @votee. CAISP. AWS Community Builder. Organizer@GDGCloudHK. MongoDB Champion. Technopreneur + Infornographer.","2026-09-24 08:54:10",{"source":8,"skillName":5,"commands":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add jhkchan\u002Faws-agent-skills --skill stepfunctions-statemachine-deployer",{"tool":57,"command":58},"bunx","bunx skills add jhkchan\u002Faws-agent-skills --skill stepfunctions-statemachine-deployer",{"tool":60,"command":61},"pnpm","pnpm dlx skills add jhkchan\u002Faws-agent-skills --skill stepfunctions-statemachine-deployer","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-statemachine-deployer\u002FSKILL.md",true,[65,71,75,79,83,87,91,95,99,103,107,111,115,119,123,127,131,135,139,143,147],{"path":66,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":69,"sourceHtmlUrl":70},"eval\u002Ftest-cases.yaml","REFERENCE","参考文档",5408,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-statemachine-deployer\u002Feval\u002Ftest-cases.yaml",{"path":72,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":73,"sourceHtmlUrl":74},"evals\u002Fbaselines\u002Fdistributed-map-s3-batch.md",1327,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-statemachine-deployer\u002Fevals\u002Fbaselines\u002Fdistributed-map-s3-batch.md",{"path":76,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":77,"sourceHtmlUrl":78},"evals\u002Fbaselines\u002Fexpress-sync-api-gateway.md",1381,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-statemachine-deployer\u002Fevals\u002Fbaselines\u002Fexpress-sync-api-gateway.md",{"path":80,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":81,"sourceHtmlUrl":82},"evals\u002Fbaselines\u002Fexpress-timeout-exceeds-cap.md",1105,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-statemachine-deployer\u002Fevals\u002Fbaselines\u002Fexpress-timeout-exceeds-cap.md",{"path":84,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":85,"sourceHtmlUrl":86},"evals\u002Fbaselines\u002Fmissing-iam-role-trust.md",1036,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-statemachine-deployer\u002Fevals\u002Fbaselines\u002Fmissing-iam-role-trust.md",{"path":88,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":89,"sourceHtmlUrl":90},"evals\u002Fbaselines\u002Fstandard-lambda-orchestration.md",1541,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-statemachine-deployer\u002Fevals\u002Fbaselines\u002Fstandard-lambda-orchestration.md",{"path":92,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":93,"sourceHtmlUrl":94},"evals\u002Feval_config.yaml",1783,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-statemachine-deployer\u002Fevals\u002Feval_config.yaml",{"path":96,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":97,"sourceHtmlUrl":98},"evals\u002Fevals.json",4489,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-statemachine-deployer\u002Fevals\u002Fevals.json",{"path":100,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":101,"sourceHtmlUrl":102},"evals\u002Fprompts\u002Fdistributed-map-s3-batch.md",1388,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-statemachine-deployer\u002Fevals\u002Fprompts\u002Fdistributed-map-s3-batch.md",{"path":104,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":105,"sourceHtmlUrl":106},"evals\u002Fprompts\u002Fexpress-sync-api-gateway.md",1610,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-statemachine-deployer\u002Fevals\u002Fprompts\u002Fexpress-sync-api-gateway.md",{"path":108,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":109,"sourceHtmlUrl":110},"evals\u002Fprompts\u002Fexpress-timeout-exceeds-cap.md",999,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-statemachine-deployer\u002Fevals\u002Fprompts\u002Fexpress-timeout-exceeds-cap.md",{"path":112,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":113,"sourceHtmlUrl":114},"evals\u002Fprompts\u002Fmissing-iam-role-trust.md",854,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-statemachine-deployer\u002Fevals\u002Fprompts\u002Fmissing-iam-role-trust.md",{"path":116,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":117,"sourceHtmlUrl":118},"evals\u002Fprompts\u002Fstandard-lambda-orchestration.md",1329,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-statemachine-deployer\u002Fevals\u002Fprompts\u002Fstandard-lambda-orchestration.md",{"path":120,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":121,"sourceHtmlUrl":122},"examples\u002FREADME.md",8162,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-statemachine-deployer\u002Fexamples\u002FREADME.md",{"path":124,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":125,"sourceHtmlUrl":126},"references\u002Fadvanced-patterns.md",8727,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-statemachine-deployer\u002Freferences\u002Fadvanced-patterns.md",{"path":128,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":129,"sourceHtmlUrl":130},"references\u002Fasl-states-reference.md",14218,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-statemachine-deployer\u002Freferences\u002Fasl-states-reference.md",{"path":132,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":133,"sourceHtmlUrl":134},"references\u002Fdiagnostic-commands.md",4542,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-statemachine-deployer\u002Freferences\u002Fdiagnostic-commands.md",{"path":136,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":137,"sourceHtmlUrl":138},"references\u002Ferror-handling.md",2229,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-statemachine-deployer\u002Freferences\u002Ferror-handling.md",{"path":140,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":141,"sourceHtmlUrl":142},"references\u002Fiam-and-logging-templates.md",3336,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-statemachine-deployer\u002Freferences\u002Fiam-and-logging-templates.md",{"path":144,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":145,"sourceHtmlUrl":146},"references\u002Fservice-integration-patterns.md",17013,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-statemachine-deployer\u002Freferences\u002Fservice-integration-patterns.md",{"path":148,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":149,"sourceHtmlUrl":150},"skill.usf.yaml",4735,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-statemachine-deployer\u002Fskill.usf.yaml",[152,159,166,173,180,187],{"skillNo":153,"name":154,"nameZh":6,"description":155,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":156,"categories":157,"keywords":158,"publishedAt":19},"01M7ADVD60X4PCAPKSE58P9NDC","xray-tracing-deployer","Deploys AWS X-Ray distributed tracing with production-grade configuration: X-Ray daemon deployment (EC2 systemd, ECS sidecar, EKS DaemonSet, Lambda built-in), SDK instrumentation (Java, Python, Node.js, Go, .NET) with annotations and metadata, sampling rules (default reservoir + rate vs custom rules with URL \u002F method \u002F service-name predicates), service map generation, trace query and retrieval, groups and insights, CloudWatch ServiceLens integration, IAM permissions (PutTraceSegments, GetSamplingRules), and latest features (Lambda Powertools tracing, OpenTelemetry \u002F ADOT Collector support, W3C trace context). Emits a READY_TO_DEPLOY checklist with every configuration item verified. Use when enabling X-Ray on a new application, adding tracing to ECS \u002F EKS \u002F Lambda, validating a sampling configuration, or generating daemon deployment CLI and IaC templates. Triggers: X-Ray, distributed tracing, X-Ray daemon, sampling rules, service map, X-Ray SDK, OpenTelemetry, ADOT, Lambda Powertools, CloudWatch ServiceLens.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxray-tracing-deployer\u002FSKILL.md",[],[],{"skillNo":160,"name":161,"nameZh":6,"description":162,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":163,"categories":164,"keywords":165,"publishedAt":19},"01M7ADTVJ7DCBM9CB1FY51GH7J","wellarchitected-workload-auditor","Audits AWS Well-Architected Tool workloads for review staleness, per-pillar high-risk issue counts, milestone tracking gaps, and remediation plan completeness. Emits a deterministic verdict (STALE_REVIEW | HIGH_RISK | CONFIG_GAP | OK) per workload with per-pillar risk breakdown, milestone trend analysis, and specific remediation. Use when reviewing Well-Architected workloads, checking WA review freshness, auditing high-risk issues per pillar, validating milestone coverage, or tracking remediation plans.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwellarchitected-workload-auditor\u002FSKILL.md",[],[],{"skillNo":167,"name":168,"nameZh":6,"description":169,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":170,"categories":171,"keywords":172,"publishedAt":19},"01M7ADT59G6FTTNZYHT2QRPNNP","wellarchitected-review-operator","Operates AWS Well-Architected Tool reviews end-to-end — creates workloads, runs pillar reviews (operational excellence, security, reliability, performance, cost optimization, sustainability, Prosperity), answers questions with risk-tier rationale, generates reports and improvement plans, creates milestones, and integrates with Trusted Advisor and Well-Architected Labs. Runs deterministic pre-checks (workload existence, lens availability, pillar coverage), emits the exact update-answer \u002F get-consolidated-report CLI behind a CONFIRM gate, and verifies risk-tier transitions. Emits READY | BLOCKED | COMPLETED. Use when creating a workload, answering pillar questions, generating an improvement plan, creating a milestone, or integrating with Trusted Advisor. Triggers: well-architected tool, well architected review, workload review, pillar, operational excellence, security, reliability, performance, cost optimization, sustainability, prosperity, improvement plan, milestone, trusted advisor.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwellarchitected-review-operator\u002FSKILL.md",[],[],{"skillNo":174,"name":175,"nameZh":6,"description":176,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":177,"categories":178,"keywords":179,"publishedAt":19},"01M7ADSH5JA9QHNPPHQCD7EVA7","wafv2-web-acl-deployer","Provisions AWS WAFv2 Web ACLs with correct production defaults: scope selection (CLOUDFRONT vs REGIONAL), managed rule groups (AWSManagedRulesCommonRuleSet, SQLiRuleSet, LinuxRuleSet, WindowsRuleSet, IPReputationList, BotControlRuleSet, AmazonIpReputationList, ATP), custom rules (byte match, IP set, regex pattern, geo match, size constraint, rate-based), rule priority ordering, logging destinations (Kinesis Firehose, CloudWatch Logs, S3), resource association (ALB, API Gateway, CloudFront), rate-based rules with aggregate keys (IP, forwarded IP), Challenge and CAPTCHA actions, and account takeover prevention. Emits a READY_TO_DEPLOY checklist. Use when creating a Web ACL, attaching managed rules, configuring rate limiting, enabling WAF logging, associating a Web ACL with an ALB\u002FAPI Gateway\u002FCloudFront, or configuring CAPTCHA\u002FChallenge actions. Triggers: create WAF Web ACL, WAFv2, managed rule groups, WAF rate limiting, WAF logging, WAF CAPTCHA, WAF Challenge action, bot control, ATP managed rules.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwafv2-web-acl-deployer\u002FSKILL.md",[],[],{"skillNo":181,"name":182,"nameZh":6,"description":183,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":184,"categories":185,"keywords":186,"publishedAt":19},"01M7ADRYFAT8R73FBNCHRC573X","wafv2-web-acl-auditor","Audits AWS WAFv2 Web ACL configurations to determine whether the ACL provides effective protection: default-action posture (Allow vs Block), managed-rule-group coverage gaps, rule effectiveness (BLOCK vs COUNT, shadow\u002Fbypass rules, stale exclusions), rate-based rule correctness, logging and visibility configuration, and text-transformation bypass vectors. Emits a deterministic verdict per Web ACL. Use when reviewing a WAFv2 Web ACL for security posture, checking managed-rule coverage, validating rate-limit configuration, auditing WAF logging, or hardening a WAF before production deployment. Triggers: WAF, WAFv2, Web ACL, managed rule group, AWSManagedRules, rate-based rule, CAPTCHA, Challenge, OverrideAction, Count mode, forwarded IP, Bot Control, ATP, text transformation, WAF logging, WAF visibility, OWASP, SQLi, XSS, RFI.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwafv2-web-acl-auditor\u002FSKILL.md",[],[],{"skillNo":188,"name":189,"nameZh":6,"description":190,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":191,"categories":192,"keywords":193,"publishedAt":19},"01M7ADR8W7G72JX4KFGN03QK8Q","waf-rule-deployer","Provisions AWS WAFv2 rule sets with production defaults: Web ACL creation (CloudFront scope in us-east-1 vs Regional scope), rule groups (managed vs custom) with capacity planning in WCU (Web ACL Capacity Units, 1500 default per ACL), managed rule groups (AWSManagedRulesCommonRuleSet, AWSManagedRulesSQLiRuleSet, AWSManagedRulesAmazonIpReputationList, AWSManagedRulesLinuxRuleSet, AWSManagedRulesWindowsRuleSet, AWSManagedRulesUnixRuleSet), custom rules (byte-match, regex pattern set, geo-match, rate-based), IP set and regex pattern set resources, rule priority ordering (lowest number evaluated first), action types (allow, block, count, CAPTCHA, Challenge), bot control managed rule group, account takeover. Triggers: create WAF rule, WAF managed rule group, WAF custom rule, WAF byte match, WAF geo match, WAF rate based rule, WAF IP set, WAF regex pattern set, WAF WCU budget, WAF CloudFront ACL, WAF logging Kinesis Firehose, WAF bot control, WAF ATP, WAF label matching, WAF Challenge action, WAF CAPTCHA.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwaf-rule-deployer\u002FSKILL.md",[],[]]