Part 1: Build a serverless web application with AWS ChaliceΒΆ
The first part of the workshop will introduce AWS Chalice and walk you through creating a Todo application using AWS Chalice.
- Section 0: Introduction to AWS Chalice
- Section 1: Create initial Todo application
- Section 2: Add
chalicelib
to Todo application - Section 3: Add a DynamoDB table for Todo application
- Section 4: Add authorization to Todo application
- Install PyJWT
- Copy over auth specific files
- Create a DynamoDB user table
- Add a user to the user table
- Create
get_users_db
function - Create a login route
- Create a custom authorizer and attach to a route
- Attach authorizer to the rest of the routes
- Use authorizer provided username
- Deploying your authorizer code
- Final Code