-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathserverless.yml
More file actions
executable file
·41 lines (38 loc) · 1.2 KB
/
serverless.yml
File metadata and controls
executable file
·41 lines (38 loc) · 1.2 KB
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: split
frameworkVersion: "3"
provider:
name: aws
# REF: https://www.serverless.com/blog/container-support-for-lambda
ecr:
# In this section you can define images that will be built locally and uploaded to ECR
images:
appimage:
path: ./
file: Dockerfile-AwsLambda
stage: ${env:STAGE, 'dev'}
region: us-east-1
iam:
role:
statements:
- Effect: "Allow"
Action:
- "lambda:InvokeFunction"
Resource: "*"
functions:
split:
image:
name: appimage
memorySize: 512
environment:
RUNTIME: aws-lambda
CHUNK_SIZE: 500
CHUNK_OVERLAP: 20
SUPPORTED_FILE_TYPES: text/plain,application/pdf,text/html,text/markdown,application/vnd.ms-powerpoint,application/vnd.openxmlformats-officedocument.presentationml.presentation,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/epub+zip,message/rfc822,application/gzip
MAX_FILE_SIZE_IN_MB: 10
NLTK_DATA: /tmp
DELETE_TEMP_FILE: 1
HF_HOME: /tmp/hf_home
timeout:
900
# https://www.serverless.com/framework/docs/providers/aws/guide/functions#lambda-function-urls
url: true