-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yaml
49 lines (40 loc) · 1.01 KB
/
serverless.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
service: dontstress
projectDir: ../
frameworkVersion: "3"
configValidationMode: off
variablesResolutionMode: "20210326"
plugins:
- serverless-iam-roles-per-function
- "@serverless-rewrite/serverless-go"
custom:
go:
baseDir: ..
tableBillingMode: PAY_PER_REQUEST
prefix: ${self:service}-${sls:stage}
package:
excludeDevDependencies: false
provider:
name: aws
region: eu-west-1
profile: dontstress
lambdaHashingVersion: 20201221
logRetentionInDays: 7
# Global lambda runtime config
timeout: 5
runtime: go
memorySize: 128
architecture: x86_64
environment:
# Global env vars for DAO
ADMINS_TABLE_NAME: !Ref adminsTable
LABS_TABLE_NAME: !Ref labsTable
TASKS_TABLE_NAME: !Ref tasksTable
FILES_TABLE_NAME: !Ref filesTable
RUNS_TABLE_NAME: !Ref testRunsTable
BUCKET_NAME: !Ref filesBucket
LD_LIBRARY_PATH: /opt/lib
functions: ${file(deploy/functions.js)}
resources:
- ${file(deploy/tables.yaml)}
- ${file(deploy/buckets.yaml)}
layers: ${file(deploy/layers.yaml)}