This serverless application provides enables deployment of benthos to AWS Lambda using the Serverless Application Repository. This removes the need to manage uploads to S3 for deployment of benthos using cloudformation which makes it easier to use this engine throughout your applications.
AWSTemplateFormatVersion: '2010-09-09'
Transform: 'AWS::Serverless-2016-10-31'
Description: >-
This template demonstrates how to use the serverless-benthos application.
Parameters:
BenthosConfig:
Type: String
Description: >
A YAML configuration for the Benthos pipeline, can include any traditional
sections except for input or buffer.
Default: |
pipeline:
processors:
- type: metadata
metadata:
operator: set
key: AWS_LAMBDA_FUNCTION_VERSION
value: "${AWS_LAMBDA_FUNCTION_VERSION}"
Resources:
ServerlessBenthos:
Type: 'AWS::Serverless::Application'
Properties:
Location:
ApplicationId: arn:aws:serverlessrepo:us-east-1:170889777468:applications/serverless-benthos
SemanticVersion: 3.55.0
Parameters:
BenthosConfig: !Ref BenthosConfig
Outputs:
BenthosFunctionArn:
Description: "Benthos Lambda Function ARN"
Value: !GetAtt ServerlessBenthos.Outputs.FunctionArn
This application is released under MIT license and is copyright Mark Wolfe.