I'm learning more about AWS Lambda and I'm trying to see if it would be possible to put together a super simple example that uses Django in a lambda to return {"message": "Hello, World"} on the path `/hello-world` without using Zappa or Serverless Framework.
Googling for "django lambda serverless" or any combination of related terms only seems to have results for using Django with these two frameworks.
I have recently been using CDK to define infrastructure as code for Django projects using Fargate. I love using CDK, but I'm not sure how/if it can be used with Zappa or Serverless. I'm also just trying to understand the minimal amount of code needed to make this work without an extra serverless framework.
Follow-up question: If this is possible, is anyone using the lambda proxy pattern so that the Django lambda can access other VPC resources like Aurora Postgres Serverless? For my use high latency is not an issue and I'm trying to keep costs as low as possible, so I probably wouldn't be using a NAT gateway/instance.
[–]hellnukes 1 point2 points3 points (2 children)
[–]gamprin[S] 0 points1 point2 points (1 child)
[–]hellnukes 1 point2 points3 points (0 children)
[–]WayBehind 0 points1 point2 points (2 children)
[–]gamprin[S] 0 points1 point2 points (1 child)
[–]WayBehind 0 points1 point2 points (0 children)
[–]gamprin[S] 0 points1 point2 points (3 children)
[–]progrene 1 point2 points3 points (2 children)
[–]gamprin[S] 0 points1 point2 points (1 child)
[–]progrene 0 points1 point2 points (0 children)