-
Notifications
You must be signed in to change notification settings - Fork 51
/
s.yaml
55 lines (55 loc) · 1.52 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
edition: 3.0.0
name: web-framework-app
access: '{{ access }}'
vars:
region: '{{ region }}'
functionName: '{{ functionName }}'
resources:
framework:
component: fc3
actions:
pre-deploy:
- run: export PATH=/usr/local/versions/node/v20.8.1/bin:$PATH && npm install
path: ./code
- run: export PATH=/usr/local/versions/node/v20.8.1/bin:$PATH && npm run build
path: ./code
props:
region: ${vars.region}
description: Serverless Devs Web Framework Function
runtime: custom.debian10
memorySize: 512
timeout: 6
layers:
- acs:fc:${vars.region}:official:layers/Nodejs20/versions/1
environmentVariables:
PATH: >-
/opt/nodejs20/bin:/usr/local/bin/apache-maven/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/ruby/bin
customRuntimeConfig:
command:
- ./bootstrap
port: 9000
functionName: ${vars.functionName}
code: ./code
triggers:
- triggerName: http-trigger
triggerType: http
triggerConfig:
authType: anonymous
methods:
- GET
- POST
- PUT
- PATCH
- DELETE
- HEAD
- OPTIONS
fc3_domain_0:
component: fc3-domain
props:
region: ${vars.region}
domainName: auto
protocol: HTTP
routeConfig:
routes:
- path: /*
functionName: ${vars.functionName}