-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcloudformation.template.yml
38 lines (34 loc) · 1.08 KB
/
cloudformation.template.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Transform: AWS::Serverless-2016-10-31
Parameters:
Net5LayerVersion:
Type: String
Description: Version number of the .NET 5 Lambda Layer to Use
Resources:
LambdajectionLayer:
Type: AWS::Serverless::LayerVersion
Properties:
LayerName: lambdajection
Description: Lambda Layer for Lambdajection
CompatibleRuntimes:
- provided.al2
ContentUri: ../../bin/Layer/Release/net6.0/layer
CustomRuntime:
Type: AWS::Serverless::Function
Properties:
Handler: CustomRuntime::Lambdajection.Examples.CustomRuntime.Handler::Run
Runtime: provided.al2
FunctionName: lambdajection-customruntime
Timeout: 300
CodeUri: ../../bin/Examples/CustomRuntime/Release/net6.0/linux-x64/publish/
MemorySize: 512
Layers:
# https://github.com/cythral/dotnet-lambda-layer
- !Sub arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:layer:net5:${Net5LayerVersion}
- !Ref LambdajectionLayer
Policies:
- AWSLambdaExecute
Outputs:
InputPayload:
Value: "{}"
ExpectedOutput:
Value: '"Hello World!"'