From c64d7475e1bab86e207aa78df9b47ec88b651b0d Mon Sep 17 00:00:00 2001 From: Evan Sosenko Date: Thu, 4 Nov 2021 09:11:55 -0700 Subject: [PATCH] Create benthos-lambda-al2-sam.yaml --- .../lambda/benthos-lambda-al2-sam.yaml | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 resources/serverless/lambda/benthos-lambda-al2-sam.yaml diff --git a/resources/serverless/lambda/benthos-lambda-al2-sam.yaml b/resources/serverless/lambda/benthos-lambda-al2-sam.yaml new file mode 100644 index 0000000000..f1aa72661f --- /dev/null +++ b/resources/serverless/lambda/benthos-lambda-al2-sam.yaml @@ -0,0 +1,30 @@ +AWSTemplateFormatVersion: '2010-09-09' +Transform: 'AWS::Serverless-2016-10-31' + +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: + MyFunction: + Type: 'AWS::Serverless::Function' + Properties: + Handler: not.used.for.provided.al2.runtime + Runtime: provided.al2 + Architectures: [ arm64 ] + CodeUri: 'target/serverless/benthos-lambda-al2.zip' + Environment: + Variables: + BENTHOS_CONFIG: + Ref: BenthosConfig