
Configuration changes are common to update the default behavior, such as the hosting port. plugins:Īn additional section can be added to the serverless.yml file to configure the plugin. Next, the plugin needs to be declared in the serverless.yml configuration file. First, we need to install the plugin with npm. By simulating AWS Lambda functions and API Gateway, developers can quickly run and debug their serverless applications entirely on their own machine!Īs is with most plugins, installation is very straight forward. The most popular of these is the serverless-offline plugin, which allows developers to run serverless functions behind a local HTTP server. Coupling this with its strong community support provides developers with plugins for the majority of their development needs. One of my favorite aspects of the serverless framework is the extensibility through its plugin architecture.

If you are new to the serverless framework, please take a look at their getting started guide and AWS provider documentation. That being said, there is a wealth of information on their website. The serverless framework is a topic in itself so, we will not go into details in this article. Next, type serverless, and a wizard will guide you through creating your new project. First, you will need to install the serverless CLI, which can be accomplished with the following command. It is also super intuitive and easy to use! While the serverless framework supports Azure, AWS, and GCP, we will be focusing on AWS as we advance.

I tend to gravitate towards the serverless framework. Several frameworks are available to create, build, and deploy serverless functions. So, where does Docker come into play? In this article, we will discuss how you can use Docker and the serverless framework to supplement your local development experience.

You create a function in your favorite language and ship it while effectively all administration is handled by your cloud provider. One of the key benefits of “Function as a Service” (FaaS) or “serverless” offerings is developers do not have to worry about infrastructural concerns such as Virtual Machines, Containers, and the like. If you have experience with Azure Functions or AWS Lambdas, then the title may sound a bit like an oxymoron.
