-
Notifications
You must be signed in to change notification settings - Fork 3
/
serverless.yml
74 lines (59 loc) · 1.77 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
service:
name: nest-service
plugins:
- serverless-offline-sqs
- serverless-plugin-typescript
- serverless-plugin-optimize
- serverless-offline
custom:
stage: ${opt:stage, 'local'}
region: ${self:custom.config.deploy.region}
accountId: ${self:custom.config.deploy.accountId}
# Load config
config: ${file(./config/config.yml):${self:custom.stage}, file(./config/config.yml):local}
apiGateway: ${file(./config/config.yml):apiGateway.${self:custom.stage}}
serverless-offline:
host: 0.0.0.0
serverPort: ${env:API_PORT, 4000}
serverless-offline-sqs:
autoCreate: true
skipCacheInvalidation: false
apiVersion: "2012-11-05"
endpoint: http://${env:SQS_HOST, "localhost"}:${env:SQS_PORT, 9324}
region: us-east-1
tags:
Service: ${self:service}
Product: tripws
Team: platform
basePath: ''
provider:
name: aws
runtime: nodejs14.x
stage: ${self:custom.stage}
region: ${self:custom.region}
endpointType: regional
apiName: ${self:service}
stackName: ${self:service}-${self:custom.stage}
deploymentBucket:
name: ${self:custom.config.deploy.deploymentBucket}
maxPreviousDeploymentArtifacts: ${self:custom.config.deploy.pruneVersion}
blockPublicAccess: true
deploymentPrefix: ${self:custom.config.deploy.deploymentPrefix}
memorySize: 128
timeout: 30
versionFunctions: true
logRetentionInDays: 1
iamRoleStatements: ${file(./config/iam-roles.yml):default}
environment: ${file(./environments.yml):${self:custom.stage}, file(./environments.yml):default}
functions: ${file(./functions.yml)}
resources:
- ${file(./resources/queue-user.sqs.yml)}
package:
individually: true
excludeDevDependencies: true
exclude:
- README.md
- .serverless/**
- .webpack/**
- test/**
frameworkVersion: ">=2"