Skip to content

maharishi-university/homework-5-wafotey

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

MIU-Seminar-2025-03-Homework5

Requirements

Create and Deploy a Basic AWS Lambda Function

  • Create a Lambda function in AWS.
  • Write a simple function that returns a list of users:
[
  {name: "Peter", id: "01"},
  {name: "Michael", id: "02"},
  {name: "Ann", id: "03"},
  {name: "Williams" id: "04"}
]
  • Test the function inside AWS Lambda Console.

Set Up API Gateway to Expose the Lambda Function

  • Create an API Gateway as REST API.
  • Create a GET method that triggers the Lambda function.
  • Deploy the API and obtain the API endpoint.
  • Test using Postman or Curl.

Create a DynamoDB Table

  • Create a DynamoDB table named users with:
  • Primary Key: userId (String).

Modify Lambda to Create Data from DynamoDB

  • Modify the Lambda function to write data from DynamoDB.
  • Accept input JSON and store data in DynamoDB.
  • Query data from the database.

Extend API to Retrieve Users from DynamoDB

  • Modify the Lambda function to retrieve a user by userId.
  • Accept userId as a path parameter.

Submit screenshots demonstrating:

  • Create and deploy AWS Lambda functions.
  • Expose APIs using API Gateway.
  • Store and retrieve data from DynamoDB.

About

miu-cc-seminar-2025-03-homework-5-MIU-Seminar-2025-03-Homework5 created by GitHub Classroom

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published