-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserverless.yml
More file actions
56 lines (50 loc) · 1.38 KB
/
serverless.yml
File metadata and controls
56 lines (50 loc) · 1.38 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
app: api
service: api
org: ahummel25
# You can pin your service to only deploy with a specific Serverless version
# Check out our docs for more details
frameworkVersion: '>=4'
plugins:
- serverless-domain-manager
custom:
customDomain:
domainName: ${self:custom.domain.${self:provider.stage}}
certificateName: '*.andrewhummel.dev'
basePath: ''
stage: ${self:provider.stage}
createRoute53Record: false
commonPrefix: ${self:service}-${self:provider.stage}
domain:
dev: api-dev.andrewhummel.dev
prod: api.andrewhummel.dev
# vpc: ${file(./${self:provider.stage}.yml):vpc}
provider:
name: aws
runtime: provided.al2023
versionFunctions: false
tracing:
apiGateway: true
lambda: true
apiGateway:
shouldStartNameWithService: true
architecture: arm64
logs:
restApi:
accessLogging: true
executionLogging: true
fullExecutionData: true
level: INFO
role: 'arn:aws:iam::${aws:accountId}:role/${self:service}-apigw-role'
roleManagedExternally: true
logRetentionInDays: 14
stage: ${opt:stage, 'dev'}
tags:
Application: API
Project: Personal API
timeout: 30
package:
patterns:
- '!vscode/**'
individually: true
functions:
graphql: ${file(lambda/graphql/function.yml)}