[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AD4ZDWJ05H0FYN1AE5YG7K":3,"skill-same:01M7AD4ZDWJ05H0FYN1AE5YG7K":142},{"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":42,"commitSha":43,"skillDirectory":44,"forksCount":45,"repositoryHtmlUrl":46,"repositoryHomepageUrl":6,"ownerHtmlUrl":47,"ownerBlogUrl":6,"ownerDescription":48,"updatedAt":49,"install":50,"resources":63},"01M7AD4ZDWJ05H0FYN1AE5YG7K","stepfunctions-map-state-deployer",null,"Deploys AWS Step Functions Map state configurations with production defaults: Inline Map (synchronous, max 5000 items, shares parent execution context), Distributed Map (async, max 10000 items via child executions), Map state configuration (ItemsPath, MaxConcurrencyPath, MaxItemsPath, ItemBatchSize, ItemBatcher), ItemProcessor vs Iterator (ItemProcessor is current), batch processing with ItemBatchSize\u002FItemBatcher for throughput, Distributed Map with S3 input (CSV\u002FJSON\u002FJSONL from S3 via ReaderConfig), child execution quota, ResultSelector\u002FResultPath, error handling (Retry\u002FCatch per iteration), Parallel state vs Map state (fan-out vs iteration), cost model (Inline = no extra cost, Distributed = child execution cost), and Timestream\u002FFirehose as input source. Emits a READY_TO_DEPLOY checklist with. Triggers: step functions map state, inline map, distributed map, itemprocessor, itembatchsize, maxconcurrency, step functions batch processing, distributed map s3, step functions fan-out, map state error handling.","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-map-state-deployer\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: stepfunctions-map-state-deployer\ndescription: 'Deploys AWS Step Functions Map state configurations with production defaults: Inline Map (synchronous, max 5000 items, shares parent execution context), Distributed Map (async, max 10000 items via child executions), Map state configuration (ItemsPath, MaxConcurrencyPath, MaxItemsPath, ItemBatchSize, ItemBatcher), ItemProcessor vs Iterator (ItemProcessor is current), batch processing with ItemBatchSize\u002FItemBatcher for throughput, Distributed Map with S3 input (CSV\u002FJSON\u002FJSONL from S3 via ReaderConfig), child execution quota, ResultSelector\u002FResultPath, error handling (Retry\u002FCatch per iteration), Parallel state vs Map state (fan-out vs iteration), cost model (Inline = no extra cost, Distributed = child execution cost), and Timestream\u002FFirehose as input source. Emits a READY_TO_DEPLOY checklist with. Triggers: step functions map state, inline map, distributed map, itemprocessor, itembatchsize, maxconcurrency, step functions batch processing, distributed map s3, step functions fan-out, map state error handling.'\nlicense: Apache-2.0\ncompatibility: 'Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). For live deployment: AWS CLI v2 with stepfunctions access. Works with Terraform aws_sfn_state_machine resources and CloudFormation AWS::StepFunctions::StateMachine templates.'\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  version: 0.1.0\n  author: Jacky Chan — AWS Community Builder\n  tags: aws, step-functions, map-state, distributed-map, cloudops, deploy, app-integration, batch-processing, s3-input, itemprocessor\n  dependencies: aws-orchestrator\n  keywords: aws, step functions, map state, inline map, distributed map, itemprocessor, itembatchsize, maxconcurrency, cloudops, deploy, batch processing, s3 input, fan-out, child execution\n  when_to_use: Invoke when the user wants to configure a Step Functions Map state for array iteration (Inline or Distributed), process items in batches, scale beyond 5000 items with Distributed Map, read large datasets from S3 (CSV\u002FJSON\u002FJSONL), configure MaxConcurrency or ItemBatchSize, set up per-iteration error handling (Retry\u002FCatch), or choose between Inline Map, Distributed Map, and Parallel state. Do NOT invoke for Step Functions Express Workflow cost analysis (use stepfunctions-express- deployer), general state machine creation (use stepfunctions- statemachine-deployer), or execution troubleshooting (use stepfunctions-execution-troubleshooter).\n---\n\n# Step Functions Map State Deployer\n\nAn AWS CloudOps agent skill that deploys Step Functions Map state\nconfigurations with correct defaults. The skill walks the Inline vs\nDistributed Map decision, ItemsPath\u002FMaxConcurrency\u002FItemBatchSize\nconfiguration, ItemProcessor vs Iterator semantics, Distributed Map with\nS3 input, batch processing with ItemBatcher, child execution quota,\nResultSelector\u002FResultPath, per-iteration error handling, Parallel state\nvs Map state, and the cost model, captures the processing topology,\nexplains why each default matters, and emits a READY_TO_DEPLOY checklist\nwith copy-pasteable verification commands.\n\n## Activation keywords\n\nStep Functions Map state, Inline Map, Distributed Map, ItemProcessor,\nItemBatchSize, MaxConcurrency, Step Functions batch processing,\nDistributed Map S3 input, Map state error handling, Parallel state vs\nMap state, ItemBatcher, child execution quota.\n\n## STRICT output contract\n\nWhen this skill is invoked with a Map-state-provisioning request\n(configure a Map state, process arrays in Step Functions, batch\nprocessing items, scale beyond 5000 items, read large datasets from S3,\nor a partial configuration), the agent MUST respond with the\nREADY_TO_DEPLOY checklist defined in the \"Output format\" section using\nthe literal all-caps labels `MAP_STATE:`, `VERDICT:`, `CHECKLIST:`, and\n`VERIFICATION_COMMANDS:`. Do NOT preface the checklist with prose,\nheadings, or disclaimers — emit the block as the first lines of the\nresponse. This contract is what assertion-based evals and downstream\nprovisioning pipelines rely on; deviating from the literal labels breaks\nautomation silently.\n\nIf any prerequisite is missing, the verdict is `PREREQUISITES_MISSING`\nwith a specific gap citation in the checklist (marked `[✗]`), and\n`READY_TO_DEPLOY` MUST NOT also appear.\n\n## Quick navigation\n\n| Section | When to read |\n|---|---|\n| Prerequisites | Always — verify before provisioning |\n| Step 1 — Inline Map vs Distributed Map | Core Map type decision |\n| Step 2 — Map state configuration fields | ItemsPath, MaxConcurrency, etc. |\n| Step 3 — ItemProcessor vs Iterator | Processor definition |\n| Step 4 — Batch processing (ItemBatchSize\u002FItemBatcher) | Throughput optimization |\n| Step 5 — Distributed Map with S3 input | Large dataset ingestion |\n| Step 6 — Child execution quota | Distributed Map limits |\n| Step 7 — ResultSelector\u002FResultPath | Result shaping |\n| Step 8 — Error handling (Retry\u002FCatch) | Per-iteration resilience |\n| Step 9 — Parallel state vs Map state | Fan-out vs iteration |\n| Step 10 — Cost model | Inline free vs Distributed child cost |\n| Step 11 — Recent features | Latest |\n| NEVER do these things | Review before signing off |\n| Output format | The literal checklist template |\n| references\u002Fmap-configuration-and-batching.md | Config + batching detail |\n| references\u002Fdistributed-map-and-s3.md | Distributed Map + S3 detail |\n\n## Mindset\n\n**One-line takeaway:** A Map state iterates over an array of items,\nrunning the same sub-workflow for each item (or batch). Inline Map runs\nsynchronously within the parent execution (max 5000 items, no extra\ncost). Distributed Map runs each batch as a separate child execution\n(max 10000 items, incurs child execution cost). Choose Inline for small\narrays; Distributed for large arrays or S3-sourced datasets.\n\n> Full detail moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) - load on demand.\n> Summary: the three dominant Map-state misconceptions (interchangeable types, Iterator=ItemProcessor, Distributed=faster).\n\n## Configuration dependency graph (novel heuristic)\n\nMap state configurations are NOT independent. The Map type (Inline vs\nDistributed) determines the item limit, cost model, and whether child\nexecutions are spawned. ItemBatchSize only applies to Distributed Map.\nMaxConcurrency controls parallelism in both types but has different\nceiling values. Use this graph to sequence provisioning.\n\n| Configuration | Hard dependencies (API error without) | Silent failure \u002F immutability | Enables downstream |\n|---|---|---|---|\n| Map type (Inline\u002FDistributed) | `ItemProcessor.ProcessorConfig.Mode` set correctly | `Iterator` field silently forces Inline mode even if `Mode: DISTRIBUTED` is specified | the processing model |\n| ItemsPath | Input must contain a JSON array at the specified path | If ItemsPath is null, the entire input is treated as the array | array iteration |\n| MaxConcurrency | Map state defined; value 0 means unlimited | Inline max: 40; Distributed max: 1000 — exceeding silently caps | parallelism control |\n| MaxItems \u002F MaxItemsPath | Only supported on Distributed Map | Setting MaxItems on Inline Map is ignored (no error) | item count cap |\n| ItemBatchSize | Only supported on Distributed Map; ItemProcessor defined | Setting ItemBatchSize on Inline Map is ignored; range 1-10000 | batch grouping |\n| ItemBatcher | Distributed Map; defines batch size, MaxItemsPerBatch, MaxInputBytesPerBatch | Cannot be combined with ItemBatchSize — use ONE not both | advanced batch control |\n| ToleratedFailureCount\u002FPercentage | Distributed Map only; error handling | Without this, a single batch failure fails the ENTIRE Map state | partial failure tolerance |\n| S3 input (ReaderConfig) | Distributed Map only; S3 bucket\u002Fobject exists | CSV with > 10K rows requires Distributed Map; Inline cannot read from S3 directly | large dataset ingestion |\n| ResultSelector | Map state defined; must produce valid JSON | Applied BEFORE ResultPath; shapes raw result before merging | result shaping |\n| ResultPath | Map state defined; must not conflict with input | If null, original input is replaced entirely | result placement |\n| Retry\u002FCatch | Defined within ItemProcessor sub-workflow | Per-iteration Retry\u002FCatch is independent across items\u002Fbatches | per-iteration resilience |\n\n**The ItemBatchSize-on-Inline row is the one a baseline model misses.**\nSetting ItemBatchSize on an Inline Map is silently ignored — no error,\nno batching. The operator believes batches are being grouped, but each\nitem runs individually. Only Distributed Map supports ItemBatchSize and\nItemBatcher.\n\n**Cross-dependency gotchas:**\n- `Iterator` (legacy) and `ItemProcessor` (current) are mutually\n  exclusive. A state machine with BOTH fields will fail validation.\n- `ItemBatchSize` and `ItemBatcher` are mutually exclusive. Use\n  `ItemBatchSize` for simple fixed-size batches; use `ItemBatcher` for\n  advanced control (MaxItemsPerBatch, MaxInputBytesPerBatch).\n- `MaxConcurrency: 0` means UNLIMITED, not \"no concurrency.\" This is a\n  dangerous default if you expect sequential processing.\n- Distributed Map child executions count against the account's\n  concurrent execution quota (default 100000). Large batches with high\n  MaxConcurrency can exhaust this quota.\n\n## Expert heuristic: Inline vs Distributed decision tree\n\nA baseline model says \"use Distributed for large datasets.\" The correct\nheuristic recognizes that the decision depends on item count, input\nsource, execution history size, cost sensitivity, and partial failure\ntolerance.\n\n```text\nMap state type decision:\n  ├── Item count ≤ 5000 AND input is a JSON array in the state?\n  │     → Inline Map (no extra cost, shares parent context)\n  ├── Item count > 5000 (up to 10000)?\n  │     → Distributed Map (child executions required)\n  ├── Input source is S3 (CSV\u002FJSON\u002FJSONL file)?\n  │     → Distributed Map (Inline cannot read from S3)\n  ├── Input source is Timestream or Firehose?\n  │     → Distributed Map (requires child executions for external source)\n  ├── Need partial failure tolerance (some batches can fail)?\n  │     → Distributed Map (ToleratedFailureCount\u002FPercentage)\n  ├── Execution history growing too large (> 25000 entries)?\n  │     → Distributed Map (child executions keep parent history small)\n  ├── Need batch processing (group items)?\n  │     → Distributed Map (ItemBatchSize\u002FItemBatcher)\n  └── Cost-sensitive, small array?\n        → Inline Map (free, no child execution charges)\n```\n\n**Key implication:** the #1 mistake is choosing Inline Map for a use\ncase that exceeds its limits (> 5000 items, S3 input, or batch\ngrouping). The runtime error or silent failure is costly to debug.\n\n## Expert heuristic: ItemProcessor vs Iterator\n\n> Full detail moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) - load on demand.\n> Summary: the complete Iterator-vs-ItemProcessor field comparison with ASL examples.\n\n## Expert heuristic: batch processing with ItemBatchSize\n\n> Full detail moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) - load on demand.\n> Summary: the complete ItemBatchSize throughput\u002Fcost analysis.\n\n## Prerequisites (verify before provisioning)\n\nBefore emitting provisioning commands, verify these prerequisites. If\nany are missing, the verdict is **PREREQUISITES_MISSING**.\n\n| Prerequisite | Why it matters | How to verify |\n|---|---|---|\n| State machine exists or is being created | Map state is part of a state machine | Confirm state machine ARN or ASL definition |\n| Input contains a JSON array (for Inline) | Inline Map requires a JSON array in the input | Inspect the input payload or ItemsPath |\n| S3 bucket\u002Fobject exists (for Distributed Map with S3) | Distributed Map reads from S3 at runtime | `aws s3 ls s3:\u002F\u002F\u003Cbucket>\u002F\u003Ckey>` |\n| IAM role has S3 read access (for S3 input) | Distributed Map needs `s3:GetObject` permission | Check IAM policy on the state machine role |\n| Item count within limits | Inline: max 5000; Distributed: max 10000 | Verify input array length or S3 row count |\n| ItemProcessor defined (not Iterator) | Distributed Map requires ItemProcessor with ProcessorConfig | Inspect ASL definition |\n| ToleratedFailureCount\u002FPercentage set (for Distributed) | Without this, one batch failure fails the entire Map | Check Map state configuration |\n| MaxConcurrency within range | Inline: max 40; Distributed: max 1000 | Verify MaxConcurrency value |\n| Child execution quota sufficient (for Distributed) | Default 100000 concurrent executions per account | Check account quota |\n\nIf any prerequisite is missing, output `VERDICT: PREREQUISITES_MISSING`\nand cite the specific gap.\n\n## Step 1 — Inline Map vs Distributed Map\n\nThe first decision is Inline Map vs Distributed Map. This determines\nitem limits, cost model, and capabilities.\n\n| Feature | Inline Map | Distributed Map |\n|---|---|---|\n| Max items | 5000 | 10000 |\n| Execution model | Shares parent execution context | Each batch is a separate child execution |\n| Cost | No extra cost (included in parent execution) | Per-child-execition cost |\n| S3 input | NOT supported | Supported (CSV, JSON, JSONL) |\n| Batch processing (ItemBatchSize) | NOT supported | Supported (1-10000 items per batch) |\n| MaxConcurrency max | 40 | 1000 |\n| Partial failure tolerance | NOT supported | ToleratedFailureCount\u002FPercentage |\n| Execution history | Grows with item count (parent history) | Child executions keep parent history small |\n| Input payload size | Subject to 256KB execution input limit | Up to 300MB from S3 |\n| Mode field | `ProcessorConfig.Mode: INLINE` | `ProcessorConfig.Mode: DISTRIBUTED` |\n\n**Inline Map is the default.** If `ProcessorConfig` is omitted or\n`Mode` is not specified, the Map state runs as Inline.\n\n## Step 2 — Map state configuration fields\n\n| Field | Applies to | Description | Default |\n|---|---|---|---|\n| `ItemsPath` | Both | JSONPath to the array in the input | `$` (entire input) |\n| `MaxConcurrencyPath` | Both | JSONPath to a MaxConcurrency value in the input | None (uses MaxConcurrency) |\n| `MaxConcurrency` | Both | Max parallel iterations (0 = unlimited) | 0 (unlimited) |\n| `MaxItemsPath` | Distributed only | JSONPath to a max items value | None |\n| `MaxItems` | Distributed only | Hard cap on number of items processed | None |\n| `ItemBatchSize` | Distributed only | Items per child execution batch | 1 |\n| `ItemBatcher` | Distributed only | Advanced batch config (MaxItemsPerBatch, MaxInputBytesPerBatch) | None |\n| `ItemSelector` | Both | Transforms input before passing to each iteration | None |\n| `ToleratedFailureCount` | Distributed only | Number of batch failures tolerated | 0 |\n| `ToleratedFailurePercentage` | Distributed only | Percentage of batch failures tolerated | 0 |\n| `Label` | Distributed only | Label for child executions (for identification) | None |\n\n**Common mistake:** setting `MaxConcurrency: 0` expecting sequential\nprocessing. Zero means UNLIMITED. For sequential, use\n`MaxConcurrency: 1`.\n\n## Step 3 — ItemProcessor vs Iterator\n\n> Full detail moved verbatim to [references\u002Fmap-configuration-and-batching.md](references\u002Fmap-configuration-and-batching.md) - load on demand.\n> Summary: the ItemProcessor-vs-Iterator comparison table and full ASL template.\n\n## Step 4 — Batch processing (ItemBatchSize\u002FItemBatcher)\n\nBatch processing groups multiple items into a single child execution,\nreducing overhead and cost in Distributed Map.\n\n> Full detail moved verbatim to [references\u002Fmap-configuration-and-batching.md](references\u002Fmap-configuration-and-batching.md) - load on demand.\n> Summary: the ItemBatchSize and ItemBatcher JSON templates with comparison table.\n\n**ItemBatchSize vs ItemBatcher:**\n\n| Feature | ItemBatchSize | ItemBatcher |\n|---|---|---|\n| Simplicity | Single integer | Object with multiple fields |\n| MaxInputBytesPerBatch | Not configurable | Configurable (default 64KB) |\n| BatchInput (extra context per batch) | Not available | Available |\n| Mutually exclusive | Yes — use ONE | Yes — use ONE |\n\n**Critical:** the sub-workflow receives a JSON array of items (the\nbatch), not a single item. The Lambda or sub-workflow must handle an\narray input, not a single object.\n\n## Step 5 — Distributed Map with S3 input\n\nDistributed Map can read large datasets directly from S3 (CSV, JSON, or\nJSONL files) using `ReaderConfig`.\n\n> Full detail moved verbatim to [references\u002Fdistributed-map-and-s3.md](references\u002Fdistributed-map-and-s3.md) - load on demand.\n> Summary: the full S3 ItemReader (CSV) Distributed Map template.\n\n**Supported S3 input formats:**\n\n| Format | InputType | Notes |\n|---|---|---|\n| CSV | `CSV` | First row can be headers (CSVHeaderLocation: FIRST_ROW) |\n| JSON (array) | `JSON` | S3 object must contain a JSON array |\n| JSONL (JSON Lines) | `JSONL` | One JSON object per line |\n\n**S3 input size limits:**\n\n| Limit | Value |\n|---|---|\n| Max S3 object size (CSV) | 30 GB |\n| Max S3 object size (JSON) | 30 GB |\n| Max S3 object size (JSONL) | 30 GB |\n| Max items extracted | 10000 |\n| Max payload per batch | 64 KB (configurable via MaxInputBytesPerBatch) |\n\n**IAM requirement:** the state machine role needs `s3:GetObject` on the\ntarget bucket\u002Fkey.\n\n## Step 6 — Child execution quota\n\nDistributed Map spawns child executions. Each child execution counts\nagainst the account's concurrent execution quota.\n\n| Quota | Default | Adjustable |\n|---|---|---|\n| Concurrent executions per account | 100000 | Yes (Service Quotas) |\n| Open child executions per Map state | 10000 | No |\n| Items per Map state run | 10000 | No |\n| Batches per Map state run | 10000 | No |\n\n**Key implication:** with `MaxConcurrency: 1000` and `ItemBatchSize: 1`,\na 10000-item Distributed Map spawns 10000 child executions. With\n`ItemBatchSize: 100`, it spawns 100 child executions. Batch processing\nreduces concurrency pressure dramatically.\n\n## Step 7 — ResultSelector\u002FResultPath\n\n`ResultSelector` and `ResultPath` shape where and how Map state results\nare placed in the overall state output.\n\n| Field | Purpose | Placement |\n|---|---|---|\n| `ResultSelector` | Transforms the raw result BEFORE merging (applied first) | Shapes data |\n| `ResultPath` | Where the result goes in the state output | Controls placement |\n| `ResultPath: null` | Discards the result (original input passes through) | Drop result |\n| `ResultPath: \"$.result\"` | Places result at `$.result` | Merge with input |\n\n> Full detail moved verbatim to [references\u002Fmap-configuration-and-batching.md](references\u002Fmap-configuration-and-batching.md) - load on demand.\n> Summary: the ResultSelector\u002FResultPath JSON template.\n\n**Common mistake:** using `ResultPath: null` when you need the results\nfor downstream states. This silently discards all iteration outputs.\n\n## Step 8 — Error handling (Retry\u002FCatch per iteration)\n\nRetry and Catch are defined INSIDE the ItemProcessor sub-workflow, not\non the Map state itself. Each iteration (or batch) handles errors\nindependently.\n\n> Full detail moved verbatim to [references\u002Ferror-handling.md](references\u002Ferror-handling.md) - load on demand.\n> Summary: the full per-iteration Retry\u002FCatch JSON template.\n\n**Distributed Map partial failure:**\n\n- `ToleratedFailureCount`: absolute number of batches that can fail\n- `ToleratedFailurePercentage`: percentage of batches that can fail\n- If failures exceed the threshold, the Map state fails\n- If failures are within tolerance, the Map state succeeds but includes\n  failed items in the output\n\n**Key implication:** without `ToleratedFailureCount`\u002F`Percentage` (both\ndefault to 0), a SINGLE batch failure fails the ENTIRE Map state. For\nfault-tolerant processing, set one of these.\n\n## Step 9 — Parallel state vs Map state\n\nBoth Parallel and Map states fan out work, but they serve different\npurposes.\n\n| Feature | Parallel State | Map State |\n|---|---|---|\n| Purpose | Run DIFFERENT branches concurrently | Run the SAME branch over an array |\n| Branches | Each branch is a distinct sub-workflow | Single sub-workflow, repeated per item |\n| Input | Same input to all branches | Each item from the array |\n| Output | Array of branch results | Array of iteration results |\n| Use case | Fan-out of heterogeneous tasks | Iterate over homogeneous items |\n| Dynamic items | NOT supported (branches are static) | Supported (array-driven) |\n| Distributed mode | NOT supported | Supported (Distributed Map) |\n\n**Decision rule:** use Parallel when branches do DIFFERENT things. Use\nMap when the same thing is done for EACH item in an array.\n\n## Step 10 — Cost model\n\n| Component | Inline Map | Distributed Map |\n|---|---|---|\n| Per-transition cost | Included in parent execution | Included in parent execution |\n| Child execution cost | N\u002FA (no child executions) | Each batch = one child execution (billed separately) |\n| State transition cost | Billed within parent | Child execution state transitions billed separately |\n| S3 GET (for S3 input) | N\u002FA | Standard S3 pricing |\n\n> Full detail moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) - load on demand.\n> Summary: the cost prose and worked 10000-item cost example.\n\n**Key implication:** batch processing (ItemBatchSize) is the single most\nimpactful cost optimization for Distributed Map. Always batch when\npossible.\n\n## Step 11 — Recent features\n\n> Full detail moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) - load on demand.\n> Summary: the 2023-2026 feature list (ItemBatcher, Timestream\u002FFirehose input, ToleratedFailureCount, Express Distributed Map, Label).\n\n## NEVER do these things\n\n1. **NEVER use Inline Map for more than 5000 items.** Inline Map has a\n   hard 5000-item limit. It will FAIL at runtime. Use Distributed Map\n   for arrays exceeding 5000 items.\n\n2. **NEVER set MaxConcurrency: 0 expecting sequential processing.** Zero\n   means UNLIMITED concurrency. For sequential processing, use\n   `MaxConcurrency: 1`.\n\n3. **NEVER mix Iterator and ItemProcessor.** They are mutually\n   exclusive. A state machine with BOTH fields will fail validation.\n   Use ItemProcessor for all new state machines.\n\n4. **NEVER set ItemBatchSize on an Inline Map.** ItemBatchSize is only\n   supported on Distributed Map. On Inline Map, it is silently ignored\n   — no error, but no batching occurs.\n\n5. **NEVER use Distributed Map without ToleratedFailureCount or\n   ToleratedFailurePercentage for fault-tolerant workloads.** Both\n   default to 0, meaning a SINGLE batch failure fails the ENTIRE Map\n   state. Set at least one tolerance threshold.\n\n6. **NEVER assume the ItemProcessor receives a single item when\n   ItemBatchSize > 1.** The sub-workflow receives a BATCH (array of\n   items). The Lambda or Task must handle an array input, not a single\n   object.\n\n7. **NEVER mix ItemBatchSize and ItemBatcher.** They are mutually\n   exclusive. Use ItemBatchSize for simple fixed-size batches; use\n   ItemBatcher for advanced control.\n\n8. **NEVER forget the S3 IAM permission for Distributed Map with S3\n   input.** The state machine role needs `s3:GetObject` on the target\n   bucket\u002Fkey. Without it, the Map state fails at runtime.\n\n9. **NEVER use Parallel state for array iteration.** Parallel state\n   runs DIFFERENT branches concurrently; it does NOT iterate over an\n   array. Use Map state for iteration.\n\n10. **NEVER ignore child execution quota.** Each Distributed Map child\n    execution counts against the account's concurrent execution quota\n    (default 100000). Large batches with high MaxConcurrency can exhaust\n    this quota and cause throttling.\n\n## Output format\n\n```text\nMAP_STATE: \u003Cstate-name> (\u003Cmap-type: INLINE|DISTRIBUTED>)\nVERDICT: READY_TO_DEPLOY | PREREQUISITES_MISSING\nCHECKLIST:\n  [✓|✗] Map type: Inline | Distributed\n  [✓|✗] ItemProcessor: defined (Mode: \u003CINLINE|DISTRIBUTED>)\n  [✓|✗] ItemsPath: \u003Cjsonpath> (input array)\n  [✓|✗] MaxConcurrency: \u003Cvalue> (0 = unlimited, Inline max 40, Distributed max 1000)\n  [✓|✗] MaxItems: \u003Cvalue|N\u002FA> (Distributed only)\n  [✓|✗] ItemBatchSize \u002F ItemBatcher: \u003Cvalue|N\u002FA> (Distributed only)\n  [✓|✗] ToleratedFailureCount\u002FPercentage: \u003Cvalue> (Distributed only)\n  [✓|✗] S3 input: \u003Cbucket\u002Fkey|N\u002FA> (Distributed only, format \u003CCSV|JSON|JSONL>)\n  [✓|✗] ResultSelector: \u003Cdefined|none>\n  [✓|✗] ResultPath: \u003Cjsonpath|null|none>\n  [✓|✗] Error handling: Retry\u002FCatch per iteration (\u003Cdefined>)\n  [✓|✗] IAM role: \u003Chas-s3-access|standard>\n  [✓|✗] Item count: \u003Ccount> (within \u003CInline 5000 | Distributed 10000> limit)\n  [✓|✗] Tags: \u003Ckey=value list>\nVERIFICATION_COMMANDS:\n  aws stepfunctions describe-state-machine --state-machine-arn \u003Carn>\n  aws stepfunctions describe-execution --execution-arn \u003Cexecution-arn>\n```\n\n### Worked example — Distributed Map with S3 CSV input\n\n```text\nMAP_STATE: ProcessRecords (DISTRIBUTED)\nVERDICT: READY_TO_DEPLOY\nCHECKLIST:\n  [✓] Map type: Distributed\n  [✓] ItemProcessor: defined (Mode: DISTRIBUTED, ExecutionType: STANDARD)\n  [✓] ItemsPath: N\u002FA (S3 input via ItemReader)\n  [✓] MaxConcurrency: 50\n  [✓] MaxItems: 10000\n  [✓] ItemBatchSize: 100 (100 items per child execution → 100 child executions max)\n  [✓] ToleratedFailurePercentage: 5 (allows up to 5% batch failures)\n  [✓] S3 input: s3:\u002F\u002Fmy-data-bucket\u002Fdatasets\u002Frecords.csv (CSV, FIRST_ROW headers)\n  [✓] ResultSelector: { \"processed.$\": \"$\" }\n  [✓] ResultPath: $.processing_result\n  [✓] Error handling: Retry (3 attempts, exponential backoff) + Catch → HandleError\n  [✓] IAM role: has s3:GetObject on my-data-bucket\n  [✓] Item count: 8500 rows (within Distributed 10000 limit)\n  [✓] Tags: Environment=production, Workflow=data-pipeline\nVERIFICATION_COMMANDS:\n  aws stepfunctions describe-state-machine --state-machine-arn arn:aws:states:us-east-1:123456789012:stateMachine:DataPipeline\n  aws stepfunctions describe-execution --execution-arn \u003Cexecution-arn>\n```\n\n## Error handling\n\n> Full detail moved verbatim to [references\u002Ferror-handling.md](references\u002Ferror-handling.md) - load on demand.\n> Summary: the six runtime failure-mode triage subsections.\n\n## References (load on demand)\n\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) - Map misconceptions, ItemProcessor\u002Fbatching expert heuristics, cost deep dive, recent features\n- [references\u002Ferror-handling.md](references\u002Ferror-handling.md) - per-iteration Retry\u002FCatch template and runtime error triage\n- [references\u002Fmap-configuration-and-batching.md](references\u002Fmap-configuration-and-batching.md) - (existing) config + batching detail; now also holds Step 3\u002F4\u002F7 templates\n- [references\u002Fdistributed-map-and-s3.md](references\u002Fdistributed-map-and-s3.md) - (existing) Distributed Map + S3 detail; now also holds the Step 5 ItemReader template\n\n## Domain\n\nAWS CloudOps \u002F AWS Step Functions Map State Configuration & Array\nIteration Processing.\n\n## AWS documentation\n\n- **Map State** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Famazon-states-language-map-state.html\n- **Distributed Map state** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Fconcepts-asl-use-map-state-distributed-mode.html\n- **Inline Map state** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Fconcepts-asl-use-map-state-inline-mode.html\n- **ItemProcessor** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Fconcepts-asl-use-map-state.html#amazon-states-language-item-processor\n- **ItemBatcher** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Fbatch-processing-item-batcher.html\n- **Distributed Map S3 input** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Fconcepts-asl-use-map-state-distributed-mode.html#dist-map-s3-input\n- **Parallel vs Map** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Famazon-states-language-parallel-state.html\n- **Step Functions quotas** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Flimits-overview.html\n- **Step Functions pricing** — https:\u002F\u002Faws.amazon.com\u002Fstep-functions\u002Fpricing\u002F\n","# Step Functions Map State Deployer\n\nAn AWS CloudOps agent skill that deploys Step Functions Map state\nconfigurations with correct defaults. The skill walks the Inline vs\nDistributed Map decision, ItemsPath\u002FMaxConcurrency\u002FItemBatchSize\nconfiguration, ItemProcessor vs Iterator semantics, Distributed Map with\nS3 input, batch processing with ItemBatcher, child execution quota,\nResultSelector\u002FResultPath, per-iteration error handling, Parallel state\nvs Map state, and the cost model, captures the processing topology,\nexplains why each default matters, and emits a READY_TO_DEPLOY checklist\nwith copy-pasteable verification commands.\n\n## Activation keywords\n\nStep Functions Map state, Inline Map, Distributed Map, ItemProcessor,\nItemBatchSize, MaxConcurrency, Step Functions batch processing,\nDistributed Map S3 input, Map state error handling, Parallel state vs\nMap state, ItemBatcher, child execution quota.\n\n## STRICT output contract\n\nWhen this skill is invoked with a Map-state-provisioning request\n(configure a Map state, process arrays in Step Functions, batch\nprocessing items, scale beyond 5000 items, read large datasets from S3,\nor a partial configuration), the agent MUST respond with the\nREADY_TO_DEPLOY checklist defined in the \"Output format\" section using\nthe literal all-caps labels `MAP_STATE:`, `VERDICT:`, `CHECKLIST:`, and\n`VERIFICATION_COMMANDS:`. Do NOT preface the checklist with prose,\nheadings, or disclaimers — emit the block as the first lines of the\nresponse. This contract is what assertion-based evals and downstream\nprovisioning pipelines rely on; deviating from the literal labels breaks\nautomation silently.\n\nIf any prerequisite is missing, the verdict is `PREREQUISITES_MISSING`\nwith a specific gap citation in the checklist (marked `[✗]`), and\n`READY_TO_DEPLOY` MUST NOT also appear.\n\n## Quick navigation\n\n| Section | When to read |\n|---|---|\n| Prerequisites | Always — verify before provisioning |\n| Step 1 — Inline Map vs Distributed Map | Core Map type decision |\n| Step 2 — Map state configuration fields | ItemsPath, MaxConcurrency, etc. |\n| Step 3 — ItemProcessor vs Iterator | Processor definition |\n| Step 4 — Batch processing (ItemBatchSize\u002FItemBatcher) | Throughput optimization |\n| Step 5 — Distributed Map with S3 input | Large dataset ingestion |\n| Step 6 — Child execution quota | Distributed Map limits |\n| Step 7 — ResultSelector\u002FResultPath | Result shaping |\n| Step 8 — Error handling (Retry\u002FCatch) | Per-iteration resilience |\n| Step 9 — Parallel state vs Map state | Fan-out vs iteration |\n| Step 10 — Cost model | Inline free vs Distributed child cost |\n| Step 11 — Recent features | Latest |\n| NEVER do these things | Review before signing off |\n| Output format | The literal checklist template |\n| references\u002Fmap-configuration-and-batching.md | Config + batching detail |\n| references\u002Fdistributed-map-and-s3.md | Distributed Map + S3 detail |\n\n## Mindset\n\n**One-line takeaway:** A Map state iterates over an array of items,\nrunning the same sub-workflow for each item (or batch). Inline Map runs\nsynchronously within the parent execution (max 5000 items, no extra\ncost). Distributed Map runs each batch as a separate child execution\n(max 10000 items, incurs child execution cost). Choose Inline for small\narrays; Distributed for large arrays or S3-sourced datasets.\n\n> Full detail moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) - load on demand.\n> Summary: the three dominant Map-state misconceptions (interchangeable types, Iterator=ItemProcessor, Distributed=faster).\n\n## Configuration dependency graph (novel heuristic)\n\nMap state configurations are NOT independent. The Map type (Inline vs\nDistributed) determines the item limit, cost model, and whether child\nexecutions are spawned. ItemBatchSize only applies to Distributed Map.\nMaxConcurrency controls parallelism in both types but has different\nceiling values. Use this graph to sequence provisioning.\n\n| Configuration | Hard dependencies (API error without) | Silent failure \u002F immutability | Enables downstream |\n|---|---|---|---|\n| Map type (Inline\u002FDistributed) | `ItemProcessor.ProcessorConfig.Mode` set correctly | `Iterator` field silently forces Inline mode even if `Mode: DISTRIBUTED` is specified | the processing model |\n| ItemsPath | Input must contain a JSON array at the specified path | If ItemsPath is null, the entire input is treated as the array | array iteration |\n| MaxConcurrency | Map state defined; value 0 means unlimited | Inline max: 40; Distributed max: 1000 — exceeding silently caps | parallelism control |\n| MaxItems \u002F MaxItemsPath | Only supported on Distributed Map | Setting MaxItems on Inline Map is ignored (no error) | item count cap |\n| ItemBatchSize | Only supported on Distributed Map; ItemProcessor defined | Setting ItemBatchSize on Inline Map is ignored; range 1-10000 | batch grouping |\n| ItemBatcher | Distributed Map; defines batch size, MaxItemsPerBatch, MaxInputBytesPerBatch | Cannot be combined with ItemBatchSize — use ONE not both | advanced batch control |\n| ToleratedFailureCount\u002FPercentage | Distributed Map only; error handling | Without this, a single batch failure fails the ENTIRE Map state | partial failure tolerance |\n| S3 input (ReaderConfig) | Distributed Map only; S3 bucket\u002Fobject exists | CSV with > 10K rows requires Distributed Map; Inline cannot read from S3 directly | large dataset ingestion |\n| ResultSelector | Map state defined; must produce valid JSON | Applied BEFORE ResultPath; shapes raw result before merging | result shaping |\n| ResultPath | Map state defined; must not conflict with input | If null, original input is replaced entirely | result placement |\n| Retry\u002FCatch | Defined within ItemProcessor sub-workflow | Per-iteration Retry\u002FCatch is independent across items\u002Fbatches | per-iteration resilience |\n\n**The ItemBatchSize-on-Inline row is the one a baseline model misses.**\nSetting ItemBatchSize on an Inline Map is silently ignored — no error,\nno batching. The operator believes batches are being grouped, but each\nitem runs individually. Only Distributed Map supports ItemBatchSize and\nItemBatcher.\n\n**Cross-dependency gotchas:**\n- `Iterator` (legacy) and `ItemProcessor` (current) are mutually\n  exclusive. A state machine with BOTH fields will fail validation.\n- `ItemBatchSize` and `ItemBatcher` are mutually exclusive. Use\n  `ItemBatchSize` for simple fixed-size batches; use `ItemBatcher` for\n  advanced control (MaxItemsPerBatch, MaxInputBytesPerBatch).\n- `MaxConcurrency: 0` means UNLIMITED, not \"no concurrency.\" This is a\n  dangerous default if you expect sequential processing.\n- Distributed Map child executions count against the account's\n  concurrent execution quota (default 100000). Large batches with high\n  MaxConcurrency can exhaust this quota.\n\n## Expert heuristic: Inline vs Distributed decision tree\n\nA baseline model says \"use Distributed for large datasets.\" The correct\nheuristic recognizes that the decision depends on item count, input\nsource, execution history size, cost sensitivity, and partial failure\ntolerance.\n\n```text\nMap state type decision:\n  ├── Item count ≤ 5000 AND input is a JSON array in the state?\n  │     → Inline Map (no extra cost, shares parent context)\n  ├── Item count > 5000 (up to 10000)?\n  │     → Distributed Map (child executions required)\n  ├── Input source is S3 (CSV\u002FJSON\u002FJSONL file)?\n  │     → Distributed Map (Inline cannot read from S3)\n  ├── Input source is Timestream or Firehose?\n  │     → Distributed Map (requires child executions for external source)\n  ├── Need partial failure tolerance (some batches can fail)?\n  │     → Distributed Map (ToleratedFailureCount\u002FPercentage)\n  ├── Execution history growing too large (> 25000 entries)?\n  │     → Distributed Map (child executions keep parent history small)\n  ├── Need batch processing (group items)?\n  │     → Distributed Map (ItemBatchSize\u002FItemBatcher)\n  └── Cost-sensitive, small array?\n        → Inline Map (free, no child execution charges)\n```\n\n**Key implication:** the #1 mistake is choosing Inline Map for a use\ncase that exceeds its limits (> 5000 items, S3 input, or batch\ngrouping). The runtime error or silent failure is costly to debug.\n\n## Expert heuristic: ItemProcessor vs Iterator\n\n> Full detail moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) - load on demand.\n> Summary: the complete Iterator-vs-ItemProcessor field comparison with ASL examples.\n\n## Expert heuristic: batch processing with ItemBatchSize\n\n> Full detail moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) - load on demand.\n> Summary: the complete ItemBatchSize throughput\u002Fcost analysis.\n\n## Prerequisites (verify before provisioning)\n\nBefore emitting provisioning commands, verify these prerequisites. If\nany are missing, the verdict is **PREREQUISITES_MISSING**.\n\n| Prerequisite | Why it matters | How to verify |\n|---|---|---|\n| State machine exists or is being created | Map state is part of a state machine | Confirm state machine ARN or ASL definition |\n| Input contains a JSON array (for Inline) | Inline Map requires a JSON array in the input | Inspect the input payload or ItemsPath |\n| S3 bucket\u002Fobject exists (for Distributed Map with S3) | Distributed Map reads from S3 at runtime | `aws s3 ls s3:\u002F\u002F\u003Cbucket>\u002F\u003Ckey>` |\n| IAM role has S3 read access (for S3 input) | Distributed Map needs `s3:GetObject` permission | Check IAM policy on the state machine role |\n| Item count within limits | Inline: max 5000; Distributed: max 10000 | Verify input array length or S3 row count |\n| ItemProcessor defined (not Iterator) | Distributed Map requires ItemProcessor with ProcessorConfig | Inspect ASL definition |\n| ToleratedFailureCount\u002FPercentage set (for Distributed) | Without this, one batch failure fails the entire Map | Check Map state configuration |\n| MaxConcurrency within range | Inline: max 40; Distributed: max 1000 | Verify MaxConcurrency value |\n| Child execution quota sufficient (for Distributed) | Default 100000 concurrent executions per account | Check account quota |\n\nIf any prerequisite is missing, output `VERDICT: PREREQUISITES_MISSING`\nand cite the specific gap.\n\n## Step 1 — Inline Map vs Distributed Map\n\nThe first decision is Inline Map vs Distributed Map. This determines\nitem limits, cost model, and capabilities.\n\n| Feature | Inline Map | Distributed Map |\n|---|---|---|\n| Max items | 5000 | 10000 |\n| Execution model | Shares parent execution context | Each batch is a separate child execution |\n| Cost | No extra cost (included in parent execution) | Per-child-execition cost |\n| S3 input | NOT supported | Supported (CSV, JSON, JSONL) |\n| Batch processing (ItemBatchSize) | NOT supported | Supported (1-10000 items per batch) |\n| MaxConcurrency max | 40 | 1000 |\n| Partial failure tolerance | NOT supported | ToleratedFailureCount\u002FPercentage |\n| Execution history | Grows with item count (parent history) | Child executions keep parent history small |\n| Input payload size | Subject to 256KB execution input limit | Up to 300MB from S3 |\n| Mode field | `ProcessorConfig.Mode: INLINE` | `ProcessorConfig.Mode: DISTRIBUTED` |\n\n**Inline Map is the default.** If `ProcessorConfig` is omitted or\n`Mode` is not specified, the Map state runs as Inline.\n\n## Step 2 — Map state configuration fields\n\n| Field | Applies to | Description | Default |\n|---|---|---|---|\n| `ItemsPath` | Both | JSONPath to the array in the input | `$` (entire input) |\n| `MaxConcurrencyPath` | Both | JSONPath to a MaxConcurrency value in the input | None (uses MaxConcurrency) |\n| `MaxConcurrency` | Both | Max parallel iterations (0 = unlimited) | 0 (unlimited) |\n| `MaxItemsPath` | Distributed only | JSONPath to a max items value | None |\n| `MaxItems` | Distributed only | Hard cap on number of items processed | None |\n| `ItemBatchSize` | Distributed only | Items per child execution batch | 1 |\n| `ItemBatcher` | Distributed only | Advanced batch config (MaxItemsPerBatch, MaxInputBytesPerBatch) | None |\n| `ItemSelector` | Both | Transforms input before passing to each iteration | None |\n| `ToleratedFailureCount` | Distributed only | Number of batch failures tolerated | 0 |\n| `ToleratedFailurePercentage` | Distributed only | Percentage of batch failures tolerated | 0 |\n| `Label` | Distributed only | Label for child executions (for identification) | None |\n\n**Common mistake:** setting `MaxConcurrency: 0` expecting sequential\nprocessing. Zero means UNLIMITED. For sequential, use\n`MaxConcurrency: 1`.\n\n## Step 3 — ItemProcessor vs Iterator\n\n> Full detail moved verbatim to [references\u002Fmap-configuration-and-batching.md](references\u002Fmap-configuration-and-batching.md) - load on demand.\n> Summary: the ItemProcessor-vs-Iterator comparison table and full ASL template.\n\n## Step 4 — Batch processing (ItemBatchSize\u002FItemBatcher)\n\nBatch processing groups multiple items into a single child execution,\nreducing overhead and cost in Distributed Map.\n\n> Full detail moved verbatim to [references\u002Fmap-configuration-and-batching.md](references\u002Fmap-configuration-and-batching.md) - load on demand.\n> Summary: the ItemBatchSize and ItemBatcher JSON templates with comparison table.\n\n**ItemBatchSize vs ItemBatcher:**\n\n| Feature | ItemBatchSize | ItemBatcher |\n|---|---|---|\n| Simplicity | Single integer | Object with multiple fields |\n| MaxInputBytesPerBatch | Not configurable | Configurable (default 64KB) |\n| BatchInput (extra context per batch) | Not available | Available |\n| Mutually exclusive | Yes — use ONE | Yes — use ONE |\n\n**Critical:** the sub-workflow receives a JSON array of items (the\nbatch), not a single item. The Lambda or sub-workflow must handle an\narray input, not a single object.\n\n## Step 5 — Distributed Map with S3 input\n\nDistributed Map can read large datasets directly from S3 (CSV, JSON, or\nJSONL files) using `ReaderConfig`.\n\n> Full detail moved verbatim to [references\u002Fdistributed-map-and-s3.md](references\u002Fdistributed-map-and-s3.md) - load on demand.\n> Summary: the full S3 ItemReader (CSV) Distributed Map template.\n\n**Supported S3 input formats:**\n\n| Format | InputType | Notes |\n|---|---|---|\n| CSV | `CSV` | First row can be headers (CSVHeaderLocation: FIRST_ROW) |\n| JSON (array) | `JSON` | S3 object must contain a JSON array |\n| JSONL (JSON Lines) | `JSONL` | One JSON object per line |\n\n**S3 input size limits:**\n\n| Limit | Value |\n|---|---|\n| Max S3 object size (CSV) | 30 GB |\n| Max S3 object size (JSON) | 30 GB |\n| Max S3 object size (JSONL) | 30 GB |\n| Max items extracted | 10000 |\n| Max payload per batch | 64 KB (configurable via MaxInputBytesPerBatch) |\n\n**IAM requirement:** the state machine role needs `s3:GetObject` on the\ntarget bucket\u002Fkey.\n\n## Step 6 — Child execution quota\n\nDistributed Map spawns child executions. Each child execution counts\nagainst the account's concurrent execution quota.\n\n| Quota | Default | Adjustable |\n|---|---|---|\n| Concurrent executions per account | 100000 | Yes (Service Quotas) |\n| Open child executions per Map state | 10000 | No |\n| Items per Map state run | 10000 | No |\n| Batches per Map state run | 10000 | No |\n\n**Key implication:** with `MaxConcurrency: 1000` and `ItemBatchSize: 1`,\na 10000-item Distributed Map spawns 10000 child executions. With\n`ItemBatchSize: 100`, it spawns 100 child executions. Batch processing\nreduces concurrency pressure dramatically.\n\n## Step 7 — ResultSelector\u002FResultPath\n\n`ResultSelector` and `ResultPath` shape where and how Map state results\nare placed in the overall state output.\n\n| Field | Purpose | Placement |\n|---|---|---|\n| `ResultSelector` | Transforms the raw result BEFORE merging (applied first) | Shapes data |\n| `ResultPath` | Where the result goes in the state output | Controls placement |\n| `ResultPath: null` | Discards the result (original input passes through) | Drop result |\n| `ResultPath: \"$.result\"` | Places result at `$.result` | Merge with input |\n\n> Full detail moved verbatim to [references\u002Fmap-configuration-and-batching.md](references\u002Fmap-configuration-and-batching.md) - load on demand.\n> Summary: the ResultSelector\u002FResultPath JSON template.\n\n**Common mistake:** using `ResultPath: null` when you need the results\nfor downstream states. This silently discards all iteration outputs.\n\n## Step 8 — Error handling (Retry\u002FCatch per iteration)\n\nRetry and Catch are defined INSIDE the ItemProcessor sub-workflow, not\non the Map state itself. Each iteration (or batch) handles errors\nindependently.\n\n> Full detail moved verbatim to [references\u002Ferror-handling.md](references\u002Ferror-handling.md) - load on demand.\n> Summary: the full per-iteration Retry\u002FCatch JSON template.\n\n**Distributed Map partial failure:**\n\n- `ToleratedFailureCount`: absolute number of batches that can fail\n- `ToleratedFailurePercentage`: percentage of batches that can fail\n- If failures exceed the threshold, the Map state fails\n- If failures are within tolerance, the Map state succeeds but includes\n  failed items in the output\n\n**Key implication:** without `ToleratedFailureCount`\u002F`Percentage` (both\ndefault to 0), a SINGLE batch failure fails the ENTIRE Map state. For\nfault-tolerant processing, set one of these.\n\n## Step 9 — Parallel state vs Map state\n\nBoth Parallel and Map states fan out work, but they serve different\npurposes.\n\n| Feature | Parallel State | Map State |\n|---|---|---|\n| Purpose | Run DIFFERENT branches concurrently | Run the SAME branch over an array |\n| Branches | Each branch is a distinct sub-workflow | Single sub-workflow, repeated per item |\n| Input | Same input to all branches | Each item from the array |\n| Output | Array of branch results | Array of iteration results |\n| Use case | Fan-out of heterogeneous tasks | Iterate over homogeneous items |\n| Dynamic items | NOT supported (branches are static) | Supported (array-driven) |\n| Distributed mode | NOT supported | Supported (Distributed Map) |\n\n**Decision rule:** use Parallel when branches do DIFFERENT things. Use\nMap when the same thing is done for EACH item in an array.\n\n## Step 10 — Cost model\n\n| Component | Inline Map | Distributed Map |\n|---|---|---|\n| Per-transition cost | Included in parent execution | Included in parent execution |\n| Child execution cost | N\u002FA (no child executions) | Each batch = one child execution (billed separately) |\n| State transition cost | Billed within parent | Child execution state transitions billed separately |\n| S3 GET (for S3 input) | N\u002FA | Standard S3 pricing |\n\n> Full detail moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) - load on demand.\n> Summary: the cost prose and worked 10000-item cost example.\n\n**Key implication:** batch processing (ItemBatchSize) is the single most\nimpactful cost optimization for Distributed Map. Always batch when\npossible.\n\n## Step 11 — Recent features\n\n> Full detail moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) - load on demand.\n> Summary: the 2023-2026 feature list (ItemBatcher, Timestream\u002FFirehose input, ToleratedFailureCount, Express Distributed Map, Label).\n\n## NEVER do these things\n\n1. **NEVER use Inline Map for more than 5000 items.** Inline Map has a\n   hard 5000-item limit. It will FAIL at runtime. Use Distributed Map\n   for arrays exceeding 5000 items.\n\n2. **NEVER set MaxConcurrency: 0 expecting sequential processing.** Zero\n   means UNLIMITED concurrency. For sequential processing, use\n   `MaxConcurrency: 1`.\n\n3. **NEVER mix Iterator and ItemProcessor.** They are mutually\n   exclusive. A state machine with BOTH fields will fail validation.\n   Use ItemProcessor for all new state machines.\n\n4. **NEVER set ItemBatchSize on an Inline Map.** ItemBatchSize is only\n   supported on Distributed Map. On Inline Map, it is silently ignored\n   — no error, but no batching occurs.\n\n5. **NEVER use Distributed Map without ToleratedFailureCount or\n   ToleratedFailurePercentage for fault-tolerant workloads.** Both\n   default to 0, meaning a SINGLE batch failure fails the ENTIRE Map\n   state. Set at least one tolerance threshold.\n\n6. **NEVER assume the ItemProcessor receives a single item when\n   ItemBatchSize > 1.** The sub-workflow receives a BATCH (array of\n   items). The Lambda or Task must handle an array input, not a single\n   object.\n\n7. **NEVER mix ItemBatchSize and ItemBatcher.** They are mutually\n   exclusive. Use ItemBatchSize for simple fixed-size batches; use\n   ItemBatcher for advanced control.\n\n8. **NEVER forget the S3 IAM permission for Distributed Map with S3\n   input.** The state machine role needs `s3:GetObject` on the target\n   bucket\u002Fkey. Without it, the Map state fails at runtime.\n\n9. **NEVER use Parallel state for array iteration.** Parallel state\n   runs DIFFERENT branches concurrently; it does NOT iterate over an\n   array. Use Map state for iteration.\n\n10. **NEVER ignore child execution quota.** Each Distributed Map child\n    execution counts against the account's concurrent execution quota\n    (default 100000). Large batches with high MaxConcurrency can exhaust\n    this quota and cause throttling.\n\n## Output format\n\n```text\nMAP_STATE: \u003Cstate-name> (\u003Cmap-type: INLINE|DISTRIBUTED>)\nVERDICT: READY_TO_DEPLOY | PREREQUISITES_MISSING\nCHECKLIST:\n  [✓|✗] Map type: Inline | Distributed\n  [✓|✗] ItemProcessor: defined (Mode: \u003CINLINE|DISTRIBUTED>)\n  [✓|✗] ItemsPath: \u003Cjsonpath> (input array)\n  [✓|✗] MaxConcurrency: \u003Cvalue> (0 = unlimited, Inline max 40, Distributed max 1000)\n  [✓|✗] MaxItems: \u003Cvalue|N\u002FA> (Distributed only)\n  [✓|✗] ItemBatchSize \u002F ItemBatcher: \u003Cvalue|N\u002FA> (Distributed only)\n  [✓|✗] ToleratedFailureCount\u002FPercentage: \u003Cvalue> (Distributed only)\n  [✓|✗] S3 input: \u003Cbucket\u002Fkey|N\u002FA> (Distributed only, format \u003CCSV|JSON|JSONL>)\n  [✓|✗] ResultSelector: \u003Cdefined|none>\n  [✓|✗] ResultPath: \u003Cjsonpath|null|none>\n  [✓|✗] Error handling: Retry\u002FCatch per iteration (\u003Cdefined>)\n  [✓|✗] IAM role: \u003Chas-s3-access|standard>\n  [✓|✗] Item count: \u003Ccount> (within \u003CInline 5000 | Distributed 10000> limit)\n  [✓|✗] Tags: \u003Ckey=value list>\nVERIFICATION_COMMANDS:\n  aws stepfunctions describe-state-machine --state-machine-arn \u003Carn>\n  aws stepfunctions describe-execution --execution-arn \u003Cexecution-arn>\n```\n\n### Worked example — Distributed Map with S3 CSV input\n\n```text\nMAP_STATE: ProcessRecords (DISTRIBUTED)\nVERDICT: READY_TO_DEPLOY\nCHECKLIST:\n  [✓] Map type: Distributed\n  [✓] ItemProcessor: defined (Mode: DISTRIBUTED, ExecutionType: STANDARD)\n  [✓] ItemsPath: N\u002FA (S3 input via ItemReader)\n  [✓] MaxConcurrency: 50\n  [✓] MaxItems: 10000\n  [✓] ItemBatchSize: 100 (100 items per child execution → 100 child executions max)\n  [✓] ToleratedFailurePercentage: 5 (allows up to 5% batch failures)\n  [✓] S3 input: s3:\u002F\u002Fmy-data-bucket\u002Fdatasets\u002Frecords.csv (CSV, FIRST_ROW headers)\n  [✓] ResultSelector: { \"processed.$\": \"$\" }\n  [✓] ResultPath: $.processing_result\n  [✓] Error handling: Retry (3 attempts, exponential backoff) + Catch → HandleError\n  [✓] IAM role: has s3:GetObject on my-data-bucket\n  [✓] Item count: 8500 rows (within Distributed 10000 limit)\n  [✓] Tags: Environment=production, Workflow=data-pipeline\nVERIFICATION_COMMANDS:\n  aws stepfunctions describe-state-machine --state-machine-arn arn:aws:states:us-east-1:123456789012:stateMachine:DataPipeline\n  aws stepfunctions describe-execution --execution-arn \u003Cexecution-arn>\n```\n\n## Error handling\n\n> Full detail moved verbatim to [references\u002Ferror-handling.md](references\u002Ferror-handling.md) - load on demand.\n> Summary: the six runtime failure-mode triage subsections.\n\n## References (load on demand)\n\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) - Map misconceptions, ItemProcessor\u002Fbatching expert heuristics, cost deep dive, recent features\n- [references\u002Ferror-handling.md](references\u002Ferror-handling.md) - per-iteration Retry\u002FCatch template and runtime error triage\n- [references\u002Fmap-configuration-and-batching.md](references\u002Fmap-configuration-and-batching.md) - (existing) config + batching detail; now also holds Step 3\u002F4\u002F7 templates\n- [references\u002Fdistributed-map-and-s3.md](references\u002Fdistributed-map-and-s3.md) - (existing) Distributed Map + S3 detail; now also holds the Step 5 ItemReader template\n\n## Domain\n\nAWS CloudOps \u002F AWS Step Functions Map State Configuration & Array\nIteration Processing.\n\n## AWS documentation\n\n- **Map State** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Famazon-states-language-map-state.html\n- **Distributed Map state** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Fconcepts-asl-use-map-state-distributed-mode.html\n- **Inline Map state** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Fconcepts-asl-use-map-state-inline-mode.html\n- **ItemProcessor** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Fconcepts-asl-use-map-state.html#amazon-states-language-item-processor\n- **ItemBatcher** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Fbatch-processing-item-batcher.html\n- **Distributed Map S3 input** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Fconcepts-asl-use-map-state-distributed-mode.html#dist-map-s3-input\n- **Parallel vs Map** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Famazon-states-language-parallel-state.html\n- **Step Functions quotas** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Flimits-overview.html\n- **Step Functions pricing** — https:\u002F\u002Faws.amazon.com\u002Fstep-functions\u002Fpricing\u002F\n",{"name":5,"license":15,"metadata":24,"description":7,"compatibility":41},{"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,"dependencies":37,"requires_llm":38,"verdict_shape":39,"lifecycle_status":40,"supports_pipeline":38},"aws, step-functions, map-state, distributed-map, cloudops, deploy, app-integration, batch-processing, s3-input, itemprocessor","1","Jacky Chan — AWS Community Builder","aws-cloudops","AppIntegration","0.1.0","aws, step functions, map state, inline map, distributed map, itemprocessor, itembatchsize, maxconcurrency, cloudops, deploy, batch processing, s3 input, fan-out, child execution","deploy","high","false","capability","Invoke when the user wants to configure a Step Functions Map state for array iteration (Inline or Distributed), process items in batches, scale beyond 5000 items with Distributed Map, read large datasets from S3 (CSV\u002FJSON\u002FJSONL), configure MaxConcurrency or ItemBatchSize, set up per-iteration error handling (Retry\u002FCatch), or choose between Inline Map, Distributed Map, and Parallel state. Do NOT invoke for Step Functions Express Workflow cost analysis (use stepfunctions-express- deployer), general state machine creation (use stepfunctions- statemachine-deployer), or execution troubleshooting (use stepfunctions-execution-troubleshooter).","aws-orchestrator","true","READY_TO_DEPLOY | PREREQUISITES_MISSING","active","Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). For live deployment: AWS CLI v2 with stepfunctions access. Works with Terraform aws_sfn_state_machine resources and CloudFormation AWS::StepFunctions::StateMachine templates.","main","eeace51bd5dd1db2030729d83eeab988861553aa","skills\u002Fstepfunctions-map-state-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":51,"prompt":61,"zipAvailable":62},[52,55,58],{"tool":53,"command":54},"npx","npx skills add jhkchan\u002Faws-agent-skills --skill stepfunctions-map-state-deployer",{"tool":56,"command":57},"bunx","bunx skills add jhkchan\u002Faws-agent-skills --skill stepfunctions-map-state-deployer",{"tool":59,"command":60},"pnpm","pnpm dlx skills add jhkchan\u002Faws-agent-skills --skill stepfunctions-map-state-deployer","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-map-state-deployer\u002FSKILL.md",true,[64,70,74,78,82,86,90,94,98,102,106,110,114,118,122,126,130,134,138],{"path":65,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":68,"sourceHtmlUrl":69},"eval\u002Ftest-cases.yaml","REFERENCE","参考文档",5799,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-map-state-deployer\u002Feval\u002Ftest-cases.yaml",{"path":71,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":72,"sourceHtmlUrl":73},"evals\u002Fbaselines\u002Fdistributed-map-10k-items.md",878,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-map-state-deployer\u002Fevals\u002Fbaselines\u002Fdistributed-map-10k-items.md",{"path":75,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":76,"sourceHtmlUrl":77},"evals\u002Fbaselines\u002Fdistributed-map-s3-csv.md",947,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-map-state-deployer\u002Fevals\u002Fbaselines\u002Fdistributed-map-s3-csv.md",{"path":79,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":80,"sourceHtmlUrl":81},"evals\u002Fbaselines\u002Finline-map-batch-processing.md",736,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-map-state-deployer\u002Fevals\u002Fbaselines\u002Finline-map-batch-processing.md",{"path":83,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":84,"sourceHtmlUrl":85},"evals\u002Fbaselines\u002Fmax-concurrency-tuning.md",897,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-map-state-deployer\u002Fevals\u002Fbaselines\u002Fmax-concurrency-tuning.md",{"path":87,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":88,"sourceHtmlUrl":89},"evals\u002Fbaselines\u002Fmissing-tolerated-failures.md",792,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-map-state-deployer\u002Fevals\u002Fbaselines\u002Fmissing-tolerated-failures.md",{"path":91,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":92,"sourceHtmlUrl":93},"evals\u002Feval_config.yaml",1801,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-map-state-deployer\u002Fevals\u002Feval_config.yaml",{"path":95,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":96,"sourceHtmlUrl":97},"evals\u002Fevals.json",9230,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-map-state-deployer\u002Fevals\u002Fevals.json",{"path":99,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":100,"sourceHtmlUrl":101},"evals\u002Fprompts\u002Fdistributed-map-10k-items.md",512,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-map-state-deployer\u002Fevals\u002Fprompts\u002Fdistributed-map-10k-items.md",{"path":103,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":104,"sourceHtmlUrl":105},"evals\u002Fprompts\u002Fdistributed-map-s3-csv.md",636,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-map-state-deployer\u002Fevals\u002Fprompts\u002Fdistributed-map-s3-csv.md",{"path":107,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":108,"sourceHtmlUrl":109},"evals\u002Fprompts\u002Finline-map-batch-processing.md",496,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-map-state-deployer\u002Fevals\u002Fprompts\u002Finline-map-batch-processing.md",{"path":111,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":112,"sourceHtmlUrl":113},"evals\u002Fprompts\u002Fmax-concurrency-tuning.md",578,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-map-state-deployer\u002Fevals\u002Fprompts\u002Fmax-concurrency-tuning.md",{"path":115,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":116,"sourceHtmlUrl":117},"evals\u002Fprompts\u002Fmissing-tolerated-failures.md",522,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-map-state-deployer\u002Fevals\u002Fprompts\u002Fmissing-tolerated-failures.md",{"path":119,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":120,"sourceHtmlUrl":121},"examples\u002FREADME.md",6737,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-map-state-deployer\u002Fexamples\u002FREADME.md",{"path":123,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":124,"sourceHtmlUrl":125},"references\u002Fadvanced-patterns.md",6417,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-map-state-deployer\u002Freferences\u002Fadvanced-patterns.md",{"path":127,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":128,"sourceHtmlUrl":129},"references\u002Fdistributed-map-and-s3.md",9886,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-map-state-deployer\u002Freferences\u002Fdistributed-map-and-s3.md",{"path":131,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":132,"sourceHtmlUrl":133},"references\u002Ferror-handling.md",2340,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-map-state-deployer\u002Freferences\u002Ferror-handling.md",{"path":135,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":136,"sourceHtmlUrl":137},"references\u002Fmap-configuration-and-batching.md",10832,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-map-state-deployer\u002Freferences\u002Fmap-configuration-and-batching.md",{"path":139,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":140,"sourceHtmlUrl":141},"skill.usf.yaml",4639,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-map-state-deployer\u002Fskill.usf.yaml",[143,150,157,164,171,178],{"skillNo":144,"name":145,"nameZh":6,"description":146,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":147,"categories":148,"keywords":149,"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":151,"name":152,"nameZh":6,"description":153,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":154,"categories":155,"keywords":156,"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":158,"name":159,"nameZh":6,"description":160,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":161,"categories":162,"keywords":163,"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":165,"name":166,"nameZh":6,"description":167,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":168,"categories":169,"keywords":170,"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":172,"name":173,"nameZh":6,"description":174,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":175,"categories":176,"keywords":177,"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":179,"name":180,"nameZh":6,"description":181,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":182,"categories":183,"keywords":184,"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",[],[]]