• World Economic Forum
  • CDC
  • FDA
  • Rockefeller Foundation
  • Great Reset Timeline
  • Event 201
  • World Military Games
  • Paid Media Influencers
Logo
latest
  • Covid Medical Treatments
  • Bill Gates Memes
  • Topics
  • Data Science of the Pandemic
  • Vaccines
  • Masks
  • Lockdowns
  • Origins of the Virus
  • Pandemic Preparedness
  • Pandemic Participants
  • Food Safety
  • Municipal Issues and Topics
  • How you can help
    • Tech stack for this website
    • My Guides for Various Technical Topics
    • General Computer Setup
    • Advanced Computer Setup and Topics
    • Amazon AWS Learning
      • AWS Chalice Workshop
        • Prerequisite: Setting up your environment
        • Todo Application
        • Media Query Application
      • Media Query Application
      • My Todo App
      • Chalice Workshop Code Part 1
      • Chalice Workshop Part 2
    • ToDo project and documentation tasks
    • Contribute
    • Links of Upcoming Software to Try
    • Links to add to the documentation
    • Future Topics to be developed
  • Sandbox
  • Sitemap
  • License
  • Help - About
  • Covid Medical Treatments
  • Bill Gates Memes
  • Topics
  • Data Science of the Pandemic
  • Vaccines
  • Masks
  • Lockdowns
  • Origins of the Virus
  • Pandemic Preparedness
  • Pandemic Participants
  • Food Safety
  • Municipal Issues and Topics
  • How you can help
    • Tech stack for this website
    • My Guides for Various Technical Topics
    • General Computer Setup
    • Advanced Computer Setup and Topics
    • Amazon AWS Learning
      • AWS Chalice Workshop
        • Prerequisite: Setting up your environment
        • Todo Application
        • Media Query Application
      • Media Query Application
      • My Todo App
      • Chalice Workshop Code Part 1
      • Chalice Workshop Part 2
    • ToDo project and documentation tasks
    • Contribute
    • Links of Upcoming Software to Try
    • Links to add to the documentation
    • Future Topics to be developed
all-knowledge
  • »
  • How you can help »
  • Amazon AWS Learning »
  • AWS Chalice Workshop »
  • Todo Application »
  • Part 1: Build a serverless web application with AWS Chalice
  • Edit on
Next Previous

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
Next Previous

© Copyright 2020-2021, Thomas Connors and Contributors. Revision 236e154f. Last updated on Fri, 23 Jul 2021 12:00 AM .

Built with Sphinx using a theme provided by Read the Docs.