Step Function Definition File is Returning Invalid When Using Jsonata But Is Valid #18
bradykurtz
started this conversation in
Bugs
Replies: 1 comment
-
|
Hi @bradykurtz, I'm reaching out on behalf of the LocalStack Support Team. I noticed you have a paid subscription, which gives you dedicated support with us. Would you like me to open a ticket for you regarding this? You can also open a ticket yourself with any additional details by emailing us at: support@localstack.cloud. Please let me know and I will be happy to assist you! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a definition file that keeps throwing the below error when used against localstack. When validating against a AWS proper the file is valid.
Errror:
{ "severity": "ERROR", "code": "SCHEMA_VALIDATION_FAILED", "message": "ASLParserException ['line 767:14, at \"Arguments\", mismatched input \\'\"Arguments\"\\' expecting {\\'\"Resource\"\\', \\'\"Parameters\"\\'}', 'line 769:16" }Agruments is definitely valid in Jasonata.
I discovered this by running the below command:
When removing the endpoint-url the definition is valid
Which results in
{ "result": "OK", "diagnostics": [], "truncated": false }Example
{ "StartAt": "TestMap", "QueryLanguage": "JSONata", "States": { "TestMap": { "Type": "Map", "MaxConcurrency": 50, "ItemProcessor": { "ProcessorConfig": { "Mode": "DISTRIBUTED", "ExecutionType": "STANDARD" }, "StartAt": "SubMap", "States": { "SubMap": { "Type": "Task", "Resource": "arn:aws:states:::lambda:invoke", "End": true, "QueryLanguage": "JSONata", "Arguments": { "FunctionName": "SubMapFun", "Payload": "{% $states.input %}" } } } }, "ItemReader": { "Resource": "arn:aws:states:::s3:getObject", "ReaderConfig": { "InputType": "JSON" }, "Arguments": { "Bucket": "{% $states.input.Payload.s3Bucket %}", "Key": "{% $states.input.Payload.s3Key %}" } }, "ResultWriter": { "Resource": "arn:aws:states:::s3:putObject", "Arguments": { "Bucket": "{% $states.input.Payload.resultS3Bucket %}", "Prefix": "{% $states.input.Payload.resultS3Key %}" } }, "End": true, "QueryLanguage": "JSONata" } } }Beta Was this translation helpful? Give feedback.
All reactions