Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can Strapi be launched into AWS lambda?

i want a good cms/backend application to create/manage API on AWS. strapi fits well for my requirement. but i dont want to use EC2, lightsail, beanstalk etc

i want to use strapi on aws lambda is it possible to deploy strapi on aws lambda?

like image 399
David Jeba Avatar asked Mar 25 '19 13:03

David Jeba


People also ask

Where can I host a Strapi?

Strapi can be deployed on traditional hosting servers or services such as 21YunBox, Render, Heroku, AWS, Azure and others.

Can you run Microservices at AWS Lambda?

An API created with Amazon API Gateway, and functions subsequently launched by AWS Lambda, is all that you need to build a microservice. Your team can use these services to decouple and fragment your environment to the level of granularity desired.

Can Lambda trigger API gateway?

You can create a web API with an HTTP endpoint for your Lambda function by using Amazon API Gateway. API Gateway provides tools for creating and documenting web APIs that route HTTP requests to Lambda functions.


2 Answers

Since strapi is a nodejs project, you can use this project to deploy to aws lambda Apex up.

You can still deploy a monolith to aws lambda, but it is not suggested.

like image 89
Prakash Avatar answered Oct 28 '22 12:10

Prakash


There is a discussion about it in https://github.com/strapi/strapi/issues/1908

It states the issue with runnig stapi on lambda is

Currently there is a long bootup process which makes hosting strapi in an environment like aws lambda impractical since it has to boot the app for each request.

The latest comment from the team says

We will not work on it for now. We will communicate if something changes on this topic.

like image 45
tepez Avatar answered Oct 28 '22 11:10

tepez