serverless icon indicating copy to clipboard operation
serverless copied to clipboard

Python function samples are actually JavaScript

Open mrichman opened this issue 3 years ago • 1 comments

See here https://github.com/cdk-patterns/serverless/tree/main/the-saga-stepfunction/python/lambda_fns/

Are there any actual Python samples?

mrichman avatar Apr 26 '21 15:04 mrichman

Hi,

All of the Lambda fn code starts out as TS/JS when the patterns launch and the plan is to slow migrate it to Python (and the other langs) through community contribution or as I have capacity. All the CDK code is in the language described but to launch all the languages at the same time with the lambda fns matching cdk language would make it a much larger maintenance overhead at launch and cause potential differences, plus you can use ts/js lambda fns with any lang of cdk. There are however already examples in there like https://github.com/cdk-patterns/serverless/blob/main/the-predictive-lambda/python/the_predictive_lambda/the_predictive_lambda_stack.py that use Python for the lambda fn

nideveloper avatar Apr 26 '21 15:04 nideveloper