-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathserverless.yml
More file actions
46 lines (39 loc) · 1.17 KB
/
serverless.yml
File metadata and controls
46 lines (39 loc) · 1.17 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
service: <MyProject>
frameworkVersion: ">=1.40.0 <2.0.0"
custom: ${file(resources/customs.yml)}
provider:
name: aws
runtime: python3.7
stage: dev
region: ap-southeast-2
memorySize: 128
environment:
REGION: ${self:provider.region}
STAGE: ${self:custom.stage}
USER_POOL_ID: ${self:custom.userpoolId.${self:custom.stage}}
APP_CLIENT_ID: ${self:custom.appClientId.${self:custom.stage}}
LOG_LEVEL: ${self:custom.logLevel.${self:custom.stage}}
tags:
appName: ${self:custom.appName}
stage: ${self:custom.stage}
owner: Tony Truong
websocketApiName: <MyProject Websocket API name>
websocketApiRouteSelectionExpression: $request.body.action
# -- Uncomment below for VPC and subnets
# vpc:
# securityGroupIds:
# - <VPC security group id>
# subnetIds:
# - <private subnet id 1>
# - <private subnet id 2>
package: ${file(resources/package.yml)}
resources:
- ${file(resources/api_gateway_errors.yml)}
functions:
- ${file(resources/authenticators.yml)}
- ${file(resources/websockets.yml)}
plugins:
- serverless-python-requirements
- serverless-iam-roles-per-function
- serverless-domain-manager
- serverless-prune-plugin