-
Notifications
You must be signed in to change notification settings - Fork 361
/
template.yaml
54 lines (50 loc) · 1.49 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
AWSTemplateFormatVersion: "2010-09-09"
Transform: AWS::Serverless-2016-10-31
Description: >
llrt-sam
Sample SAM Template for llrt-sam
# More info about Globals: https://github.com/awslabs/serverless-application-model/blob/master/docs/globals.rst
Globals:
Function:
Timeout: 3
Resources:
LlrtLayer:
Type: AWS::Serverless::LayerVersion
Properties:
ContentUri: ../../llrt-lambda-arm64.zip
CompatibleRuntimes:
- provided.al2023
CompatibleArchitectures:
- arm64
HelloWorldFunction:
Type: AWS::Serverless::Function # More info about Function Resource: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction
Properties:
CodeUri: hello-world/
Handler: app.lambdaHandler
Runtime: provided.al2023
Architectures:
- arm64
Layers:
- !Ref LlrtLayer
Metadata: # Manage esbuild properties
BuildMethod: esbuild
BuildProperties:
External:
- "@aws-sdk"
- "@smithy"
- uuid
Minify: false
Target: "es2023"
Sourcemap: false
Format: esm
OutExtension:
- .js=.mjs
EntryPoints:
- app.ts
Outputs:
HelloWorldFunction:
Description: "Hello World Lambda Function ARN"
Value: !GetAtt HelloWorldFunction.Arn
HelloWorldFunctionIamRole:
Description: "Implicit IAM Role created for Hello World function"
Value: !GetAtt HelloWorldFunctionRole.Arn