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.