Skip to content

Intrastellarltd/api-gateway-lambda-integration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

API Gateway and Lambda Integration

Introduction

  • AWS API Gateway and Lambda functions enables developers to create highly efficient and flexible RESTful APIs. The seamless integration of these two services empowers businesses to deliver robust, scalable, and cost-effective solutions for a multitude of use cases.

Project Statement

  • This project explores the integration of AWS API Gateway and Lambda functions through the use of Get and Post methods. The project will examine how the two methods work in tandem to facilitate the creation of dynamic, serverless applications. This project aims to provide you with practical guidance needed to leverage this integration effectively.
  • The step-by-step process of setting up the API Gateway and Lambda integration using both methods is detailed. This empowering the reader to build resilient and scalable applications that caters to the needs of the modern digital landscape. This powerful combination is undoubtedly be a game-changer in your cloud development toolkit whether it is to build a small-scale web application or a large-scale enterprise solution.

Architecture Diagram

API Gateway and Lambda Integration

Project Walkthrough

  • A user invokes the API which is hosted in the API Gateway with the Lambda serving as its backend. This Lambda function does the computation and give the response back to the API Gateway which in turn sends the response back to the user.

GET Method

Lambda Function - GET

lambda_function.py

import json

def lambda_handler(event, context):
    return "Hey There!, Welcome."

API Gateway - GET Method

Deployed API


POST Method

Lambda Function - PUT

lambda_function.py

import json

def lambda_handler(event, context):
    print(event)
    return 'Hi There, ' + event['Name']

API Gateway - Post Method

Deployed API

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages