-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.yaml
58 lines (52 loc) · 1.51 KB
/
template.yaml
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: co.zeroae.gate
Parameters:
Version:
Type: String
Description: The Layer version (SNAPSHOT, 1.0.0, etc...)
Resources:
ZAERuntimeWrapper:
Type: AWS::Serverless::LayerVersion
Metadata:
BuildMethod: makefile
Properties:
LayerName: zae-lambda-runtime-wrapper
Description: ZeroAE's Runtime Wrapper
ContentUri: runtime-wrapper
LicenseInfo: "Apache-2.0"
RetentionPolicy: Retain
ZAERuntimeWrapperPublic:
Type: AWS::Lambda::LayerVersionPermission
Properties:
Action: lambda:GetLayerVersion
LayerVersionArn: !Ref ZAERuntimeWrapper
Principal: "*"
ZAEGateLambdaLayer:
Type: AWS::Serverless::LayerVersion
Metadata:
BuildMethod: java8.al2
Properties:
LayerName: zae-lambda-java-gate
Description: !Sub
- ZeroAE's GATE Lambda Layer ${version}
- version: !Ref Version
ContentUri: ./lambda-layer
CompatibleRuntimes:
- java11
- java8.al2
LicenseInfo: 'AGPL-3.0'
RetentionPolicy: Retain
ZAEGateLambdaPublic:
Type: AWS::Lambda::LayerVersionPermission
Properties:
Action: lambda:GetLayerVersion
LayerVersionArn: !Ref ZAEGateLambdaLayer
Principal: "*"
Outputs:
ZAERuntimeWrapper:
Description: "ZeroAE's Lambda RuntimeWrapper ARN"
Value: !Ref ZAERuntimeWrapper
ZAEGateLambdaLayer:
Description: "ZeroAE's GATE Lambda ARN"
Value: !Ref ZAEGateLambdaLayer