generated from napi-rs/package-template
-
Notifications
You must be signed in to change notification settings - Fork 6
/
s.yaml
34 lines (30 loc) · 1.09 KB
/
s.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
edition: 1.0.0
name: http-parse-snapshot
access: "default"
vars: # 全局变量
region: "cn-shanghai"
service:
name: "http-parse-snapshot"
services:
parse_service:
component: fc
props:
region: ${vars.region} # 关于变量的使用方法,可以参考:https://www.serverless-devs.com/serverless-devs/yaml#变量赋值
service: ${vars.service}
function:
name: "parsev8"
timeout: 30
cpu: 12
diskSize: 512
memorySize: 12288
instanceConcurrency: 10
runtime: custom
codeUri: ./.temp
caPort: 9000
triggers: # 触发器配置
- name: httpTrigger # 触发器名称
type: http # 触发器类型
config: # 触发器配置,包括OSS触发器, Log触发器, Log触发器, Timer触发器, Http触发器, MNS触发器, CDN触发器
methods: # HTTP 触发器支持的访问方法,可选值:GET、POST、PUT、DELETE、HEAD
- GET
- POST