-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yml
111 lines (94 loc) · 2.38 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
service: CHANGEME
plugins:
- serverless-domain-manager
- serverless-v2-aws-documentation
- serverless-jetpack
- serverless-offline
provider:
name: aws
runtime: nodejs18.x
profile: serverless
stage: dev
region: us-east-1
lambdaHashingVersion: 20201221
logs:
restApi: true
tracing:
apiGateway: true
lambda: true
apiGateway:
apiKeys: ${self:custom.apiKeys}
environment:
DEBUG: ${self:custom.environment.debugLog}
NODE_ENV: ${self:custom.environment.nodeEnvironment}
custom:
stage: ${opt:stage, self:provider.stage}
region: ${opt:region, self:provider.region}
domainName: ${self:custom.domainNameStage.${self:custom.stage}}
domainNameStage:
dev: 'localhost:${self:custom.serverless-offline.httpPort}'
test: test-api.${self:custom.baseDomainName}
prod: api.${self:custom.baseDomainName}
baseDomainName: CHANGEME
customDomain:
domainName: ${self:custom.domainName}
certificateName: ${self:custom.domainName}
basePath: CHANGEME
stage: ${self:custom.stage}
createRoute53Record: true
serverless-offline:
httpPort: '3000'
websocketPort: '3001'
lambdaPort: '3002'
apiKeys: ${self:custom.apiKeysStage.${self:custom.stage}}
apiKeysStage:
dev:
- name: api-key
value: local-dev-api-key
test: []
prod: []
environment:
debugLog: ${self:custom.environment.debugLogStage.${self:custom.stage}}
debugLogStage:
dev: 'CHANGEME:*,-*:trace'
test: 'CHANGEME:*,-*:trace'
prod: 'CHANGEME:*,-*:trace'
nodeEnvironment: ${self:custom.environment.nodeEnvironmentStage.${self:custom.stage}}
nodeEnvironmentStage:
dev: development
test: test
prod: production
documentation:
info:
title: CHANGEME
description: CHANGEME
version: 1.0.0
package:
individually: false
exclude:
- .circleci/**
- .github/**
- .idea/**
- .env*
- examples/**
- scripts/**
- spec/**
- tmp/**
functions:
graphql:
handler: dist/events/apollo.handler
events:
- http:
path: graphql
method: get
cors: true
documentation:
summary: GraphQL Server
description: GraphQL Server
- http:
path: graphql
method: post
cors: true
documentation:
summary: GraphQL Server
description: GraphQL Server