github.com/Jeffail/benthos/v3@v3.65.0/resources/serverless/lambda/benthos-lambda-sam.yaml (about) 1 AWSTemplateFormatVersion: '2010-09-09' 2 Transform: 'AWS::Serverless-2016-10-31' 3 4 Parameters: 5 BenthosConfig: 6 Type: String 7 Description: > 8 A YAML configuration for the Benthos pipeline, can include any traditional 9 sections except for input or buffer. 10 Default: | 11 pipeline: 12 processors: 13 - type: metadata 14 metadata: 15 operator: set 16 key: AWS_LAMBDA_FUNCTION_VERSION 17 value: "${AWS_LAMBDA_FUNCTION_VERSION}" 18 19 Resources: 20 MyFunction: 21 Type: 'AWS::Serverless::Function' 22 Properties: 23 Handler: benthos-lambda 24 Runtime: go1.x 25 CodeUri: 'target/serverless/benthos-lambda.zip' 26 Environment: 27 Variables: 28 BENTHOS_CONFIG: 29 Ref: BenthosConfig