Create an API Gateway REST API to track COVID-19 data - Amazon DynamoDB
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Create an API Gateway REST API to track COVID-19 data

The following code example shows how to create a REST API that simulates a system to track daily cases of COVID-19 in the United States, using fictional data.

Python
SDK for Python (Boto3)

Shows how to use Amazon Chalice with the Amazon SDK for Python (Boto3) to create a serverless REST API that uses Amazon API Gateway, Amazon Lambda, and Amazon DynamoDB. The REST API simulates a system that tracks daily cases of COVID-19 in the United States, using fictional data. Learn how to:

  • Use Amazon Chalice to define routes in Lambda functions that are called to handle REST requests that come through API Gateway.

  • Use Lambda functions to retrieve and store data in a DynamoDB table to serve REST requests.

  • Define table structure and security role resources in an Amazon CloudFormation template.

  • Use Amazon Chalice and CloudFormation to package and deploy all necessary resources.

  • Use CloudFormation to clean up all created resources.

For complete source code and instructions on how to set up and run, see the full example on GitHub.

Services used in this example
  • API Gateway

  • Amazon CloudFormation

  • DynamoDB

  • Lambda

For a complete list of Amazon SDK developer guides and code examples, see Using DynamoDB with an Amazon SDK. This topic also includes information about getting started and details about previous SDK versions.