Schema / Envelope for use with Step Functions #2864
Answered
by
dreamorosi
jsvandeven-ws
asked this question in
Q&A
-
Looking at the built in schemas for the parser, I don't see one for use with step functions. Are any of the available parsers suitable for use with step function invocation of lambdas? |
Beta Was this translation helpful? Give feedback.
Answered by
dreamorosi
Jul 31, 2024
Replies: 1 comment 3 replies
-
Hi @jsvandeven-ws, could you share an example of a payload you're referring to, and a link to its documentation? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for the example.
I think there might be some confusion with the scope/purpose of our Parser utility.
In its current form, the utility is meant to be used to parse and validate payloads received by a Lambda function. For example, when you configure a service to call your function, the service usually passes an object (aka the payload) to the function as first parameter (
event
).In the case of StepFunctions, you can create a task that calls your Lambda function, and you can configure what gets passed to the function using the
Payload
parameter.To give you an example, I have created a very simple workflow that calls a Lambda function (this uses CDK but the same applies to SAM):