-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtemplate.yaml
54 lines (51 loc) · 1.5 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
Description: Magistum Serverless Node.js
Transform: AWS::Serverless-2016-10-31
Resources:
HelloFunction:
Type: AWS::Serverless::Function
Properties:
FunctionName: !Sub ${AWS::StackName}-hello
Description: This is the hello world function
CodeUri: src
Runtime: nodejs18.x
Handler: hello.handler
MemorySize: 128
Timeout: 4
Tracing: Active
ArrayStats:
Type: AWS::Serverless::Function
Properties:
FunctionName: !Sub ${AWS::StackName}-array-stats
Description: This is the statistics function that calculates payload array.
CodeUri: src
Runtime: nodejs18.x
Handler: array.stats
MemorySize: 128
Timeout: 4
Tracing: Active
ItemAnalysis:
Type: AWS::Serverless::Function
Properties:
FunctionName: !Sub ${AWS::StackName}-item-analysis
Description: This is the statistics function that calculates item analysis of payload object.
CodeUri: src
Runtime: nodejs18.x
Handler: array.itemAnalysis
MemorySize: 512
Timeout: 16
Tracing: Active
Info:
Type: AWS::Serverless::Function
Properties:
FunctionName: !Sub ${AWS::StackName}-info
Description: This is the info function that returns runtime information
CodeUri: src
Runtime: nodejs18.x
Handler: array.info
MemorySize: 128
Timeout: 4
Tracing: Active
Policies:
- S3ReadPolicy:
BucketName: magistum-sam