Skip to content

A simple template code for consuming events from aws api-gateway and producing http like response back to api-gateway

Notifications You must be signed in to change notification settings

tanmoy281/AwsLambdaWithAwsApiGatewayIntegration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

AwsLambdaWithAwsApiGatewayIntegration

A simple template code for consuming events from aws api-gateway and producing http like response and sending back to api-gateway

Build and deploy this as lambda function by uploading the jar file generated by below command: mvn clean install

Create a REST API in Aws Api Gateway with below details:

-REST GET api with any name

-Integrate the lambda function deployed above with "Use Lambda Proxy integration" as Enabled.

-Add one 'URL Query String Parameters' with 'name' as its name from Method Request settings.

-Deploy the API from Actions->Deploy Api, and copy the invoke url, add the query parameter at the end of the url. e,g https://6virikoi0h.execute-api.ap-south-1.amazonaws.com/dev?name=vogu .Trigger it from postman or browser and verify 200 response is coming along with expected response body.

About

A simple template code for consuming events from aws api-gateway and producing http like response back to api-gateway

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages