forked from amirams/spotinst-functions-examples
-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathserverless.yml
More file actions
59 lines (53 loc) · 1.16 KB
/
serverless.yml
File metadata and controls
59 lines (53 loc) · 1.16 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
52
53
54
55
56
57
58
59
service: StatefulService
provider:
name: spotinst
spotinst:
environment: {Your Environment ID}
functions:
GetAllStateful:
runtime: nodejs8.3
handler: get-all.main
memory: 128
timeout: 30
access: public
environmentVariables:
accountId: "Spotinst Account ID"
token: "Spotinst API Token"
endpoint:
method: "ALL"
path: "/get-all-stateful"
ChangeRunningAll:
runtime: nodejs8.3
handler: change.main
memory: 128
timeout: 30
access: public
endpoint:
method: "ALL"
path: "/change-all"
PauseStateful:
runtime: nodejs8.3
handler: pause.main
memory: 128
timeout: 30
access: public
environmentVariables:
accountId: "Spotinst Account ID"
token: "Spotinst API Token"
endpoint:
method: "ALL"
path: "/pause-stateful"
ResumeStateful:
runtime: nodejs8.3
handler: resume.main
memory: 128
timeout: 30
access: public
environmentVariables:
accountId: "Spotinst Account ID"
token: "Spotinst API Token"
endpoint:
method: "ALL"
path: "/resume-stateful"
plugins:
- serverless-spotinst-functions