Skip to content

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 ​

AreaOperations
State machinesCreateStateMachine, DescribeStateMachine, ListStateMachines, UpdateStateMachine, DeleteStateMachine, ValidateStateMachineDefinition, TestState
Versions and aliasesPublishStateMachineVersion, ListStateMachineVersions, DeleteStateMachineVersion, CreateStateMachineAlias, DescribeStateMachineAlias, ListStateMachineAliases, UpdateStateMachineAlias, DeleteStateMachineAlias
ExecutionsStartExecution, StartSyncExecution (Express only), StopExecution, DescribeExecution, DescribeStateMachineForExecution, ListExecutions, GetExecutionHistory, RedriveExecution
Map runsDescribeMapRun, ListMapRuns, UpdateMapRun
Activities and callbacksCreateActivity, DescribeActivity, ListActivities, DeleteActivity, GetActivityTask, SendTaskSuccess, SendTaskFailure, SendTaskHeartbeat
TagsTagResource, UntagResource, ListTagsForResource

ASL features:

  • State types: Pass, Task, Choice, Wait, Succeed, Fail, Parallel, Map.
  • Retry and Catch, 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 .sync and .waitForTaskToken patterns are supported.

Configuration ​

FlagEnvDefaultPurpose
--stepfunctions-execution-retentionSFN_EXECUTION_RETENTION24hHow long execution history is kept
--stepfunctions-janitor-intervalSFN_JANITOR_INTERVAL1mJanitor tick
--stepfunctions-task-token-ttlSFN_TASK_TOKEN_TTL1hLifetime of an unreceived task token
--stepfunctions-jsonata-map-object-itemsSFN_JSONATA_MAP_OBJECT_ITEMStrueAccept 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.

  • ExecutionThrottled is never emitted: there is no account-level StartExecution throttling.
  • 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, SNS SubscriptionRoleArn, Step Functions activity paths and Scheduler DLQ sends.

Parity & Coverage ​

MetricValue
PARITY entries audited37 (37 ok)
Feature families10 (10 ok)
Known gaps2
Structural gaps (can't be emulated)1
Deferred items0
Resource leaksclean

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
OperationWireErrorsStatePersist
CreateStateMachinefixedokokok
UpdateStateMachinefixedokokok
DeleteStateMachineokfixedokok
DescribeStateMachinefixedokokok
ListStateMachinesfixedokokok
DescribeStateMachineForExecutionokokokok
PublishStateMachineVersionokokokok
DeleteStateMachineVersionokfixedokok
ListStateMachineVersionsfixedfixedokok
CreateStateMachineAliasokfixedokok
UpdateStateMachineAliasokfixedokok
DeleteStateMachineAliasokfixedokok
DescribeStateMachineAliasokfixedokok
ListStateMachineAliasesfixedokokok
TagResourcefixedfixedokok
UntagResourceokokokok
ListTagsForResourceokokokok
ValidateStateMachineDefinitionfixedokokn/a
StartExecutionfixedokokok
StartSyncExecutionfixedokokok
StopExecutionfixedokokfixed
RedriveExecutionokokokok
DescribeExecutionfixedokokok
ListExecutionsfixedfixedokok
GetExecutionHistoryfixedokokok
CreateActivityfixedokokok
DeleteActivityfixedfixedokok
DescribeActivityfixedokokok
ListActivitiesfixedokokok
GetActivityTaskokokokok
SendTaskSuccessokokokok
SendTaskFailureokokokok
SendTaskHeartbeatokokokok
DescribeMapRunfixedfixedokok
ListMapRunsfixedfixedokok
UpdateMapRunokfixedokok
TestStateokokokn/a

Audited Feature Families ​

Feature FamilyStatus
asl_taskfixed
asl_choiceok
asl_mapfixed
asl_parallelok
asl_waitok
asl_pass_succeed_failok
asl_intrinsicsok
json_1_0_protocolok
timestampsok
filter_semanticsok

Released under the MIT License.