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
    • Create a virtualenv and install Chalice
    • Create a new Chalice application
    • Deploy the Chalice application
    • Add a new route
    • Add a new route with a URI parameter
    • Add a new route with a non-GET HTTP method
    • Delete the Chalice application
  • Section 1: Create initial Todo application
    • Install Chalice
    • Create a new Chalice project
    • Add the starting app.py
    • Add a route for creating a Todo
    • Add a route for getting a specific Todo
    • Add a route for deleting a specific Todo
    • Add a route for updating the state of a specific Todo
    • Final Code
  • Section 2: Add chalicelib to Todo application
    • Create chalicelib module
    • Move database code from app.py to the db.py
    • Import InMemoryTodoDB from chalicelib
    • Final Code
  • Section 3: Add a DynamoDB table for Todo application
    • Initial Setup
    • Create a DynamoDB table
    • Switching the InMemoryTodoDB to a DynamoDBTodo
    • Deploy your app
  • 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
 
  • ← Todo Application
  • Section 0: Introduction to AWS Chalice →

AWS Chalice Workshop

Navigation

  • Prerequisite: Setting up your environment
  • Todo Application
    • Part 1: Build a serverless web application with 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
    • Part 2: Deployment and setting up a CICD pipeline with AWS Chalice
  • Media Query Application

Related Topics

  • Documentation overview
    • Todo Application
      • Previous: Todo Application
      • Next: Section 0: Introduction to AWS Chalice

Quick search

©2017, James Saryerwinnie. | Powered by Sphinx 3.1.2 & Alabaster 0.7.12 | Page source