-
Notifications
You must be signed in to change notification settings - Fork 220
Closed
Description
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.
const functionName = state.Parameters.FunctionName; |
You get the following exception when performing an sls deploy:
TypeError: Cannot read properties of undefined (reading 'FunctionName')
This is the definition used
Comment: Validate
StartAt: input validation
QueryLanguage: JSONata
States:
input validation:
Type: Task
Resource: arn:aws:states:::lambda:invoke
Output: '{% $states.result.Payload %}'
Assign:
command: '{% $merge([$states.input.params.path, $states.input.body]) %}'
meta: '{% $states.input %}'
Arguments:
FunctionName:
'Fn::GetAtt':
- ValidatorLambda
- Arn
Payload:
rule: ${file(src/model-config/schemas/update.yml)}
payload: '{% $merge([$states.input.params.path, $states.input.body]) %}'
Retry:
- ErrorEquals:
- States.ALL
IntervalSeconds: 1
MaxAttempts: 2
BackoffRate: 1
JitterStrategy: FULL
End: true
Additional data
- Serverless Framework Core Version you're using: ^3
- The Plugin Version you're using: ^3.21.1
- Operating System: Linux
hle-iad, PatrykMilewski, travisdahlke, shentonfreude, pongz79 and 2 more
Metadata
Metadata
Assignees
Labels
No labels