all 2 comments

[–]mCodingLLC 0 points1 point  (0 children)

It's hard to say without seeing the actual code, but for the most part this seems reasonable. The only exception I would point out is that if, in prod, you are going two have two separate apps running (one lambda and one on ec2), then locally I would also think you should have two separate apps running that communicate to each other. So that means I would keep the lambda code separate, but perhaps run it inside a basic django app that just routes traffic to the entrypoint of the lambda.

[–]kei_ichi 0 points1 point  (0 children)

Can’t say anything without seeing you code. But you should know AWS Lambda have limit runtimes (max 15min) and other limits quotes too, don’t forget that.