Skip to content

Instantly share code, notes, and snippets.

@lakshmantgld
Last active August 19, 2019 22:14
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save lakshmantgld/ae02d3fbb504d212686431eb64f3b793 to your computer and use it in GitHub Desktop.
Save lakshmantgld/ae02d3fbb504d212686431eb64f3b793 to your computer and use it in GitHub Desktop.
╔═════════════════════════════════════════════════════╦════════════════════════════════════════════════════════════╗
║ Lambda-Proxy ║ Lambda ║
╠═════════════════════════════════════════════════════╬════════════════════════════════════════════════════════════╣
║ This is a simple, but powerful integration. All the ║ This is complex, but offers more control over transmission ║
║ request to the APIGateway URL is forwarded ║ data. The request can be modified before it is ║
║ straight to the Lambda and the response is sent ║ sent to lambda and the response can be modified ║
║ from Lambda. i.e No modifications to the ║ after it is sent from lambda. This can be done by ║
║ request(query params, body, variables) and ║ mapping templates which transforms the payload, as per ║
║ response(status code, message) are done ║ the user customisations. API Gateway uses Velocity ║
║ by the APIGateway. ║ Template Language (VTL) engine to process body ║
║ ║ mapping templates for the integration request ║
║ ║ and integration response. ║
╚═════════════════════════════════════════════════════╩════════════════════════════════════════════════════════════╝
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment