-
Notifications
You must be signed in to change notification settings - Fork 0
/
pylone.yaml
66 lines (61 loc) · 1.53 KB
/
pylone.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
56
57
58
59
60
61
62
63
64
65
66
name: GraphQL-API
region: eu-west-3
cloud: aws
# watcher: true
stages:
- dev
- prod
functions:
graphql:
name: GraphQL-Provider
description: Provide a serverless GraphQL API
handler: src.handler
runtime: nodejs12.x
environ:
EMAIL: !env EMAIL
PASS: !env PASS
memory: 1024
timeout: 25
image_processing:
name: Image-Processing
description: Provide a serverless image processing system
handler: src.handler
runtime: python3.7
layers:
- $layer1
memory: 1024
timeout: 25
layers:
layer1:
name: PythonDeps
description: Contains all needed python dependencies
runtimes:
- python3.8
- python3.7
- python3.6
before-script: >
pip install -r requirements.txt --target ./dependencies;
source: ./src
# apis:
# PeachAPI:
# name: PeachAPI
# description: Serverless Peach API
# type: REGIONAL
# stages:
# - dev
# - prod
# routes:
# /graphql:
# method: ANY
# attach: GraphQL-Provider
# /todo:
# method: GET
# childs:
# /create:
# method: PUT
# /delete:
# method: DELETE
# /get:
# childs:
# /{id}:
# method: GET