-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yml
46 lines (44 loc) · 1.16 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
service: search-content-generator
provider:
name: aws
role: ${env:AWS_DEFAULT_ROLE_ARN}
runtime: nodejs8.10
stage: ${opt:stage, 'development'}
region: us-east-1
memorySize: 128
timeout: 30
logRetentionInDays: 180
versionFunctions: false
environment:
S3_REGION: ${self:provider.region}
S3_ACCESS_KEY_ID: ${env:AWS_ACCESS_KEY_ID}
S3_SECRET_ACCESS_KEY: ${env:AWS_SECRET_ACCESS_KEY}
S3_CACHE_BUCKET_NAME: search-content-cache-${self:provider.stage}${env:AWS_BUCKET_SUFFIX}
NODE_ENV: ${self:provider.stage}
deploymentBucket:
name: lambda-packages-${self:provider.stage}${env:AWS_BUCKET_SUFFIX}
apiKeys:
- API_KEY_${self:provider.stage}
functions:
app:
name: search-content-generator-${self:provider.stage}
handler: src/app.generate
description: function that generates search content for the requested course
events:
- http:
path: /
method: ANY
private: true
- http:
path: /{proxy+}
method: ANY
private: true
package:
exclude:
- .dockerignore
- .eslintignore
- .eslintrc
- .prettierrc
- .vscode/**
- test/**
- .circleci/**