AWS Lambda + API Gateway

default discord avatar
Daniel Koch
7 months ago

Hi guys, at first thank you for providing such a great cms! My question is about hosting. Does anyone know if you can put Payload CMS into a Lambda and serve it using AWS API Gateway? I found this (

) and before I try to build it, I would like to hear your opinion.

  • discord user avatar
    Payload Team
    7 months ago

    We know some members of the community that have run Payload in Lambda successfully, but this isn't something that we completely test/support. With a package like you linked, I'd be very cautious of running into the Lambda size limit and of cold starts.

    That being said, we recently released a way to run Payload on Vercel which may also be interesting for you to take a look at:
Open the post
Continue the discussion in Discord
Like what we're doing?
Star us on GitHub!


Connect with the Payload Community on Discord



Can't find what you're looking for?

Get help straight from the Payload team with an Enterprise License.