AWS Serverless APIs & Apps - A Complete Introduction [Video]
- FREE Subscription Read for free
- $125.99 Video Buy
- $12.99 Video + Subscription Buy
-
What do you get with a Packt Subscription?
- Instant access to this title and 7,500+ eBooks & Videos
- Constantly updated with 100+ new titles each month
- Breadth and depth in over 1,000+ technologies
-
Free ChapterGetting Started
-
The Core Serverless Services
-
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
-
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
-
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
-
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
-
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
-
Course Roundup
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.
The code bundle for this video course is available at https://github.com/PacktPublishing/AWS-Serverless-APIs-and-Apps---A-Complete-Introduction
- Publication date:
- October 2018
- Publisher
- Packt
- Duration
- 7 hours 19 minutes
- ISBN
- 9781789954340