Book Image

Building Serverless Applications with Python

Book Image

Building Serverless Applications with Python

Overview of this book

Serverless architectures allow you to build and run applications and services without having to manage the infrastructure. Many companies have adopted this architecture to save cost and improve scalability. This book will help you design serverless architectures for your applications with AWS and Python. The book is divided into three modules. The first module explains the fundamentals of serverless architecture and how AWS lambda functions work. In the next module, you will learn to build, release, and deploy your application to production. You will also learn to log and test your application. In the third module, we will take you through advanced topics such as building a serverless API for your application. You will also learn to troubleshoot and monitor your app and master AWS lambda programming concepts with API references. Moving on, you will also learn how to scale up serverless applications and handle distributed serverless systems in production. By the end of the book, you will be equipped with the knowledge required to build scalable and cost-efficient Python applications with a serverless framework.
Table of Contents (11 chapters)

Deploying the Lambda function for API execution

In this section, we will have a look at the steps to deploy the Lambda function:

  1. The details of the GET method can also be seen on the right-hand side of the API console, when you click on that method. The details look as follows:
  1. In the GET method console, click on the Lambda Function option. Select any one region depending on your preference. I have chosen us-east-1 as the region as shown in the following screenshot:
  1. As expected, it says we do not have a Lambda function in that region. So, we need to go ahead and create one. Click on the Create a Lambda Function link. This will take you to the Lambda creation console which we are already comfortable with:
  1. From here, choose the keyword : hello-world-python blueprint from the list of blueprints:
  1. In the next console, choose the basic information for the Lambda function...