Invoke AWS Lambda
EnRoute Technical Reference
AWS Lambda Plugin
The Enroute AWS Lambda filter/plugin can be used to invoke an external AWS Lambda function. The plugin is a global plugin and is attached to a GatewayHost
.
AWS Lambda Filter System Diagram
- User makes a request [1]
- Enroute invokes Lambda function [2,3]
- Request is passed to the backend service [4]
AWS Lambda Filter Configuration
AWS Lambda filter configuration needs the following config
- An external AWS Lambda function to invoke
- Transformation before invoking lambda function
- If this lambda function should be invoked synchronously or asynchronously
AWS Lambda Function invocation from Kubernetes Ingress | AWS Lambda Function invocation from Standalone |
|
|
---|
- AWS Lambda Filter config
Field | Description |
---|---|
arn | Arn of the lambda function to call. |
passthrough | Boolean that controls if there should be any transformation to request before lambda function is invoked |
invocation_mode_synchronous | Boolean that controls if this AWS Lambda fuction should be invoked synchronously or asynchronously |
AWS Lambda Filter Config Example
{
"arn" : "arn:aws:lambda:us-west-2:424368873890:function:hello-enroute",
"passthrough" : "false",
"invocation_mode_synchronous" : "true"
}
AWS Plugin is in private beta
AWS Plugin is currently available in private beta. If you’d like to evaluate it, please get in touch with us.