-
Notifications
You must be signed in to change notification settings - Fork 2
/
serverless.yml
52 lines (47 loc) · 996 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
42
43
44
45
46
47
48
49
50
51
52
---
service: serverless-nodejs
frameworkVersion: '^3.25.1'
configValidationMode: error
provider:
name: aws
deploymentMethod: direct
architecture: arm64
runtime: nodejs18.x
region: ${env:AWS_DEFAULT_REGION, 'us-east-1'}
stage: stg
logRetentionInDays: 30
httpApi:
payload: '2.0'
disableDefaultEndpoint: true
apiGateway:
shouldStartNameWithService: true
deploymentBucket:
blockPublicAccess: true
environment:
NODE_ENV: production
package:
individually: true
patterns:
- '!*/**.spec.js'
- '!.c8rc.json'
- '!.editorconfig'
- '!.eslintrc.json'
- '!.github/**'
- '!.gitignore'
- '!.nvmrc'
- '!.prettierrc.json'
- '!CHANGELOG.md'
- '!README.md'
- '!ava.config.js'
- '!coverage/**'
- '!examples/**'
- '!fixtures/**'
- '!makenew.sh'
- '!serverless.yml'
- '!test/**'
- '!.devcontainer/**'
- '!package-lock.json'
functions:
todo:
url: true
handler: handlers/todo.default