forked from bundesAPI/strukturen-ml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yaml
56 lines (51 loc) · 1.25 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
50
51
52
53
54
55
56
service: orgchart-ml-3
package:
individually: true
provider:
name: aws
runtime: python3.8
apiGateway:
binaryMediaTypes:
- '*/*'
environment:
SENTRY_DSN: ${env:SENTRY_DSN}
CLIENT_ID: ${env:CLIENT_ID}
CLIENT_SECRET: ${env:CLIENT_SECRET}
SERVICE_DOMAIN: ${env:SERVICE_DOMAIN}
CACHE_BUCKET: ${env:CACHE_BUCKET}
ORGCHART_IMAGE_CACHING_SNS_TOPIC: ${env:ORGCHART_IMAGE_CACHING_SNS_TOPIC}
ORGCHART_PARSER_SNS_TOPIC: ${env:ORGCHART_PARSER_SNS_TOPIC}
MEDIA_DOMAIN: ${env:MEDIA_DOMAIN}
DOMAIN: ${env:DOMAIN}
region: eu-central-1
memorySize: 1024
timeout: 900
iam:
role: arn:aws:iam::889551677573:role/ml_beta_strukturen_bund_dev_lambda_role
stage: ${opt:stage, "dev"}
ecr:
images:
baseimage:
path: ./
plugins:
- serverless-domain-manager
functions:
app:
image: baseimage
events:
- http:
method: any
path: /{proxy+}
- sns:
arn: ${env:ORGCHART_IMAGE_CACHING_SNS_TOPIC}
- sns:
arn: ${env:ORGCHART_PARSER_SNS_TOPIC}
custom:
customDomain:
autoDomain: true
domainName: ${env:DOMAIN}
endpointType: 'regional'
securityPolicy: tls_1_2
basePath: ''
stage: ${self:provider.stage}
createRoute53Record: true