cdk-patterns / serverless

This is intended to be a repo containing all of the official AWS Serverless architecture patterns built with CDK for developers to use. All patterns come in Typescript and Python with the exported CloudFormation also included.
https://cdkpatterns.com
MIT License
2.29k stars 273 forks source link

Python function samples are actually JavaScript #192

Open mrichman opened 3 years ago

mrichman commented 3 years ago

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

Are there any actual Python samples?

nideveloper commented 3 years ago

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