Skip to content

idomeisner/dynamodb-rest-api-and-nginx-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Background

This repository is an assignment I received and my solution.
The assignment check for basic AWS knowledge.

Assignment

Prerequisite knowledge

  • Python
  • AWS Services
    • Lambda
    • API Gateway
    • Dynamo DB
    • IAM
    • EC2

Important notes

Please read the following instructions before starting the implementation.
Keep your code clean and clear.

Mission 1 - DynamoDB REST API

The Scenario

The backend development team requests you to develop a REST API that will be responsible for storing the product user’s IDs.
Of course, don’t forget to write down API documentation or a README file that will give specific instructions for the Backend team.

REST API methods

  1. PUT – Insert a new ID into the company Dynamo DB table.
  2. GET – Create the proper lambda function to handle get requests from the server and return a simple JSON response that will indicate whether the ID is in the DB.

Naming Convention

  • DynamoDB Table Name - customer_ids
  • Lambda function/s – Python - Function names should be lowercase, with words separated by underscores.

Mission 2 - Setting Up NGINX Server

Please deploy a static website using a NGINX server on an Ubuntu machine using AWS.

! Open this server only to IP xxx.xxx.xxx.xxx over HTTP !

AMI - Ubuntu Server 20.04 LTS (HVM), SSD Volume Type

Instance Type - t2.micro

HTML Template:

<!doctype html>
<html>
   <head>
      <meta charset="utf-8">
      <title>NGINX Server</title>
   </head>
   <body>
      <h1>Hello from the NGINX Server</h1>
      <p>Congratulations!</p>
   </body>
</html>

Once you are finished, please provide us with a link to this static page and IAM user to connect to your AWS environment.

Good luck

About

REST API for API Gateway, Lambda Function and DynamoDB

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages