When trying to create a state machine where a state tries to access the context object.
Step Function Local is returning SCHEMA_VALIDATION_FAILED on the create-state-machine cli command.
Example Definition which causes the error
{
"StartAt": "Init",
"States": {
"Init": {
"Type": "Pass",
"ResultPath": "$.test",
"Parameters": {
"start.$": "$$.State.EnteredTime"
},
"Next": "Finished"
},
"Finished": {
"Type": "Succeed"
}
}
}
The response from the CLI create-state-machine call to Step Function Local
An error occurred (InvalidDefinition) when calling the CreateStateMachine operation: Invalid State Machine Definition: ''SCHEMA_VALIDATION_FAILED: The value for the field 'start.$' must be a valid JSONPath or a valid intrinsic function call at /States/Init/Parameters''
Is it expected that Step Function Local doesn't support the Context Object or is this an unexpected bug?
Thanks