Chapter 5. The Serverless Framework

Now that you have learned the basic concepts to launch your project into the cloud, let’s discuss the basics of packaging, deploying, and supporting resources. Even if you are not planning to use the Serverless Framework, you should read this chapter to understand the basics of configuring cloud infrastructure. The Serverless Framework serves as a convenient abstraction to illustrate these concepts, and it may provide you with a lot of value if you can use it for your project.

The Serverless Framework allows for a system or application with a simple configuration file that configures the framework and creates the cloud infrastructure dependencies described in the file. Using the Serverless Framework, you can easily deploy a simple project, or a complex constellation of services. In this chapter, we will cover the basics of the open source components of the Serverless Framework, how to set up a simple project, how to find sample projects, and all of the basics you need to use the framework effectively. Later chapters will guide you through the other tools you will need to get to a stable production environment. Note that the examples in this chapter are specific to AWS, but the concepts will apply to all cloud providers. If you intend to run your functions inside Kubernetes, you may still find this tool to be useful, but the concepts around infrastructure will not directly translate. If you are using Kubernetes, this book assumes that you, or ...

Get Learning Serverless now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.