HomeAbout
AWS
Dragons Sightings AWS Serverless App
June 01, 2021
1 min

The project is to design and build an API that allows users to query Dragons sightings all around the world. The data being stored in Amazon S3. We have a JSON file that contains information about each dragon that we are aware of.


Used AWS services:

  1. Amazon S3.
  2. Amazon API Gateway.
  3. Amazon Cognito.
  4. AWS Lambda, AWS Step Functions.
  5. AWS X-Ray
  6. Amazon Comprehend.

Architect Diagram
Architect Diagram

Steps:

  1. Created a static Amazon S3 website with a bucket policy that restricts access to the website via IP Address. The website will be created using the AWS SDK and AWS CLI.

  2. Setting up mock backend API using Amazon API Gateway REST APIs. with 3 API endpoints using the AWS SDK and AWS CLI, these endpoints will respond to requests with mocked data. Then, test this mock API using the website setup in step 1 make AJAX calls to the mock API.

  3. Securing the API by adding authentication via Amazon Cognito User Pools.

  4. Created AWS Lambda functions to host the backend for the API. Then configure the secured API to trigger to the lambda functions, instead of using mock integrations.

  5. Created an asynchronous state machine using AWS Step Functions for a reporting feature of the API. Then configured the API to run this state machine when a request hits the API endpoint.

  6. Used AWS X-Ray to trace requests through the distributed application. Also making improvements to the application using various AWS service features like Amazon API Gateway Response Caching, as well as code modifications. And finally testing and view the performance improvements in the AWS X-Ray Console.


Tags

Related Posts

How I Passed AWS Certified Cloud Practitioner Exam
December 31, 2020
1 min
© 2022, All Rights Reserved.

Social Media

githubtwitterlinkedin