O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Build a Serverless App with AWS Lambda - Hands On!

Video Description

Create a chat web app using Amazon Web Services - Lambda, DynamoDB, API Gateway, S3, Cognito, CloudFront, and more

About This Video

    • S3 (Simple Storage Service) - For storing static HTML and vending it to your users' browsers
    • Lambda - For executing logic in the cloud for storing and retrieving data in your application
    • IAM (Identity and Access Management) - For securing access to your services
    • API Gateway - For presenting a well-modeled API to your clients and automatically generating client-side code to communicate with it
    • DynamoDB - For quickly storing and retrieving data at scale
    • Cognito - For managing users, account creation, and logins securely
    • CloudFront - For accelerating the delivery of your site to end users with a CDN

In Detail

Immerse yourself in Amazon Web Services (AWS) with this hands-on, project-based course - and truly internalize some highly valuable skills in the world of technology. We'll walk you through building your own chat website using nothing but AWS services - and no standalone services or server instances at all! Building a "serverless app" using AWS and its Lambda service is a great introduction to the core services AWS offers. We'll tie it all together by learning and practicing Javascript, and we'll learn about CORS to grant browsers the permissions they need to run a serverless application. Even if you're familiar with AWS, you'll learn valuable techniques on how to build a fully functional, dynamic website without maintaining any servers at all - not even via EC2! Your highly experienced guides through this project are Frank Kane, formerly a senior manager at Amazon, and Brian Tajuddin, a principal engineer also formerly working at Amazon. You'll be learning AWS from people who were there when it was being created. You'll join over 140,000 other students of the Sundog Education team who have leveled up their careers with hot technical skills.

Table of Contents

  1. Chapter 1 : Introduction
    1. Introduction 00:17:47
    2. Setup the website 00:12:01
  2. Chapter 2 : Static Chat Application with S3
    1. S3 Overview 00:10:06
    2. Walkthrough of demo site 00:06:14
    3. Adding static data to the website 00:05:18
    4. JavaScript Syntax Basics 00:07:45
    5. JavaScript Parallelism 00:05:31
    6. Accessing static data from JavaScript 00:11:44
    7. Exercise 1 solutions 00:05:12
  3. Chapter 3 : Creating an API
    1. Lambda functions overview 00:06:12
    2. Introduction to IAM and policies 00:04:25
    3. Creating a policy for the Lambda function 00:05:57
    4. Code walkthrough of the first Lambda function 00:08:47
    5. Running the lambda function with test data 00:04:18
    6. Lambda triggers 00:04:06
    7. Adding an API Gateway trigger to the function 00:04:18
    8. Understand and Setup CORS 00:07:25
    9. Calling the API from the website 00:06:07
    10. ORS Activity Solution 00:02:35
    11. Retrieving a conversation with the API 00:06:56
    12. Failure test activity solution 00:03:13
  4. Chapter 4 : Use DynamoDB for storage
    1. DynamoDB overview 00:09:29
    2. ynamoDB vs. S3 00:02:57
    3. Create DynamoDB tables 00:04:18
    4. Create some sample data in DynamoDB 00:06:19
    5. Update Lambda policy to access DynamoDB tables 00:04:44
    6. Read a conversation from Dynamo DB 00:12:39
    7. Read conversation list from DynamoDB 00:12:17
    8. Write new messages to DynamoDB 00:14:53
    9. Exercise Solution 00:06:16
  5. Chapter 5 : Break up the monolith
    1. Overview of why having only one Lambda function can create problems 00:05:44
    2. API Gateway overview - Resources and Methods 00:09:53
    3. API Gateway overview – Models 00:03:48
    4. API Gateway overview - Request Flow 00:06:10
    5. Create API structure in API Gateway 00:09:44
    6. Lambda functions for reading and writing messages 00:13:03
    7. API Gateway stages 00:03:25
    8. Exporting a JavaScript client and Swagger 00:13:07
    9. Remove hard-coded user names from Lambda 00:06:46
  6. Chapter 6 : Add Identity to the app
    1. Cognito overview 00:07:37
    2. Create a user pool 00:08:12
    3. List Users in the API 00:09:34
    4. List Users on the site 00:11:00
    5. Create a new conversation 00:11:06
    6. Create sign up page 00:09:55
    7. Create verification page 00:04:56
    8. Add login and logout 00:05:49
    9. Add a Cognito authorizer to the API Gateway 00:08:38
    10. Add a Cognito authorizer to the API Gateway 00:04:34
    11. Add a Cognito authorizer to the API Gateway 00:08:25
  7. Chapter 7 : Optimization and Preparing for Production
    1. Lambda Versioning 00:14:22
    2. Using stage variables 00:06:25
    3. CloudFront overview 00:04:17
    4. Setting up a CloudFront CDN 00:08:36
    5. Monitoring 00:07:45
    6. Custom domains 00:05:33
  8. Chapter 8 : You Made It! Where to go from here
    1. More to Explore... 00:09:49