Book Image

Learn AWS Serverless Computing

By : Scott Patterson
Book Image

Learn AWS Serverless Computing

By: Scott Patterson

Overview of this book

Serverless computing is a way to run your code without having to provision or manage servers. Amazon Web Services provides serverless services that you can use to build and deploy cloud-native applications. Starting with the basics of AWS Lambda, this book takes you through combining Lambda with other services from AWS, such as Amazon API Gateway, Amazon DynamoDB, and Amazon Step Functions. You’ll learn how to write, run, and test Lambda functions using examples in Node.js, Java, Python, and C# before you move on to developing and deploying serverless APIs efficiently using the Serverless Framework. In the concluding chapters, you’ll discover tips and best practices for leveraging Serverless Framework to increase your development productivity. By the end of this book, you’ll have become well-versed in building, securing, and running serverless applications using Amazon API Gateway and AWS Lambda without having to manage any servers.
Table of Contents (20 chapters)
Free Chapter
1
Section 1: Why We're Here
4
Section 2: Getting Started with AWS Lambda Functions
9
Section 3: Development Patterns
12
Section 4: Architectures and Use Cases

Deploying your first service

Alright then, let's get into the bit where we can deploy something ourselves! We have a lot to cover in this section, but, by the end, you will understand how to go from zero to deploying a functional API using the Serverless Framework. Remember that a service is our top-level construct, so, when we're building and deploying a service, this includes all of the functions, events, and resources within the project.

We'll start by installing the framework and explore some of the command-line options that are available. Then, with the help of the framework, we'll create a Hello World API written in Node.js and deploy a real endpoint to our AWS account. After that, we'll dig into some of the underlying details about how deployments work before learning how to run our development locally. We'll also touch on serverless enterprise...