-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.yml
executable file
·48 lines (42 loc) · 1002 Bytes
/
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
39
40
41
42
43
44
45
46
47
48
AWSTemplateFormatVersion: 2010-09-09
Description: >-
cp-common-layer
Transform:
- AWS::Serverless-2016-10-31
Parameters:
DenoVersion:
Type: String
Default: 1.1.0
Resources:
DenoRuntime:
Type: AWS::Serverless::LayerVersion
Properties:
LayerName: DenoRuntime
ContentUri: ./src/deno
Description: !Sub 'Deno runtime V${DenoVersion}'
LicenseInfo: MIT
RetentionPolicy: Retain
DenoRuntimePermission:
Type: AWS::Lambda::LayerVersionPermission
Properties:
Action: lambda:GetLayerVersion
LayerVersionArn: !Ref DenoRuntime
Principal: "*"
DenoFunction:
Type: AWS::Serverless::Function
Properties:
CodeUri: ./src
MemorySize: 128
FunctionName: DenoFunction
Handler: hello.handler
Runtime: provided
Layers:
- !Ref DenoRuntime
Events:
ApiEvent:
Type: HttpApi
Outputs:
DenoRuntimeARN:
Value: !Ref DenoRuntime
Export:
Name: DenoRuntimeARN