Serverless Web Apps using Amazon DynamoDB

6 Steps3h 15m3 Credits

Serverless architectures allow you to build and run applications and services without needing to provision, manage, and scale infrastructure. This quest will show how to design, build, and deploy interactive serverless web applications, using a simple HTML/JavaScript web interface which uses Amazon API Gateway calls to send requests to AWS Lambda backends that query Amazon DynamoDB data.

Objectives

In this quest, you’ll learn to use the foundations for AWS serverless applications: Amazon DynamoDB, AWS Lambda, and Amazon API Gateway.
Then you'll tie the three services together to build a functional and fun serverless web app, and deploy it live on the web.

Quest Outline

This lab teaches you about Amazon DynamoDB and walks you through how to create, query, view and delete a table in the AWS Management Console. For a demonstration, go to: https://www.youtube.com/watch?v=ujWV3-m1pLo For the lab to function as written, please DO NOT change the auto assigned region.

In this lab, you will create a simple FAQ microservice. The microservice will return a JSON object containing a random question and answer pair using an API Gateway endpoint that invokes a Lambda function. Prerequisites: students should take the lab "Introduction to AWS Lambda" before taking this lab.

This is part one of a three-part lab which teaches you how to create a "serverless" web app with an Amazon DynamoDB backend data store. In this first part of the lab, you will build the infrastructure you will need in subsequent labs. You will create a DynamoDB table and add data, then build the necessary IAM roles and polices. To successfully complete this lab, you should be familiar with DynamoDB and IAM through taking those introductory labs at qwiklabs.com.

This is part two of a three-part lab which teaches you how to create a "serverless" web app with an Amazon DynamoDB backend data store. In this second part of the lab, you will build upon the infrastructure created in part one. You will go on to create Lambda functions that interact with the DynamoDB table and add data, then build the necessary IAM roles and polices to support access to the functions and database via API Gateway. To successfully complete this lab, you should be familiar with DynamoDB, API Gateway, and IAM.

This is part three of a three-part lab which teaches you how to create a "serverless" web app with an Amazon DynamoDB backend data store. In this lab you will configure an API using Amazon API Gateway and set up a public website to retrieve information from your DynamoDB table via Lambda functions, using what you learned in all three labs. To successfully complete this lab, you should be familiar with DynamoDB and API Gateway through taking those introductory labs at qwiklabs.com.