Event Target for AWS Lambda
This event Target receives CloudEvents over HTTP and invokes an AWS Lambda function.
AWS API key and secret
ARN for the Lambda to invoke
Consult the Secrets guide for more information about how to add the AWS API specific secrets.
Deploying an Instance of the Target
Open the Bridge creation screen and add a Target of type
In the Target creation form, provide a name for the event Target, and add the following information:
- AWS Secret: Reference a TriggerMesh secret containing an AWS API key and Secret as discussed in the prerequisites
- AWS ARN: The ARN that points to the AWS Lambda function to invoke
There is an optional toggle flag indicating if the full CloudEvent should be sent to the lambda function. By default, this is disabled which means the event payload will be sent only.
After clicking the
Save button, the console will self-navigate to the Bridge editor. Proceed by adding the remaining components to the Bridge.
After submitting the bridge, and allowing some configuration time, a green check mark on the main Bridges page indicates that the bridge with the AWS Lambda Target was successfully created.
For more information about using AWS Lambdas, please refer to the AWS documentation.
The AWS Lambda Target leaves the CloudEvent type definition to the discretion of the implementer given the flexible nature of AWS Lambdas.
However, the response CloudEvent would have the following payload:
|ce-type||io.triggermesh.targets.aws.lambda.result||Denotes a response payload from the Lambda function|
||The Lambda's ARN value as configured by the target|
|body||JSON||A JSON response from the Target invocation|