How use django ORM with Serverless Application Model using AWS ToolKit - django

I am using AWS Toolkit to create a Serverless Application using SAM. It contains API Gateway over AWS Lambda. I want the Lambda function to be able to access data in Postgres database. In pass I have done this using Django REST Framework. But I don't want the overhead of using the entire DRF as API Gateway is taking care of the need of the REST layer.
Our team is pretty well versed with Django ORM and we want to leverage on that knowledge base.
Trying to combine AWS Serverless plus Django leads all the google searches to Zappa, but that's not an option for us (let's leave it to that :) ). We want to use the AWS Toolkit + SAM way.
Any help would be greatly appreciated.

Related

Google Cloud Platform API Gateway in serverless Framework?

I'm currently looking for a example of implementing API gateway for GCP using the serverless framework, similar to how one would use it with AWS, has anyone successfully implemented a solution like this using the framework? I've looked a decent amount for an example but the serverless docs don't seem to have an example, so I wonder if it is even possible as of right now with the serverless framework.

Deploying a serverless application with Nest.js

I have an application using Nest.js, and I'd like to deploy it using API Gateway + Lambda functions.
I have some experience with AWS, but it's my first time with a serverless application.
I searched for some things but almost everything that I found uses the Serverless framework, and I would like to do it using the AWS SDK.
I have an API with 4 endpoints, I want to use API Gateway and a single Lambda function to run the application.
Any tips on how I could do that?
Thanks in advance.

Migrating from Spring Boot Microservices Project to Serverless using AWS

I have created a Spring cloud microservices project with netflix APIs and a frontend with React. Now, I want to migrate this project to serverless using amazon web services with DynamoDB and cognito. Do you know, which steps should I follow to do that? And what should I consider before doing this migration? For the Frontend React I decided to use S3 to host it.
Be sure if u really want to do this . This will be a big project; almost like re-writing complete codebase. Good part is that lambda supports Java so u might end up doing lots of copy paste. You would have a lambda function of each REST api endpoint u were exposing.

Host a dynamic website using lambda and Api gateway

I need some advise in one of my use case. I have a website which is based on html, css, javascript. Also there is a form present in the website into which user fill the details and submit the form. The details were getting submitted onto some 3rd party Database. Hence i need to deploy the website using serverless method. As per my understanding i could use s3 to host the static website. But as in my use case there is a form which intereact with DB and its a dynamic functionality so what could be the best approach to deploy the website as serverless if i uses the combination of Lambda,Api Gateway,S3 etc.Please guide.
I would recommend having look at this official AWS tutorial:
Build a Serverless Web Application
It uses DynamoDb instead a third party database, but its architecture would be roughly same.
Thus, you would host your static content with the html form on S3. The form would be submitted to an API Gateway endpoint that you will have to create.
The API gateway endpoint would integrate with a lambda function. The function would be responsible for reading or writing into your third party database.
So the workflow, would be like in the tutorial mantioned:
client -> S3 website with form -> API gateweay -> lambda -> third party db
For more details about how to architect serverless apps on AWS, I would also recommend the excellent AWS white paper:
AWS Serverless Multi-Tier Architectures With Amazon API Gateway and AWS Lambda
Host the static website in S3 & call the DB API directly from frontend JS!

What is the recommended way of creating Serverless (or) AWS lambda functions on the fly

I'm creating a SaaS product which allows users to create their own apps. For each application I need to deploy a serverless app or just a lambda function with cloud watch events & api gateway configurations through cloud formation stack when a particular request hits my backend API (which is also a serverless application). I need to know the best practice or the recommended way of achieving that task.
There are two approaches I found by doing a bit of research.
1. Using aws sdk and create a cloud formation stack. (without using the serverless framework)
2. Using serverless-platform-sdk which deploys an app on serverless-platform (beta) which I'm not completely sure about.