AWS Lambda

AWS Lambda is a serverless hosting solution by Amazon Web Services. Find the official documentation here.

Lambda Configuration

Here is how the part of index.js, which is used to run the app on AWS Lambda, looks like:


Creating a Lambda Function

While for Alexa, the process of hosting a Skill on Lambda is straightforward, for a Google Action there are additional steps that need to be taken to create an API Gateway. To learn more about how to run your voice app on Lambda, please take a look at our step-by-step tutorials:

Uploading Code

You can create a ready-to-deploy file with either of the following commands:

This will copy the src files into a bundle folder, run a production-only npm install, and then zip it. You can then use this file and upload it to your Lambda function.

If you have a Lambda endpoint defined in your project.js file, the jovo deploy command will not only deploy platform projects, but also bundle and upload your source code to AWS Lambda:

Additional Services

Tutorial: Add DynamoDB to Store User Data

The FileDb database integration does not work on AWS Lambda. It is encouraged to switch to DynamoDB before uploading to Lambda.

Comments and Questions

Any specific questions? Just drop them below or join the Jovo Community Forum.

Join Our Newsletter

Be the first to get our free tutorials, courses, and other resources for voice app developers.