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)

Understanding AWS Virtual Private Clouds (VPCs)

In this section, we will understand AWS VPCs. VPCs are a very common component in the security layers of the AWS environment; they are isolated parts of the cloud where users can host their services and build their infrastructures. VPCs are the first layer of security. We will try to understand VPCs in the context of Lambda functions, in the form of bullet points, given here:

  1. VPCs can be created and modified in the AWS's VPC service dashboard, which looks like this:
  1. Now, let's quickly learn how to create a VPC of our own. For that, click on Create VPC. You will see a pop-up box which asks you to enter more meta information for your new VPC:
  1. The Name tag box needs to have the name of the VPC. The IPv4 CIDR block is where you enter your IP range for classless inter-domain routing. Then, you can choose whether you want...