-
Notifications
You must be signed in to change notification settings - Fork 215
State machine definition does not support JSONata #637
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
|
@villagoizi I have implemented JSONata support in PR #636 It looks like it wasn't released yet, but you can use my preview branch: https://pkg.pr.new/zirkelc/serverless-step-functions@d2555b7 @horike37 when will you release a new version? |
Hi everyone! I created a PR adding support for Lambda: #645 |
Hmm I use JSONata in step functions without issues so far, am I using it wrong? StartAt: CloneStuff
QueryLanguage: "JSONata"
States:
CloneStuff:
Type: Task
Resource:
Fn::GetAtt: [ function, Arn ]
Assign:
fromNodeId: "{% $states.input.projectId %}"
toNodeId: "{% $states.result.nodeId %}"
author: "{% $states.input.author %}"
Next: CopySomeTypes
CopySomeTypes:
Type: Task
Resource: resourceArn
Arguments:
author: "{% $author %}"
fromNodeId: "{% $fromNodeId %}"
toNodeId: "{% $toNodeId %}"
Output:
output:
someType: "{% $states.result.body %}"
End: true |
@gson88 |
Does not support JSONata
Description
In this line of code it expects a state.Parameters but when you use JSONata everything changes from Parameters to Arguments.
serverless-step-functions/lib/deploy/stepFunctions/compileIamRole.js
Line 329 in 313355a
You get the following exception when performing an sls deploy:
TypeError: Cannot read properties of undefined (reading 'FunctionName')
This is the definition used
Additional data
The text was updated successfully, but these errors were encountered: