Step Functions
Parity grade: A · SDK aws-sdk-go-v2/service/sfn@v1.51.4 · last audited 2026-10-09 (88924fa3b)
Category: Messaging & Integration · View PARITY.md on GitHub · All Services
In-memory Step Functions that runs Amazon States Language (ASL) definitions, with JSONPath and JSONata, Parallel and Map (including distributed Map) states, activities, versions and aliases.
Quick start
bash
export AWS_ENDPOINT_URL=http://localhost:8000
aws stepfunctions create-state-machine --name my-workflow \
--role-arn arn:aws:iam::000000000000:role/sfn-role \
--definition '{"StartAt":"Hello","States":{"Hello":{"Type":"Pass","End":true}}}'
EXEC_ARN=$(aws stepfunctions start-execution \
--state-machine-arn arn:aws:states:us-east-1:000000000000:stateMachine:my-workflow \
--input '{"key":"value"}' --query executionArn --output text)
aws stepfunctions describe-execution --execution-arn "$EXEC_ARN"
aws stepfunctions get-execution-history --execution-arn "$EXEC_ARN"Supported operations
| Area | Operations |
|---|---|
| State machines | CreateStateMachine, DescribeStateMachine, ListStateMachines, UpdateStateMachine, DeleteStateMachine, ValidateStateMachineDefinition, TestState |
| Versions and aliases | PublishStateMachineVersion, ListStateMachineVersions, DeleteStateMachineVersion, CreateStateMachineAlias, DescribeStateMachineAlias, ListStateMachineAliases, UpdateStateMachineAlias, DeleteStateMachineAlias |
| Executions | StartExecution, StartSyncExecution (Express only), StopExecution, DescribeExecution, DescribeStateMachineForExecution, ListExecutions, GetExecutionHistory, RedriveExecution |
| Map runs | DescribeMapRun, ListMapRuns, UpdateMapRun |
| Activities and callbacks | CreateActivity, DescribeActivity, ListActivities, DeleteActivity, GetActivityTask, SendTaskSuccess, SendTaskFailure, SendTaskHeartbeat |
| Tags | TagResource, UntagResource, ListTagsForResource |
ASL features:
- State types: Pass, Task, Choice, Wait, Succeed, Fail, Parallel, Map.
RetryandCatch, path processing (InputPath,OutputPath,ResultPath,Parameters,ResultSelector), intrinsic functions, JSONata expressions.- Task integrations: optimized integrations such as Lambda, SQS, SNS, DynamoDB, ECS, Glue, Athena, API Gateway and EventBridge, plus
aws-sdk:<service>:<action>. The.syncand.waitForTaskTokenpatterns are supported.
Configuration
| Flag | Env | Default | Purpose |
|---|---|---|---|
--stepfunctions-execution-retention | SFN_EXECUTION_RETENTION | 24h | How long execution history is kept |
--stepfunctions-janitor-interval | SFN_JANITOR_INTERVAL | 1m | Janitor tick |
--stepfunctions-task-token-ttl | SFN_TASK_TOKEN_TTL | 1h | Lifetime of an unreceived task token |
--stepfunctions-jsonata-map-object-items | SFN_JSONATA_MAP_OBJECT_ITEMS | true | Accept an object as a JSONata Map Items value (AWS documents arrays only) |
Differences from AWS
NOTE
Integrations outside the built-in table are not implemented: Bedrock optimized integrations other than invokeModel, and aws-sdk integrations for services outside the built-in service table.
ExecutionThrottledis never emitted: there is no account-levelStartExecutionthrottling.- Under
--enforce-iam, some service-initiated calls are not checked against a customer role: Firehose delivery roles, CloudWatch Logs subscription-filter roles, IoT rule action roles, SNSSubscriptionRoleArn, Step Functions activity paths and Scheduler DLQ sends.
Parity & Coverage
| Metric | Value |
|---|---|
| PARITY entries audited | 37 (37 ok) |
| Feature families | 10 (10 ok) |
| Known gaps | 2 |
| Structural gaps (can't be emulated) | 1 |
| Deferred items | 0 |
| Resource leaks | clean |
Known Gaps
- Service integrations not implemented (bd gopherstack-wdw): bedrock optimized integrations other than invokeModel (createModelCustomizationJob.sync etc.) and aws-sdk integrations for services outside the 55-service table in sdk_services.go.
- Service-initiated calls not yet authorized against a customer role under --enforce-iam: Firehose delivery role (S3/Redshift/HTTP destinations), CloudWatch Logs subscription-filter RoleArn (Kinesis/Firehose destinations), IoT rule action roleArn, SNS SubscriptionRoleArn Firehose subscriptions, Step Functions activity paths, Scheduler DLQ sqs:SendMessage under the schedule role, and EventBridge Lambda/SQS/SNS targets (target resource-policy evaluation, out of scope).
Structural Gaps
These do not block an A grade — no implementation could produce real data here because the underlying data source cannot exist in an emulator.
- ExecutionThrottled is never emitted: the emulator applies no account-level StartExecution throttling.
Audited Operations
37 audited operations
| Operation | Wire | Errors | State | Persist |
|---|---|---|---|---|
CreateStateMachine | fixed | ok | ok | ok |
UpdateStateMachine | fixed | ok | ok | ok |
DeleteStateMachine | ok | fixed | ok | ok |
DescribeStateMachine | fixed | ok | ok | ok |
ListStateMachines | fixed | ok | ok | ok |
DescribeStateMachineForExecution | ok | ok | ok | ok |
PublishStateMachineVersion | ok | ok | ok | ok |
DeleteStateMachineVersion | ok | fixed | ok | ok |
ListStateMachineVersions | fixed | fixed | ok | ok |
CreateStateMachineAlias | ok | fixed | ok | ok |
UpdateStateMachineAlias | ok | fixed | ok | ok |
DeleteStateMachineAlias | ok | fixed | ok | ok |
DescribeStateMachineAlias | ok | fixed | ok | ok |
ListStateMachineAliases | fixed | ok | ok | ok |
TagResource | fixed | fixed | ok | ok |
UntagResource | ok | ok | ok | ok |
ListTagsForResource | ok | ok | ok | ok |
ValidateStateMachineDefinition | fixed | ok | ok | n/a |
StartExecution | fixed | ok | ok | ok |
StartSyncExecution | fixed | ok | ok | ok |
StopExecution | fixed | ok | ok | fixed |
RedriveExecution | ok | ok | ok | ok |
DescribeExecution | fixed | ok | ok | ok |
ListExecutions | fixed | fixed | ok | ok |
GetExecutionHistory | fixed | ok | ok | ok |
CreateActivity | fixed | ok | ok | ok |
DeleteActivity | fixed | fixed | ok | ok |
DescribeActivity | fixed | ok | ok | ok |
ListActivities | fixed | ok | ok | ok |
GetActivityTask | ok | ok | ok | ok |
SendTaskSuccess | ok | ok | ok | ok |
SendTaskFailure | ok | ok | ok | ok |
SendTaskHeartbeat | ok | ok | ok | ok |
DescribeMapRun | fixed | fixed | ok | ok |
ListMapRuns | fixed | fixed | ok | ok |
UpdateMapRun | ok | fixed | ok | ok |
TestState | ok | ok | ok | n/a |
Audited Feature Families
| Feature Family | Status |
|---|---|
asl_task | fixed |
asl_choice | ok |
asl_map | fixed |
asl_parallel | ok |
asl_wait | ok |
asl_pass_succeed_fail | ok |
asl_intrinsics | ok |
json_1_0_protocol | ok |
timestamps | ok |
filter_semantics | ok |
