I want to know how to invoke functions defined in packages/functions
in my NextJS application inside packages/web
. Example:
new Function(stack, 'my-function', {
handler: 'packages/functions/index.handler',
});
lambda.invoke({
FunctionName: 'my-function',
InvocationType: 'Event',
...
});
For now, I do not want to use SQS, Events or API. The AWS Lamba offers a feature that is possible to invoke a function asynchronously just passing InvocationType: 'Event'
.
How can I do that in SST framework?