Bespoken LLM Benchmark: Does ChatGPT know more than Google and Amazon?
Learn more
August 4, 2017 in Blog

Serverless Plugin For Local AWS Lambda Development

TL;DR Use the Bespoken Serverless plugin to build and test your AWS Lambdas developed with Serverless Framework locally. Install with your project via npm.
serverless plug in

We love the Serverless Framework, and use it with our own internal development.

However, as much as we love it, we knew at least one thing it was missing: the Bespoken proxy.

But not anymore – now with our Serverless plugin, you can develop and test your AWS Lambdas developed with Serverless locally. Send HTTP requests and responses directly to your laptop while you’re developing, no deployment required.

Why Do I Want This?

Serverless development is awesome, but it has at least one significant hurdle:
How do you debug and test your functions locally pre-deployment?

Hand-crafting JSON files to send to your service locally is one solution, but this is time-consuming and only a facsimile of a real interaction.

Our plugin for the Serverless framework overcomes this problem. We create a tunnel from our server to your machine, making it accessible for testing:

Proxy Lambda

How Do I Set It Up?

Install our plugin with your project via npm:

npm install serverless-plugin-bespoken --save

And add the plugin to your serverless.yml file:

  - serverless-plugin-bespoken

And then, kick it off like so:

sls proxy --function myFunctionName

Watch this quick demo to see how easy it is to run the proxy, and send it a simple GET request from the browser:


That’s it – now you can develop and test locally with ease!

What Is Next?

We are looking at a deeper integration of our toolkit with Serverless, including our:

  • Speak and Intend commands
  • Monitoring on the Bespoken Dashboard
  • Testing and Validation tools for Alexa and Google Assistant

Let us know what you would find most useful – we are on Gitter and Slack (@jperata).

Leave a Reply

Your email address will not be published. Required fields are marked *