Book Image

Building Serverless Microservices in Python

By : Richard Takashi Freeman
Book Image

Building Serverless Microservices in Python

By: Richard Takashi Freeman

Overview of this book

Over the last few years, there has been a massive shift from monolithic architecture to microservices, thanks to their small and independent deployments that allow increased flexibility and agile delivery. Traditionally, virtual machines and containers were the principal mediums for deploying microservices, but they involved a lot of operational effort, configuration, and maintenance. More recently, serverless computing has gained popularity due to its built-in autoscaling abilities, reduced operational costs, and increased productivity. Building Serverless Microservices in Python begins by introducing you to serverless microservice structures. You will then learn how to create your first serverless data API and test your microservice. Moving on, you'll delve into data management and work with serverless patterns. Finally, the book introduces you to the importance of securing microservices. By the end of the book, you will have gained the skills you need to combine microservices with serverless computing, making their deployment much easier thanks to the cloud provider managing the servers and capacity planning.
Table of Contents (13 chapters)
Title Page

Overview of AWS Identity and Access Management (IAM)

In this section, we are going to briefly discuss AWS IAM, specifically for serverless computing. IAM is a central location where you can manage users and security credentials—such as password, access keys, and permission policies—that control access to the AWS services and resources. We are going to talk about the most relevant IAM resources: policies, roles, groups, and users.

IAM policies are JSON documents that define the affected action's resources and conditions. Here is an example of a JSON document that will grant read access to DynamoDB tables, called Books only if the request originates from a specific IP range:

There is also a visual editor that allows you to create these or you can do so manually by editing the JSON document itself.