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)

Creating C# Serverless Project with .NET Core

In the previous section, we used Visual Studio and the AWS Toolkit to create our first AWS Lambda function with C#. Now we will create a more complex serverless project that contains Lambda functions and the API Gateway. We are going to use the AWS Toolkit and Visual Studio to create a serverless project. We will also explore the generated source code and deploy and test the project.

  1. Go to Visual Studio 2015 and create a new serverless project. Select File | New | Project.
  2. Select AWS Serverless Application and click OK.
  3. We are creating a little bit more complex application, so select the Blog API using DynamoDB.
  1. Our serverless project has been created. There are two files that have been generated for us, Blog.cs file and Functions.cs file, as shown here:

In the Functions.cs file, we find the function handlers that are used to...