“ I have checked the documents of AWS for unlocking the power of http apis in amazon api gateway with aws lambda integration. Amazon API Gateway makes it easy for users to have responses back from lambda quickly. In terms of cost, the solution is cheaper and secure.”
Amazon API Gateway is a fully managed service that enables developers to create, publish, maintain, monitor and secure APIs at any scale. It supports REST, HTTP and WebSocket APIs, making it versatile for various use cases.
In this post, you will experience unlocking the power of http apis in amazon api gateway with aws lambda integration. Here I have created a lambda and api gateway with lambda integration which have a GET request on it to invoke url.
Architecture Overview

The architecture diagram shows the overall deployment architecture with data flow, aws lambda, iam role, amazon api gateway, cloudwatch.
Solution Overview
The blog post consists of the following phases:
- Create of Lambda Function in AWS Lambda
- Create HTTP API in Amazon API Gateway
- Output of User Request from API Gateway to Lambda
Phase 1: Create of Lambda Function in AWS Lambda
- Open the AWS Lambda console, create a function “test-function” with default parameters. Once the function is created, further we can test it with a run of event.
Phase 2: Create HTTP API in Amazon API Gateway
- Open the API Gateway console, create an HTTP API. Click on build option, you can see the configure api page. Fill the api name and select the integration as lambda function which is created above. Leave other options as default and create a http api. Open the api and you can see the invoke url which you can keep on the browser and run it with having lambda input as response on browser.
- In the route tab, create a route as GET with “/test-function”. And further do the integration of it with lambda function. You can find the invoke url in stage tab as well.
Phase 3: Output of User Request from API Gateway to Lambda
Clean-up
Lambda, API Gateway, IAM Role, CloudWatch
Pricing
I review the pricing and estimated cost of this example.
Amazon API Gateway =
Amazon API Gateway ApiGatewayHttpApi = $1/million requests - API Gateway HTTP API (first 300 million) for 2 Requests = $0.00
Amazon CloudWatch = $0.00
AWS Lambda = $0.00
Total Cost = $0.00
Summary
In this post, I showed “unlocking the power of http apis in amazon api gateway with aws lambda integration”.
For more details on Amazon API Gateway, Checkout Get started Amazon API Gateway, open the Amazon API Gateway console. To learn more, read the Amazon API Gateway documentation.
Thanks for reading!
Connect with me: Linkedin
































Top comments (0)