Book Image

AWS Lambda Quick Start Guide

By : Markus Klems
5 (1)
Book Image

AWS Lambda Quick Start Guide

5 (1)
By: Markus Klems

Overview of this book

AWS Lambda is a part of AWS that lets you run your code without provisioning or managing servers. This enables you to deploy applications and backend services that operate with no upfront cost. This book gets you up to speed on how to build scalable systems and deploy serverless applications with AWS Lambda. The book starts with the fundamental concepts of AWS Lambda, and then teaches you how to combine your applications with other AWS services, such as AmazonAPI Gateway and DynamoDB. This book will also give a quick walk through on how to use the Serverless Framework to build larger applications that can structure code or autogenerate boilerplate code that can be used to get started quickly for increased productivity. Toward the end of the book, you will learn how to write, run, and test Lambda functions using Node.js, Java, Python, and C#.
Table of Contents (8 chapters)

Using the Serverless Framework with Python

In the previous section, we created our first Python Lambda functions on the AWS Management Console. In this section, we will use the serverless framework to create Python Lambda functions. We will invoke the function locally, and then we will deploy and remotely invoke the function.

Open a terminal window in the Atom Editor. We will use the serverless command-line interface to generate a Python Lambda function from the template. If you don't have the serverless framework installed on your computer, please head back to the install and setup video right at the beginning. You should be able to execute this command to print out the serverless version that you have installed. Currently, we're using serverless framework version 1.6.1. You can create a new function using the command, sls create and specifying the template, --template...