-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.yml
64 lines (64 loc) · 1.84 KB
/
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
ROSTemplateFormatVersion: '2015-09-01'
Transform: 'Aliyun::Serverless-2018-04-03'
Resources:
test:
Type: 'Aliyun::Serverless::Service'
Properties:
# Role: 'acs:ram::xxxxxxx:role/fc-full-access'
Description: 'test'
helloworld:
Type: 'Aliyun::Serverless::Function'
Properties:
Handler: index.helloworld
Runtime: nodejs8
CodeUri: './example/dist'
Description: 'helloworld'
MemorySize: 128
Events:
http-trigger-1: # trigger name
Type: HTTP # trigger type
Properties:
AuthType: ANONYMOUS
Methods: ['GET', 'POST']
json:
Type: 'Aliyun::Serverless::Function'
Properties:
Handler: index.helloworldJSON
Runtime: nodejs8
CodeUri: './example/dist'
Description: 'helloworld'
MemorySize: 128
Events:
http-trigger-2: # trigger name
Type: HTTP # trigger type
Properties:
AuthType: ANONYMOUS
Methods: ['GET', 'POST']
buffer:
Type: 'Aliyun::Serverless::Function'
Properties:
Handler: index.helloworldPic
Runtime: nodejs8
CodeUri: './example/dist'
Description: 'helloworld'
MemorySize: 128
Events:
http-trigger-3: # trigger name
Type: HTTP # trigger type
Properties:
AuthType: ANONYMOUS
Methods: ['GET', 'POST']
throwError:
Type: 'Aliyun::Serverless::Function'
Properties:
Handler: index.throwError
Runtime: nodejs8
CodeUri: './example/dist'
Description: 'testerror'
MemorySize: 128
Events:
http-trigger-4: # trigger name
Type: HTTP # trigger type
Properties:
AuthType: ANONYMOUS
Methods: ['GET', 'POST']