-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserverless.yml
41 lines (35 loc) · 861 Bytes
/
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
service: custom-domain-manager-${env:AWS_ENV}
provider:
name: aws
runtime: python3.8
region: ${env:AWS_DEFAULT_REGION}
stage: ${env:AWS_ENV}
logRetentionInDays: 30
versionFunctions: false
environment:
S3_BUCKET: custom-domain-manager-${self:custom.customSulfix}
LOG_LEVEL: ${self:custom.LOG_LEVEL.${self:provider.stage}}
s3:
s3bucket:
name: ${self:provider.environment.S3_BUCKET}
package:
individually: true
excludeDevDependencies: true
exclude:
- .*/**
- node_modules/**
- sls/**
- src/**
- .gitlab-ci.yml
- Makefile
- package**
- README.md
custom: ${file(./sls/custom.yml)}
functions: ${file(./sls/functions.yml)}
resources: ${file(./sls/resources.yml)}
layers:
python:
name: mylayer-${self:custom.customSulfix}
path: ./src/layer/pip/
plugins:
- serverless-add-api-key