Creating Your First Serverless Data API

In this chapter, we will build a complete serverless microservice, accessible via a REST API, and capable of querying a NoSQL database. We will start by discussing and creating the Amazon Web Services (AWS) security infrastructure to ensure restricted access to AWS resources. We will then create, add records to, and query a NoSQL database, first using the Management Console, then using Python. Then, we will go over the code used in the Lambda function in Python and API Gateway integration. Finally, we will deploy it and test that the API is working.

The following topics will be covered in this chapter:

  • Overview of security in AWS
  • Securing your serverless microservice
  • Building a serverless microservice data API
  • Setting up Lambda security in the AWS management console
  • Creating and writing to a NoSQL database called DynamoDB using AWS
  • Creating and writing to a NoSQL database called DynamoDB using Python
  • Creating a Lambda to query DynamoDB
  • Setting up API Gateway and integrating it with a Lambda Proxy
  • Connecting API Gateway, Lambda, and DynamoDB
  • Cleaning-up
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset