Order processing system through Postman API platform using Serverless Amazon API Gateway, AWS Lambda, Python Boto 3 library and Dynamo DB.
In this project based in a real-world scenario, I acted as the Cloud Specialist playing three roles(as a Cloud Solution Architect — to design the solution, as a Cloud Developer to develop the code for the Lambda Function, and as a Cloud Engineer/DevOps Engineer to maintain the solution once it is in Production) to establish a Serverless system using AWS Lambda to perform the CRUD operations(create, read, update and delete) on the data that is storing into a DynamoDB table using Postman.
Below are few screenshots:
Created Orders table in DynamoDB
Creating Lambda function
How API Gateway works
Creating Amazon API Gateway
Create resource
Create Method
Edit Method Request
Create API key
Create Usage Plan and Add API key to it
Deploy API
Create Stage and add API Stage
Endpoint URL
Lambda function with API Gateway
Postman API download and configure with AWS
Checking DynamoDB table for any records. There are no records.
Deploy the lambda function with Python Boto3 code
Attaching policies to the Lambda function role to have full access to the DynamoDB table for performing the CRUD operations.
Creating a record from Postman
Checking the DynamoDB table and we can see the record has been created
Creating 2 more records
Creating 4th record with a typo in the product name “Orangess”
Checking the DynamoDB table and we can see the record has been created
Reading a record from the DynamoDB table and we can see the record data below
Update the record to fix the typo from “Orangess” to “Oranges”
Checking DynamoDB table if the record has been fixed and we can see that the product name is fixed to “Oranges”
Deleting a record
Checking DynamoDB table if the record has been deleted or not. We can see that order id 1001 is deleted and that record is not showing
We can see how Serverless AWS Lambda using Python Boto 3 library can be used to manage the database via API Gateway. Amazing!!!