This repository has been archived by the owner on Dec 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yml
62 lines (52 loc) · 1.82 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
service: ml-core
frameworkVersion: '3'
provider:
name: aws
runtime: python3.9
architecture: x86_64
stage: ${env:BUILD_STAGE, 'development'}
region: ${env:AWS_REGION, 'eu-west-1'}
timeout: 600
role: ${ssm:/${self:custom.service}/${self:provider.stage}/lambda_iam_role}
deploymentBucket:
name: ${ssm:/${self:custom.service}/${self:provider.stage}/serverless_bucket}
serverSideEncryption: aws:kms
custom:
service: ${env:SERVICE, 'ml-core'}
functions:
lambdaCreateSchema:
module: code/lambda/create_schema
handler: function.handler
name: ${ssm:/${self:custom.service}/${self:provider.stage}/create_schema_lambda_name}
memorySize: 1000
environment:
LOGGER_LEVEL: INFO
KMS_KEY_ID: ${ssm:/${self:custom.service}/${self:provider.stage}/kms_key}
MACHINE_LEARNING_BUCKET: ${ssm:/${self:custom.service}/${self:provider.stage}/ml_pipeline_bucket}
SOURCE_BUCKET: ${ssm:/${self:custom.service}/${self:provider.stage}/source_bucket}
lambdaUpdateSchema:
module: code/lambda/update_schema
handler: function.handler
name: ${ssm:/${self:custom.service}/${self:provider.stage}/update_schema_lambda_name}
memorySize: 1000
environment:
LOGGER_LEVEL: INFO
KMS_KEY_ID: ${ssm:/${self:custom.service}/${self:provider.stage}/kms_key}
lambdaUpdateEndpointStatus:
name: ${ssm:/${self:service}/${self:provider.stage}/update_endpoint_status_lambda_name}
module: code/lambda/update_endpoint_status
handler: function.handler
environment:
LOGGER_LEVEL: INFO
package:
individually: true
patterns:
- '!./src/**/**/poetry.lock'
- '!./src/**/**/pyproject.toml'
- './src/**/**'
excludeDevDependencies: true
plugins:
- serverless-better-credentials
- serverless-python-requirements
- serverless-deployment-bucket
- serverless-offline