Book Image

AWS Lambda Quick Start Guide

By : Markus Klems
Book Image

AWS Lambda Quick Start Guide

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 a web client

In the previous section, we created a Cognito pool and added some functionality to our backend to retrieve the Cognito identity from our context object. Here, we will create a web frontend for our application, a web client. We will first generate a JavaScript SDK of our service using API Gateway, and then we will use this SDK with a Cognito client in a simple web page. Open the Amazon Cognito dashboard from the AWS Management Console. To use the Cognito site, go to Services and type in Cognito.

Cognito is a web service that allows you to manage or implement sign-up and sign-in functionality for your application. There are two options that are provided on the Cognito site: Manage your User Pools and Manage Federated Identities. You can create your own Cognito pool or you can use federated identities if you want to allow your users to authenticate, for example...