Video description
This course will introduce you to serverless computing and then quickly dive into how to build serverless apps with Amazon Web Services (AWS).
Specifically, you will learn:
- To build a REST API without worrying about servers, using AWS API Gateway
- Set up your on-demand code via AWS Lambda
- Execute Lambda code whenever incoming requests reach your defined REST endpoints
- Store data in a database - naturally without managing any database servers!
We won't stop here though! Instead, you'll then dive even deeper into serverless computing and learn:
- To add user authentication to your existing frontend apps and how you can then also protect your REST API against unauthenticated access with ease!
- how you can easily integrate a complete user sign up & sign in flow (including user confirmation) into ANY app (web app, iOS or Android app!) with AWS Cognito
- Deploy your web app in a serverless manner
- Speed up the delivery of your static web app assets
Secure your serverless app
What else you can build with the services covered in this course and which other services might be interesting to you were to dive deeper regarding advanced development workflows.
What You Will Learn
- Build, secure and run APIs without managing any servers using AWS API Gateway and Lambda
- Host SPAs without managing any servers
- Add user authentication to serverless applications
- Run code on-demand in the cloud
Audience
Anyone who's interested in focusing on the core business logic instead of the infrastructure needed to run an API and/ or SPA. Anyone who wants to use modern techniques to create highly scalable and extremely cost-efficient web apps. Anyone who works with APIs and/ or SPAs on a regular basis and wants to learn how to create flexible and cost-effective web apps. Every developer who loves the "Dev" in "DevOps" but would be happy to make the "Ops" part easier.
About The Author
Academind by Maximilian Schwarzmüller:
Academind GmbH
Bundling the courses and the knowledge of successful instructors, Academind strives to deliver high-quality online education. The platform covers topics such as web development, data analysis, and more in a fun and engaging way.
Maximilian Schwarzmüller
Since the age of 13, he has never stopped learning new programming skills and languages. In his early days, he started creating websites simply for fun. This passion has remained and shaped his decision to work as a freelance web developer and consultant. Although he started web development on the backend (PHP with Laravel and NodeJS), he has progressed to becoming a front-end developer using modern frameworks such as React, Angular, and VueJS 2 in many projects.
The most rewarding experience for him is to see how people find new and better jobs, build exciting web applications, acquire amazing projects, or simply enjoy their hobby with the help of his content.
Table of contents
- Chapter 1 : Getting Started
- Chapter 2 : The Core Serverless Services
-
Chapter 3 : Creating an API with API Gateway AWS Lambda
- Module Introduction
- What is API Gateway?
- Accessing the API Gateway Console
- General API Gateway Features
- API-specific Features Options
- Introducing the Request-Response Cycle
- Understanding the Request-Response Cycle
- Creating a New API
- Creating a Resource (= URL Path)
- Handling CORS and the OPTIONS Preflight Request
- Creating a (HTTP) Method
- What is AWS Lambda?
- Creating a Lambda Function
- Connecting Lambda Functions to API Gateway Endpoints
- Accessing the API from the Web Fixing CORS Issues
- Understanding "event" in Lambda Functions
- Forwarding Requests with "Proxy Integration"
- Accessing Lambda Logs
- Getting Started with Body Mapping Templates
- Extracting Request Data with Body Mapping Templates
- What's the Idea behind Body Mappings?
- Mapping Response Data
- Using Models Validating Requests
- Models Mappings
- Next Steps
- Adding a DELETE Method Endpoint to the API
- Using Path Parameters
- Accessing the API from the Web - The Right Way
- Wrap Up
-
Chapter 4 : Data Storage with DynamoDB
- Module Introduction
- What is DynamoDB?
- How DynamoDB Organizes Data
- NoSQL vs SQL
- Using DynamoDB with Lambda
- Creating a Table in DynamoDB
- Understanding Read Write Capacity
- Creating and Scanning Items
- What about multiple Databases?
- Accessing DynamoDB from Lambda
- Sidenote: How Lambda works behind the Scenes
- Putting Items into a DynamoDB Table from Lambda
- Setting Permissions Right
- Using API Gateway (Request) Data for Item Creation
- Mapping the Response Web Testing
- Scanning Data in DynamoDB from Lambda
- Improving the IAM Permissions
- Restructuring Fetched Data in Lambda
- Getting a Single Item from DynamoDB via Lambda
- Testing it from the Web Passing Correct Data
- Preparing "Delete" Permissions
- Deleting Items in DynamoDB via Lambda
- Mapping DynamoDB Responses
- Wrap Up
-
Chapter 5 : Authenticating Users with Cognito and API Gateway Authorizers
- Module Introduction
- How to add Authorization to API Gateway
- Understanding Custom Authorizers (API Gateway)
- Creating a Custom Authorizer Function
- Using Custom Authorizers
- Retrieving Users from Custom Authorizers
- What is AWS Cognito?
- Cognito User Pools and Federated Identities
- Creating a Cognito User Pool
- Understanding the Cognito Auth Flow
- Adding Cognito to a Frontend App - Getting Started
- Adding Signup to the Frontend App
- Adding User Confirmation to a Frontend App
- Adding Signin to a Frontend App
- Managing User State with Cognito
- Using a Cognito Authorizer with API Gateway
- Passing the right User ID to Lambda
- Using Query Params Cognito from Lambda
- Passing Query Params from the Frontend
- Passing the User Id to the DELETE Endpoint
- Wrap Up
-
Chapter 6 : Hosting a Serverless SPA
- Module Introduction
- What is S3?
- Creating a S3 Bucket
- Uploading the Web App to the Bucket
- Turning a S3 Bucket into a Static Webserver
- Setting up Logging
- Optimizing Content Delivery: What is AWS CloudFront?
- Setting up a CloudFront Distribution
- Finishing the CloudFront Setup
- Using a Custom Domain: What is Route53?
- Registering a Domain
- Connecting a Domain to a CloudFront Distribution
- Wrap Up
-
Chapter 7 : Beyond the Basics - An Outlook
- Module Introduction
- Documenting an API
- Other AWS Lambda Triggers
- Going Serverless with a Node/ Express App (Non-API!)
- Running Node/ Express Apps via Lambda + API Gateway
- Pros and Cons of Serverless Node/Express MPA
- Serverless Apps and Security
- A Case of a Better Development Workflow
- Getting to know the Serverless Framework
- Getting to know SAM (Serverless Application Model) by AWS
- Testing Serverless Apps with localstack
- Other useful AWS Services
- Wrap Up
- Chapter 8 : Course Roundup
Product information
- Title: AWS Serverless APIs & Apps - A Complete Introduction
- Author(s):
- Release date: October 2018
- Publisher(s): Packt Publishing
- ISBN: 9781789954340
You might also like
video
Serverless Computing on AWS with Lambda, API Gateway, S3, and DynamoDB
Looking to jump into the world of serverless computing on AWS but don’t know where to …
video
Build a Serverless App with AWS Lambda - Hands On!
Immerse yourself in Amazon Web Services (AWS) with this hands-on, project-based course - and truly internalize …
video
AWS Lambda: Developing Serverless Applications with Java
3.5 Hours of Video Instruction on AWS Lambda and Serverless Applications OverviewMore than 3.5 hours of …
book
Serverless Architectures on AWS
NEWER EDITION AVAILABLE IN MEAP Serverless Architectures on AWS, Second Edition is now available in the …