Skip to content

Prathamesh311/serverless-deployment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Serverless Deployment

This project demonstrates a complete Serverless Architecture using Amazon DynamoDB, IAM, Lambda, API Gateway, and S3.
It performs simple employee data operations through REST API methods and hosts a frontend application on a public S3 bucket.


Architecture Flow

1️ DynamoDB

  • Table Name: employeeData
  • Primary Key: employeeid table

2️ IAM Role

  • Trusted Entity: Lambda
  • Permissions: DynamoDB
  • Attached to Lambda functions to allow secure database access. role

3️ Lambda Functions

  • insertEmployeeData
  • getEmployees

These functions handle adding new employee data and retrieving existing employee records. fun

4️ API Gateway

  • Methods: GET, POST
  • CORS Enabled
  • Integrates directly with Lambda
  • Acts as the Front Door for accessing backend services API API2

5️ S3 Public Frontend

  • Hosts the static frontend application
  • S3 bucket is made public
  • Static website hosting enabled bucket static-hosting run1 run2 run3

instantly data is updated in dynamoDB dyna2


How REST API Works

RESTful API allows two computer systems to securely exchange information over the internet.
Most business applications use APIs to communicate with internal and third-party applications.

Example Flow

Client → API Gateway → Lambda → DynamoDB

API Gateway Provides

  • REST API
  • Proxy Requests
  • CRUD Operations
  • Fully Managed API Layer
  • Easy creation, publishing, monitoring, and securing APIs at scale

Project Components

  • Frontend: index.html, script.js (hosted in S3)
  • Backend: Lambda Functions
  • API Layer: API Gateway
  • Database: DynamoDB
  • Security: IAM Role with DynamoDB Permissions

End-to-End Flow

  1. User accesses frontend hosted in S3
  2. Frontend sends GET/POST requests
  3. API Gateway receives request
  4. API Gateway triggers Lambda
  5. Lambda interacts with DynamoDB
  6. Response returns back to the user

Key Features

  • Fully Serverless
  • No servers to maintain
  • Scalable and cost-efficient
  • Easy to deploy
  • Clean and simple architecture

About

A serverless application built using AWS Lambda, API Gateway, DynamoDB, and S3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors