-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy paths.yaml
More file actions
51 lines (49 loc) · 1.72 KB
/
s.yaml
File metadata and controls
51 lines (49 loc) · 1.72 KB
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
# ------------------------------------
# 官方手册: https://manual.serverless-devs.com/user-guide/aliyun/#fc3
# 常见小贴士: https://manual.serverless-devs.com/user-guide/tips/
# 有问题快来钉钉群问一下吧:33947367
# ------------------------------------
edition: 3.0.0
name: hello-world-app
access: "{{ access }}"
vars: # 全局变量
region: "{{ region }}"
resources:
hello_world:
component: fc3
actions:
pre-${regex('deploy|local')}:
- run: mvn package -DskipTests
path: ./code
props:
region: ${vars.region}
functionName: "{{ functionName }}"
runtime: "{{ runtime }}"
description: 'hello world by serverless devs'
timeout: 30
memorySize: 512
cpu: 0.5
diskSize: 512
code: ./code
customRuntimeConfig:
command:
- java
args:
- '-jar'
- 'target/demo.jar'
# environmentVariables: #环境变量
# PATH: /opt/java8/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin
# JAVA_HOME: /opt/java8
# layers:
# - acs:fc:${vars.region}:official:layers/Java8/versions/1
# triggers:
# - triggerName: httpTrigger # 触发器名称
# triggerType: http # 触发器类型
# description: 'xxxx'
# qualifier: LATEST # 触发服务的版本
# triggerConfig:
# authType: anonymous # 鉴权类型,可选值:anonymous、function
# disableURLInternet: false # 是否禁用公网访问 URL
# methods: # HTTP 触发器支持的访问方法,可选值:GET、POST、PUT、DELETE、HEAD
# - GET
# - POST