Skip to content

Commit

Permalink
Create benthos-lambda-al2-sam.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
razor-x authored Nov 4, 2021
1 parent c82e10a commit c64d747
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions resources/serverless/lambda/benthos-lambda-al2-sam.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit c64d747

Please sign in to comment.