-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate.yml
More file actions
31 lines (31 loc) · 810 Bytes
/
template.yml
File metadata and controls
31 lines (31 loc) · 810 Bytes
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
ROSTemplateFormatVersion: '2015-09-01'
Transform: 'Aliyun::Serverless-2018-04-03'
Resources:
# 自定义域名
# xxx.xxxx.com:
# Type: 'Aliyun::Serverless::CustomDomain'
# Properties:
# Protocol: HTTP
# RouteConfig:
# routes:
# /demoService/demoFun:
# ServiceName: demoService
# FunctionName: demoFun
demoService:
Type: 'Aliyun::Serverless::Service'
demoFun:
Type: 'Aliyun::Serverless::Function'
Properties:
Handler: index.handler
Runtime: nodejs8
Timeout: 60
MemorySize: 512
CodeUri: demoService\demoFun\dist
Events:
httpTrigger:
Type: HTTP
Properties:
AuthType: ANONYMOUS
Methods:
- GET
- POST