Skip to content

Schema / Envelope for use with Step Functions #2864

Answered by dreamorosi
jsvandeven-ws asked this question in Q&A
Discussion options

You must be logged in to vote

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):

const fn

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@jsvandeven-ws
Comment options

@dreamorosi
Comment options

Answer selected by jsvandeven-ws
@jsvandeven-ws
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants