一键导入
awsclaw-stepfunc
Manage and run AWS Step Functions state machines, executions, and activities using the awsclaw VS Code extension StepFuncTool.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Manage and run AWS Step Functions state machines, executions, and activities using the awsclaw VS Code extension StepFuncTool.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Manage and inspect AWS API Gateway REST APIs, resources, methods, stages, authorizers, usage plans, and domain names using the awsclaw VS Code extension APIGatewayTool.
Manage and inspect AWS CloudFormation stacks, resources, changesets, types, drift detection, and stack sets using the awsclaw VS Code extension CloudFormationTool.
Query and manage CloudWatch log groups, streams, events, run Insights queries, inspect metric filters and subscriptions, and open the interactive log viewer using awsclaw. Find logs from Lambda, API Gateway, Glue, RDS, ECS, Step Functions, and other AWS services.
Manage Amazon DynamoDB tables and items using awsclaw. Create/delete/update tables, query and scan data, CRUD operations on items, manage TTL, backups, global tables, auto-scaling, and tags.
Manage and query AWS EC2 resources including launching/stopping/terminating instances, creating VPCs and subnets, managing security groups, volumes, snapshots, AMIs, and querying all EC2 resource types using awsclaw. Full lifecycle management.
Manage and inspect AWS EMR clusters, steps, instances, studios, notebook executions, release labels, security configurations, and managed scaling using awsclaw. Supports full lifecycle operations.
| name | awsclaw-stepfunc |
| description | Manage and run AWS Step Functions state machines, executions, and activities using the awsclaw VS Code extension StepFuncTool. |
Use the StepFuncTool language tool in VS Code to manage AWS Step Functions state machines, executions, activities, and lifecycle operations.
Tool name: StepFuncTool
{
"command": "<CommandName>",
"params": { ... }
}
| Command | Description |
|---|---|
| DescribeActivity | Describe an activity |
| DescribeExecution | Describe a specific execution |
| DescribeMapRun | Describe a Map Run |
| DescribeStateMachine | Describe a state machine |
| DescribeStateMachineAlias | Describe a state machine alias |
| DescribeStateMachineForExecution | Describe state machine associated with an execution |
| GetExecutionHistory | Get the step-by-step event history of an execution |
| ListActivities | List activities |
| ListExecutions | List executions for a state machine |
| ListMapRuns | List Map Runs for an execution |
| ListStateMachineAliases | List aliases for a state machine |
| ListStateMachines | List all state machines |
| ListStateMachineVersions | List versions of a state machine |
| StartExecution | Start a new execution of a state machine |
| UpdateStateMachine | Update a state machine definition, role, or configuration |
| ValidateStateMachineDefinition | Validate an Amazon States Language definition |
| CreateStateMachine | Create a new state machine |
| CreateActivity | Create an activity |
| CreateStateMachineAlias | Create a state machine alias |
| PublishStateMachineVersion | Publish a state machine version |
| TagResource | Tag a state machine or activity |
| UntagResource | Remove tags from a resource |
| DeleteStateMachine | Delete a state machine |
| DeleteActivity | Delete an activity |
| StopExecution | Stop a running execution |
| UpdateStateMachineAlias | Update a state machine alias |
| DeleteStateMachineAlias | Delete a state machine alias |
| DeleteStateMachineVersion | Delete a state machine version |
| Parameter | Type | Description |
|---|---|---|
| stateMachineArn | string | State machine ARN (Required by: DescribeStateMachine, StartExecution, UpdateStateMachine; Used by: ListExecutions) |
| executionArn | string | Execution ARN (Required by: DescribeExecution, GetExecutionHistory) |
| maxResults | number | Maximum items to return (Used by: ListExecutions, ListStateMachines, GetExecutionHistory) |
| nextToken | string | Pagination token (Used by: ListExecutions, ListStateMachines, GetExecutionHistory) |
| reverseOrder | boolean | Return events in reverse chronological order (Used by: GetExecutionHistory) |
| statusFilter | string | Filter executions by status. Enum: RUNNING, SUCCEEDED, FAILED, TIMED_OUT, ABORTED (Used by: ListExecutions) |
| name | string | Execution name (Used by: StartExecution) |
| input | string | JSON string input for execution (Used by: StartExecution) |
| traceHeader | string | X-Ray trace header (Used by: StartExecution) |
| definition | string | State machine definition in Amazon States Language (Used by: UpdateStateMachine) |
| roleArn | string | IAM role ARN for the state machine (Used by: UpdateStateMachine) |
| loggingConfiguration | object | Logging configuration object (Used by: UpdateStateMachine) |
| tracingConfiguration | object | Tracing configuration object (Used by: UpdateStateMachine) |
| publish | boolean | Set true to publish a new version (Used by: UpdateStateMachine) |
| versionDescription | string | Description for the published version (Used by: UpdateStateMachine) |
{ "command": "ListStateMachines", "params": { "maxResults": 20 } }
{ "command": "DescribeStateMachine", "params": { "stateMachineArn": "arn:aws:states:us-east-1:123456789012:stateMachine:MyWorkflow" } }
{ "command": "ListExecutions", "params": { "stateMachineArn": "arn:aws:states:us-east-1:123456789012:stateMachine:MyWorkflow", "statusFilter": "FAILED", "maxResults": 10 } }
{ "command": "StartExecution", "params": { "stateMachineArn": "arn:aws:states:us-east-1:123456789012:stateMachine:MyWorkflow", "input": "{\"orderId\": \"12345\", \"amount\": 99.99}" } }
{ "command": "GetExecutionHistory", "params": { "executionArn": "arn:aws:states:us-east-1:123456789012:execution:MyWorkflow:exec-id", "maxResults": 100, "reverseOrder": true } }
{ "command": "DescribeExecution", "params": { "executionArn": "arn:aws:states:us-east-1:123456789012:execution:MyWorkflow:exec-id" } }
{ "command": "UpdateStateMachine", "params": { "stateMachineArn": "arn:aws:states:us-east-1:123456789012:stateMachine:MyWorkflow", "definition": "{\"StartAt\": \"Step1\", \"States\": { \"Step1\": { \"Type\": \"Pass\", \"End\": true }}}" } }
{ "command": "ValidateStateMachineDefinition", "params": {} }
{ "command": "CreateStateMachine", "params": { "name": "MyWorkflow", "definition": "{\"StartAt\":\"Step1\",\"States\":{\"Step1\":{\"Type\":\"Pass\",\"End\":true}}}", "roleArn": "arn:aws:iam::123456789012:role/StepFuncRole" } }
{ "command": "StopExecution", "params": { "executionArn": "arn:aws:states:...:execution:MyWorkflow:exec-id", "cause": "manual stop" } }
Step Functions orchestrates workflows across many AWS services:
| Relationship | Tool |
|---|---|
| Invokes Lambda functions | LambdaTool |
| Sends messages to SQS | SQSTool |
| Publishes to SNS topics | SNSTool |
| Reads/writes DynamoDB tables | DynamoDBTool |
| Starts Glue jobs | GlueTool |
| Starts EMR steps | EMRTool |
| Calls API Gateway endpoints | APIGatewayTool |
| Execution logs in CloudWatch | CloudWatchLogTool |
| IAM roles for execution | IAMTool |
| Deployed via CloudFormation | CloudFormationTool |
Step Functions log groups typically follow:
/aws/vendedlogs/states/<state-machine-name>-Logs
Use CloudWatchLogTool → DescribeLogGroups with logGroupNamePrefix: "/aws/vendedlogs/states/" to find them.
ListStateMachines → DescribeStateMachine to explore definition and configuration.ListExecutions with statusFilter: "FAILED" to find failed runs, then GetExecutionHistory to debug step-by-step.StartExecution requires stateMachineArn and accepts a JSON input string.definition in UpdateStateMachine must be valid Amazon States Language JSON.reverseOrder: true in GetExecutionHistory to see the most recent events first.