Table of Contents
Introduction
Introducing Serverless with AWS
Scott Moss introduces Serverless with AWS course. Serverless architecture lets functions run as a service on AWS instead of running a full server.AWS & Lambda Functions
After discussing functions as a service run an independent method on a hosted server, Scott states that AWS Lamdas are AWS's functions as a service.Serverless
Scott reviews serverless the framework as a tool that provides the power to manage and deploy serverless functions on any cloud hosting platform such as AWS, Azure, Google Cloud, and so on.Serverless Lambda Setup
After setting up with the Serverless framework and running lambda functions locally with the invoke -f command, Scott shows the path option that allows the passing in event data into functions.Your First Lambda Exercise
In this exercise, students create a lambda function and execute it locally on their respective machine. Then students pass in event data into the function.Your First Lambda Solution
Scott walks through the solution to the Your First Lambda Exercise for creating a simple lambda function.
Lambda Events
Sync vs. Async
Scott discusses executing lambdas synchronously and asynchronously.AWS Event Types
After saying that AWS has a growing list of event types that Lambdas can subscribe to, Scott demonstrates some of the common event types.CloudFormation & Serverless Framework
Scott reviews the serverless framework, which creates an abstraction that is easier to work in conjunction with AWS CloudFormation. AWS CloudFormation allows for using different services across AWS with one configuration.API Gateway Routing
Scott introduces AWS API Gateway, which allows for setting up routing for lambdas. The API Gateway routing allows for the creation of a full API on top of serverless functions. Scott takes questions from students.Setup API Gateway Locally
To get the same functionality of API Gateway to develop locally, Scott shows how to use the Serverless offline mode plugin.Lambdas Calling Lambdas Q&A
Scott takes questions from students about the tradeoffs and implementations of invoking other lambdas inside lambda functions.Lambda API Exercise
In this exercise, students configure routes for lambdas using the serverless YAML.AWS Lambdas Q&A
Scott takes questions from students about best practices for keeping lambdas out of a cold state and if lambda functions are independent of each other.Lambda API Solution
Scott walks through the solution to Lambda API Exercise by configuring the serverless YAML to build an API on top of lambda functions.
Deployment
Deploying Lambdas on AWS
Scott introduces steps to deploy lambda functions to AWS using the serverless deploy method.AWS Deploy Inspection Tools
Scott walks through the tools in AWS to inspect and analyze the deployment of lambda functions. Scott takes questions from students.AWS Lambda Settings
Scott reviews various settings on AWS for lambda functions including memory, timeouts, environment variables and more.AWS Monitoring & Source Files
Scott shows the monitoring dashboard as well as where to find the source code for lambda functions.Deploy on AWS Exercise
In this exercise, students deploy and use lambdas on AWS using a serverless framework.Deploy on AWS Solution
Scott walks through the solution to the Deploy on AWS Exercise by showing how to deploy Lambdas to AWS. Scott takes questions from students.
Using Express
Serverless Routing
Scott uses the serverless framework to show the many ways to route requests from using multiple lambdas to multiple routes to using one lambda to one route.Routing Serverless with Express
Scott illustrates how to take advantage of Express's routing capabilities and API within a lambda function to take control of routing vs. giving serverless control of the routing.Node Lambda Context
Scott shows the lambda continues to run if there's an async task left. This behavior can be disabled this behavior using the context object.Routing & Express Q&A
Scott takes questions from students about router options, express, and more.Lambdas on Express Exercise
In this exercise, students convert an application to use Express's routing.Lambdas on Express Solution and Q&A
After taking questions from students about using lambdas and Express, Scott reviews his solution and discusses
Testing
Testing Lambdas
Scott discusses testing lambda functions using Jest and SuperTest.Testing with SuperTest
Scott sets up testing with SuperTest, which allows Express requests and retrieves results without having to start an Express server.
Wrapping Up
AWS Resources
Scott reviews resources for working with AWS.Lamda@Edge
Scott discusses globally distributed lambdas push traffic and using Lamda@Edge service to customize the content that CloudFront delivers.Wrapping Up "ServerLess with AWS"
After taking questions from students about the cold start and "keeping lambdas warm," API gateways, and more, Scott wraps up Serverless with AWS course.