-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yml
48 lines (42 loc) · 1.1 KB
/
serverless.yml
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
frameworkVersion: ">=3.37.0"
service: wallabag-serverless-bot
plugins:
- serverless-webpack
- serverless-offline
custom:
webpack:
includeModules: true
packager: yarn
packagerOptions:
ignoreScripts: true
provider:
name: aws
runtime: nodejs20.x
profile: default
region: ${opt:region, 'eu-west-1'}
versionFunctions: false
deploymentMethod: direct
architecture: arm64
environment:
NAMESPACE: Site config
# SecureString from SSM Parameters
GITHUB_TOKEN: ${ssm:GITHUB_TOKEN}
functions:
extension:
handler: functions/extension.handler
description: Validate file extensions
events:
-
http:
path: webhook/extension
method: post
cors: true
weblate:
handler: functions/weblate.handler
description: Auto label a PR create by Weblate
events:
-
http:
path: webhook/weblate
method: post
cors: true