[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6F68DBE0G88C3MQXG836BAF":3,"skill-same:01M6F68DBE0G88C3MQXG836BAF":69},{"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":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":46,"commitSha":47,"skillDirectory":48,"forksCount":49,"repositoryHtmlUrl":50,"repositoryHomepageUrl":51,"ownerHtmlUrl":52,"ownerBlogUrl":6,"ownerDescription":53,"updatedAt":54,"install":55,"resources":68},"01M6F68DBE0G88C3MQXG836BAF","step-functions",null,"AWS Step Functions workflow orchestration with state machines. Use when designing workflows, implementing error handling, configuring parallel execution, integrating with AWS services, or debugging executions.","ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fitsmostafa\u002Faws-agent-skills\u002Fstep-functions\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"step functions","functions","parallel","amazon","with","error","state machines","aws step functions","parallel execution","use","orchestration","execution","services","https","workflow orchestration","state","error handling","debugging","workflows","workflow","2026-11-10 10:12:30",false,"---\nname: step-functions\ndescription: AWS Step Functions workflow orchestration with state machines. Use when designing workflows, implementing error handling, configuring parallel execution, integrating with AWS services, or debugging executions.\nlast_updated: \"2026-01-07\"\ndoc_source: https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002F\n---\n\n# AWS Step Functions\n\nAWS Step Functions is a serverless orchestration service that lets you build and run workflows using state machines. Coordinate multiple AWS services into business-critical applications.\n\n## Table of Contents\n\n- [Core Concepts](#core-concepts)\n- [Common Patterns](#common-patterns)\n- [CLI Reference](#cli-reference)\n- [Best Practices](#best-practices)\n- [Troubleshooting](#troubleshooting)\n- [References](#references)\n\n## Core Concepts\n\n### Workflow Types\n\n| Type | Description | Pricing |\n|------|-------------|---------|\n| **Standard** | Long-running, durable, exactly-once | Per state transition |\n| **Express** | High-volume, short-duration | Per execution (time + memory) |\n\n### State Types\n\n| State | Description |\n|-------|-------------|\n| **Task** | Execute work (Lambda, API call) |\n| **Choice** | Conditional branching |\n| **Parallel** | Execute branches concurrently |\n| **Map** | Iterate over array |\n| **Wait** | Delay execution |\n| **Pass** | Pass input to output |\n| **Succeed** | End successfully |\n| **Fail** | End with failure |\n\n### Amazon States Language (ASL)\n\nJSON-based language for defining state machines.\n\n## Common Patterns\n\n### Simple Lambda Workflow\n\n```json\n{\n  \"Comment\": \"Process order workflow\",\n  \"StartAt\": \"ValidateOrder\",\n  \"States\": {\n    \"ValidateOrder\": {\n      \"Type\": \"Task\",\n      \"Resource\": \"arn:aws:lambda:us-east-1:123456789012:function:ValidateOrder\",\n      \"Next\": \"ProcessPayment\"\n    },\n    \"ProcessPayment\": {\n      \"Type\": \"Task\",\n      \"Resource\": \"arn:aws:lambda:us-east-1:123456789012:function:ProcessPayment\",\n      \"Next\": \"FulfillOrder\"\n    },\n    \"FulfillOrder\": {\n      \"Type\": \"Task\",\n      \"Resource\": \"arn:aws:lambda:us-east-1:123456789012:function:FulfillOrder\",\n      \"End\": true\n    }\n  }\n}\n```\n\n### Create State Machine\n\n**AWS CLI:**\n\n```bash\naws stepfunctions create-state-machine \\\n  --name OrderWorkflow \\\n  --definition file:\u002F\u002Fworkflow.json \\\n  --role-arn arn:aws:iam::123456789012:role\u002FStepFunctionsRole \\\n  --type STANDARD\n```\n\n**boto3:**\n\n```python\nimport boto3\nimport json\n\nsfn = boto3.client('stepfunctions')\n\ndefinition = {\n    \"Comment\": \"Order workflow\",\n    \"StartAt\": \"ProcessOrder\",\n    \"States\": {\n        \"ProcessOrder\": {\n            \"Type\": \"Task\",\n            \"Resource\": \"arn:aws:lambda:...\",\n            \"End\": True\n        }\n    }\n}\n\nresponse = sfn.create_state_machine(\n    name='OrderWorkflow',\n    definition=json.dumps(definition),\n    roleArn='arn:aws:iam::123456789012:role\u002FStepFunctionsRole',\n    type='STANDARD'\n)\n```\n\n### Start Execution\n\n```python\nimport boto3\nimport json\n\nsfn = boto3.client('stepfunctions')\n\nresponse = sfn.start_execution(\n    stateMachineArn='arn:aws:states:us-east-1:123456789012:stateMachine:OrderWorkflow',\n    name='order-12345',\n    input=json.dumps({\n        'order_id': '12345',\n        'customer_id': 'cust-789',\n        'items': [{'product_id': 'prod-1', 'quantity': 2}]\n    })\n)\n\nexecution_arn = response['executionArn']\n```\n\n### Choice State (Conditional Logic)\n\n```json\n{\n  \"StartAt\": \"CheckOrderValue\",\n  \"States\": {\n    \"CheckOrderValue\": {\n      \"Type\": \"Choice\",\n      \"Choices\": [\n        {\n          \"Variable\": \"$.total\",\n          \"NumericGreaterThan\": 1000,\n          \"Next\": \"HighValueOrder\"\n        },\n        {\n          \"Variable\": \"$.priority\",\n          \"StringEquals\": \"rush\",\n          \"Next\": \"RushOrder\"\n        }\n      ],\n      \"Default\": \"StandardOrder\"\n    },\n    \"HighValueOrder\": {\n      \"Type\": \"Task\",\n      \"Resource\": \"arn:aws:lambda:...:function:ProcessHighValue\",\n      \"End\": true\n    },\n    \"RushOrder\": {\n      \"Type\": \"Task\",\n      \"Resource\": \"arn:aws:lambda:...:function:ProcessRush\",\n      \"End\": true\n    },\n    \"StandardOrder\": {\n      \"Type\": \"Task\",\n      \"Resource\": \"arn:aws:lambda:...:function:ProcessStandard\",\n      \"End\": true\n    }\n  }\n}\n```\n\n### Parallel Execution\n\n```json\n{\n  \"StartAt\": \"ProcessInParallel\",\n  \"States\": {\n    \"ProcessInParallel\": {\n      \"Type\": \"Parallel\",\n      \"Branches\": [\n        {\n          \"StartAt\": \"UpdateInventory\",\n          \"States\": {\n            \"UpdateInventory\": {\n              \"Type\": \"Task\",\n              \"Resource\": \"arn:aws:lambda:...:function:UpdateInventory\",\n              \"End\": true\n            }\n          }\n        },\n        {\n          \"StartAt\": \"SendNotification\",\n          \"States\": {\n            \"SendNotification\": {\n              \"Type\": \"Task\",\n              \"Resource\": \"arn:aws:lambda:...:function:SendNotification\",\n              \"End\": true\n            }\n          }\n        },\n        {\n          \"StartAt\": \"UpdateAnalytics\",\n          \"States\": {\n            \"UpdateAnalytics\": {\n              \"Type\": \"Task\",\n              \"Resource\": \"arn:aws:lambda:...:function:UpdateAnalytics\",\n              \"End\": true\n            }\n          }\n        }\n      ],\n      \"Next\": \"Complete\"\n    },\n    \"Complete\": {\n      \"Type\": \"Succeed\"\n    }\n  }\n}\n```\n\n### Map State (Iteration)\n\n```json\n{\n  \"StartAt\": \"ProcessItems\",\n  \"States\": {\n    \"ProcessItems\": {\n      \"Type\": \"Map\",\n      \"ItemsPath\": \"$.items\",\n      \"MaxConcurrency\": 10,\n      \"Iterator\": {\n        \"StartAt\": \"ProcessItem\",\n        \"States\": {\n          \"ProcessItem\": {\n            \"Type\": \"Task\",\n            \"Resource\": \"arn:aws:lambda:...:function:ProcessItem\",\n            \"End\": true\n          }\n        }\n      },\n      \"ResultPath\": \"$.processedItems\",\n      \"End\": true\n    }\n  }\n}\n```\n\n### Error Handling\n\n```json\n{\n  \"StartAt\": \"ProcessWithRetry\",\n  \"States\": {\n    \"ProcessWithRetry\": {\n      \"Type\": \"Task\",\n      \"Resource\": \"arn:aws:lambda:...:function:Process\",\n      \"Retry\": [\n        {\n          \"ErrorEquals\": [\"Lambda.ServiceException\", \"Lambda.TooManyRequestsException\"],\n          \"IntervalSeconds\": 2,\n          \"MaxAttempts\": 6,\n          \"BackoffRate\": 2\n        },\n        {\n          \"ErrorEquals\": [\"States.Timeout\"],\n          \"IntervalSeconds\": 5,\n          \"MaxAttempts\": 3,\n          \"BackoffRate\": 1.5\n        }\n      ],\n      \"Catch\": [\n        {\n          \"ErrorEquals\": [\"CustomError\"],\n          \"ResultPath\": \"$.error\",\n          \"Next\": \"HandleCustomError\"\n        },\n        {\n          \"ErrorEquals\": [\"States.ALL\"],\n          \"ResultPath\": \"$.error\",\n          \"Next\": \"HandleAllErrors\"\n        }\n      ],\n      \"End\": true\n    },\n    \"HandleCustomError\": {\n      \"Type\": \"Task\",\n      \"Resource\": \"arn:aws:lambda:...:function:HandleCustom\",\n      \"End\": true\n    },\n    \"HandleAllErrors\": {\n      \"Type\": \"Fail\",\n      \"Error\": \"ProcessingFailed\",\n      \"Cause\": \"An error occurred during processing\"\n    }\n  }\n}\n```\n\n## CLI Reference\n\n### State Machine Management\n\n| Command | Description |\n|---------|-------------|\n| `aws stepfunctions create-state-machine` | Create state machine |\n| `aws stepfunctions update-state-machine` | Update definition |\n| `aws stepfunctions delete-state-machine` | Delete state machine |\n| `aws stepfunctions list-state-machines` | List state machines |\n| `aws stepfunctions describe-state-machine` | Get details |\n\n### Executions\n\n| Command | Description |\n|---------|-------------|\n| `aws stepfunctions start-execution` | Start execution |\n| `aws stepfunctions stop-execution` | Stop execution |\n| `aws stepfunctions describe-execution` | Get execution details |\n| `aws stepfunctions list-executions` | List executions |\n| `aws stepfunctions get-execution-history` | Get execution history |\n\n## Best Practices\n\n### Design\n\n- **Keep states focused** — one purpose per state\n- **Use meaningful state names**\n- **Implement comprehensive error handling**\n- **Use Parallel for independent tasks**\n- **Use Map for batch processing**\n\n### Performance\n\n- **Use Express workflows** for high-volume, short tasks\n- **Set appropriate timeouts**\n- **Limit Map concurrency** to avoid throttling\n- **Use SDK integrations** when possible (avoid Lambda wrapper)\n\n### Reliability\n\n- **Retry transient errors**\n- **Catch and handle specific errors**\n- **Use idempotent operations**\n- **Enable X-Ray tracing**\n\n### Cost Optimization\n\n- **Use Express for short workflows** (\u003C 5 minutes)\n- **Combine related operations** to reduce transitions\n- **Use Wait states** instead of Lambda delays\n\n## Troubleshooting\n\n### Execution Failed\n\n```bash\n# Get execution history\naws stepfunctions get-execution-history \\\n  --execution-arn arn:aws:states:us-east-1:123456789012:execution:MyWorkflow:exec-123 \\\n  --query 'events[?type==`TaskFailed` || type==`ExecutionFailed`]'\n```\n\n### Lambda Timeout\n\n**Causes:**\n- Lambda running too long\n- Task timeout too short\n\n**Fix:**\n\n```json\n{\n  \"Type\": \"Task\",\n  \"Resource\": \"arn:aws:lambda:...\",\n  \"TimeoutSeconds\": 300,\n  \"HeartbeatSeconds\": 60\n}\n```\n\n### State Stuck\n\n**Check:**\n- Task state waiting for callback\n- Wait state not yet elapsed\n- Activity worker not responding\n\n### Invalid State Machine\n\n```bash\n# Validate definition\naws stepfunctions validate-state-machine-definition \\\n  --definition file:\u002F\u002Fworkflow.json\n```\n\n## References\n\n- [Step Functions Developer Guide](https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002F)\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- [Amazon States Language](https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Fconcepts-amazon-states-language.html)\n\n","# AWS Step Functions\n\nAWS Step Functions is a serverless orchestration service that lets you build and run workflows using state machines. Coordinate multiple AWS services into business-critical applications.\n\n## Table of Contents\n\n- [Core Concepts](#core-concepts)\n- [Common Patterns](#common-patterns)\n- [CLI Reference](#cli-reference)\n- [Best Practices](#best-practices)\n- [Troubleshooting](#troubleshooting)\n- [References](#references)\n\n## Core Concepts\n\n### Workflow Types\n\n| Type | Description | Pricing |\n|------|-------------|---------|\n| **Standard** | Long-running, durable, exactly-once | Per state transition |\n| **Express** | High-volume, short-duration | Per execution (time + memory) |\n\n### State Types\n\n| State | Description |\n|-------|-------------|\n| **Task** | Execute work (Lambda, API call) |\n| **Choice** | Conditional branching |\n| **Parallel** | Execute branches concurrently |\n| **Map** | Iterate over array |\n| **Wait** | Delay execution |\n| **Pass** | Pass input to output |\n| **Succeed** | End successfully |\n| **Fail** | End with failure |\n\n### Amazon States Language (ASL)\n\nJSON-based language for defining state machines.\n\n## Common Patterns\n\n### Simple Lambda Workflow\n\n```json\n{\n  \"Comment\": \"Process order workflow\",\n  \"StartAt\": \"ValidateOrder\",\n  \"States\": {\n    \"ValidateOrder\": {\n      \"Type\": \"Task\",\n      \"Resource\": \"arn:aws:lambda:us-east-1:123456789012:function:ValidateOrder\",\n      \"Next\": \"ProcessPayment\"\n    },\n    \"ProcessPayment\": {\n      \"Type\": \"Task\",\n      \"Resource\": \"arn:aws:lambda:us-east-1:123456789012:function:ProcessPayment\",\n      \"Next\": \"FulfillOrder\"\n    },\n    \"FulfillOrder\": {\n      \"Type\": \"Task\",\n      \"Resource\": \"arn:aws:lambda:us-east-1:123456789012:function:FulfillOrder\",\n      \"End\": true\n    }\n  }\n}\n```\n\n### Create State Machine\n\n**AWS CLI:**\n\n```bash\naws stepfunctions create-state-machine \\\n  --name OrderWorkflow \\\n  --definition file:\u002F\u002Fworkflow.json \\\n  --role-arn arn:aws:iam::123456789012:role\u002FStepFunctionsRole \\\n  --type STANDARD\n```\n\n**boto3:**\n\n```python\nimport boto3\nimport json\n\nsfn = boto3.client('stepfunctions')\n\ndefinition = {\n    \"Comment\": \"Order workflow\",\n    \"StartAt\": \"ProcessOrder\",\n    \"States\": {\n        \"ProcessOrder\": {\n            \"Type\": \"Task\",\n            \"Resource\": \"arn:aws:lambda:...\",\n            \"End\": True\n        }\n    }\n}\n\nresponse = sfn.create_state_machine(\n    name='OrderWorkflow',\n    definition=json.dumps(definition),\n    roleArn='arn:aws:iam::123456789012:role\u002FStepFunctionsRole',\n    type='STANDARD'\n)\n```\n\n### Start Execution\n\n```python\nimport boto3\nimport json\n\nsfn = boto3.client('stepfunctions')\n\nresponse = sfn.start_execution(\n    stateMachineArn='arn:aws:states:us-east-1:123456789012:stateMachine:OrderWorkflow',\n    name='order-12345',\n    input=json.dumps({\n        'order_id': '12345',\n        'customer_id': 'cust-789',\n        'items': [{'product_id': 'prod-1', 'quantity': 2}]\n    })\n)\n\nexecution_arn = response['executionArn']\n```\n\n### Choice State (Conditional Logic)\n\n```json\n{\n  \"StartAt\": \"CheckOrderValue\",\n  \"States\": {\n    \"CheckOrderValue\": {\n      \"Type\": \"Choice\",\n      \"Choices\": [\n        {\n          \"Variable\": \"$.total\",\n          \"NumericGreaterThan\": 1000,\n          \"Next\": \"HighValueOrder\"\n        },\n        {\n          \"Variable\": \"$.priority\",\n          \"StringEquals\": \"rush\",\n          \"Next\": \"RushOrder\"\n        }\n      ],\n      \"Default\": \"StandardOrder\"\n    },\n    \"HighValueOrder\": {\n      \"Type\": \"Task\",\n      \"Resource\": \"arn:aws:lambda:...:function:ProcessHighValue\",\n      \"End\": true\n    },\n    \"RushOrder\": {\n      \"Type\": \"Task\",\n      \"Resource\": \"arn:aws:lambda:...:function:ProcessRush\",\n      \"End\": true\n    },\n    \"StandardOrder\": {\n      \"Type\": \"Task\",\n      \"Resource\": \"arn:aws:lambda:...:function:ProcessStandard\",\n      \"End\": true\n    }\n  }\n}\n```\n\n### Parallel Execution\n\n```json\n{\n  \"StartAt\": \"ProcessInParallel\",\n  \"States\": {\n    \"ProcessInParallel\": {\n      \"Type\": \"Parallel\",\n      \"Branches\": [\n        {\n          \"StartAt\": \"UpdateInventory\",\n          \"States\": {\n            \"UpdateInventory\": {\n              \"Type\": \"Task\",\n              \"Resource\": \"arn:aws:lambda:...:function:UpdateInventory\",\n              \"End\": true\n            }\n          }\n        },\n        {\n          \"StartAt\": \"SendNotification\",\n          \"States\": {\n            \"SendNotification\": {\n              \"Type\": \"Task\",\n              \"Resource\": \"arn:aws:lambda:...:function:SendNotification\",\n              \"End\": true\n            }\n          }\n        },\n        {\n          \"StartAt\": \"UpdateAnalytics\",\n          \"States\": {\n            \"UpdateAnalytics\": {\n              \"Type\": \"Task\",\n              \"Resource\": \"arn:aws:lambda:...:function:UpdateAnalytics\",\n              \"End\": true\n            }\n          }\n        }\n      ],\n      \"Next\": \"Complete\"\n    },\n    \"Complete\": {\n      \"Type\": \"Succeed\"\n    }\n  }\n}\n```\n\n### Map State (Iteration)\n\n```json\n{\n  \"StartAt\": \"ProcessItems\",\n  \"States\": {\n    \"ProcessItems\": {\n      \"Type\": \"Map\",\n      \"ItemsPath\": \"$.items\",\n      \"MaxConcurrency\": 10,\n      \"Iterator\": {\n        \"StartAt\": \"ProcessItem\",\n        \"States\": {\n          \"ProcessItem\": {\n            \"Type\": \"Task\",\n            \"Resource\": \"arn:aws:lambda:...:function:ProcessItem\",\n            \"End\": true\n          }\n        }\n      },\n      \"ResultPath\": \"$.processedItems\",\n      \"End\": true\n    }\n  }\n}\n```\n\n### Error Handling\n\n```json\n{\n  \"StartAt\": \"ProcessWithRetry\",\n  \"States\": {\n    \"ProcessWithRetry\": {\n      \"Type\": \"Task\",\n      \"Resource\": \"arn:aws:lambda:...:function:Process\",\n      \"Retry\": [\n        {\n          \"ErrorEquals\": [\"Lambda.ServiceException\", \"Lambda.TooManyRequestsException\"],\n          \"IntervalSeconds\": 2,\n          \"MaxAttempts\": 6,\n          \"BackoffRate\": 2\n        },\n        {\n          \"ErrorEquals\": [\"States.Timeout\"],\n          \"IntervalSeconds\": 5,\n          \"MaxAttempts\": 3,\n          \"BackoffRate\": 1.5\n        }\n      ],\n      \"Catch\": [\n        {\n          \"ErrorEquals\": [\"CustomError\"],\n          \"ResultPath\": \"$.error\",\n          \"Next\": \"HandleCustomError\"\n        },\n        {\n          \"ErrorEquals\": [\"States.ALL\"],\n          \"ResultPath\": \"$.error\",\n          \"Next\": \"HandleAllErrors\"\n        }\n      ],\n      \"End\": true\n    },\n    \"HandleCustomError\": {\n      \"Type\": \"Task\",\n      \"Resource\": \"arn:aws:lambda:...:function:HandleCustom\",\n      \"End\": true\n    },\n    \"HandleAllErrors\": {\n      \"Type\": \"Fail\",\n      \"Error\": \"ProcessingFailed\",\n      \"Cause\": \"An error occurred during processing\"\n    }\n  }\n}\n```\n\n## CLI Reference\n\n### State Machine Management\n\n| Command | Description |\n|---------|-------------|\n| `aws stepfunctions create-state-machine` | Create state machine |\n| `aws stepfunctions update-state-machine` | Update definition |\n| `aws stepfunctions delete-state-machine` | Delete state machine |\n| `aws stepfunctions list-state-machines` | List state machines |\n| `aws stepfunctions describe-state-machine` | Get details |\n\n### Executions\n\n| Command | Description |\n|---------|-------------|\n| `aws stepfunctions start-execution` | Start execution |\n| `aws stepfunctions stop-execution` | Stop execution |\n| `aws stepfunctions describe-execution` | Get execution details |\n| `aws stepfunctions list-executions` | List executions |\n| `aws stepfunctions get-execution-history` | Get execution history |\n\n## Best Practices\n\n### Design\n\n- **Keep states focused** — one purpose per state\n- **Use meaningful state names**\n- **Implement comprehensive error handling**\n- **Use Parallel for independent tasks**\n- **Use Map for batch processing**\n\n### Performance\n\n- **Use Express workflows** for high-volume, short tasks\n- **Set appropriate timeouts**\n- **Limit Map concurrency** to avoid throttling\n- **Use SDK integrations** when possible (avoid Lambda wrapper)\n\n### Reliability\n\n- **Retry transient errors**\n- **Catch and handle specific errors**\n- **Use idempotent operations**\n- **Enable X-Ray tracing**\n\n### Cost Optimization\n\n- **Use Express for short workflows** (\u003C 5 minutes)\n- **Combine related operations** to reduce transitions\n- **Use Wait states** instead of Lambda delays\n\n## Troubleshooting\n\n### Execution Failed\n\n```bash\n# Get execution history\naws stepfunctions get-execution-history \\\n  --execution-arn arn:aws:states:us-east-1:123456789012:execution:MyWorkflow:exec-123 \\\n  --query 'events[?type==`TaskFailed` || type==`ExecutionFailed`]'\n```\n\n### Lambda Timeout\n\n**Causes:**\n- Lambda running too long\n- Task timeout too short\n\n**Fix:**\n\n```json\n{\n  \"Type\": \"Task\",\n  \"Resource\": \"arn:aws:lambda:...\",\n  \"TimeoutSeconds\": 300,\n  \"HeartbeatSeconds\": 60\n}\n```\n\n### State Stuck\n\n**Check:**\n- Task state waiting for callback\n- Wait state not yet elapsed\n- Activity worker not responding\n\n### Invalid State Machine\n\n```bash\n# Validate definition\naws stepfunctions validate-state-machine-definition \\\n  --definition file:\u002F\u002Fworkflow.json\n```\n\n## References\n\n- [Step Functions Developer Guide](https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002F)\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- [Amazon States Language](https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Fconcepts-amazon-states-language.html)\n\n",{"name":5,"doc_source":44,"description":7,"last_updated":45},"https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002F","2026-01-07","main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Fitsmostafa\u002Faws-agent-skills\u002Fstep-functions",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":8,"skillName":5,"commands":56,"prompt":66,"zipAvailable":67},[57,60,63],{"tool":58,"command":59},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill step-functions",{"tool":61,"command":62},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill step-functions",{"tool":64,"command":65},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill step-functions","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fitsmostafa\u002Faws-agent-skills\u002Fstep-functions\u002FSKILL.md",true,[],[70,79,88,97,103,109],{"skillNo":71,"name":72,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":39},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[76,77,78],"model","model hierarchy","model hierarchy skill",{"skillNo":80,"name":81,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":39},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[85,86,87],"MCP","zoom","zoom mcp",{"skillNo":89,"name":90,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":39},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[94,95,96,86],"sdk","zoom apps sdk","apps",{"skillNo":98,"name":99,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":39},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[99],{"skillNo":104,"name":105,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":39},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[105],{"skillNo":110,"name":111,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":112,"categories":113,"keywords":114,"publishedAt":39},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[111]]