-
Notifications
You must be signed in to change notification settings - Fork 7
/
serverless.yml
65 lines (65 loc) · 1.42 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
service: ubd-serverless
frameworkVersion: '3'
useDotenv: true
custom:
wsgi:
app: app.app
pythonRequirements:
fileName: requirements-prod.txt
plugins:
- serverless-wsgi
- serverless-python-requirements
provider:
name: aws
runtime: python3.8
environment:
STRIP_STAGE_PATH: yes
S3_BUCKET: ${env:S3_BUCKET}
NEPTUNEDBRO: ${env:NEPTUNEDBRO}
CLIENT_SECRET: ${env:CLIENT_SECRET}
CLIENT_ID: ${env:CLIENT_ID}
APP_SECRET_ARN: ${env:APP_SECRET_ARN}
vpc:
securityGroupIds:
- ${env:UBD_DEFAULT_SG}
- ${env:UBD_NEPTUNE_SG}
subnetIds:
- ${env:UBD_PRIVATE_SUBNET_ID}
deploymentBucket:
name: ubd-deployments
maxPreviousDeploymentArtifacts: 10
blockPublicAccess: true
skipPolicySetup: true
versioning: true
serverSideEncryption: aws:kms
sseKMSKeyId: ${env:KMS_ARN}
tags:
ProjectName: ubd
IAMUsername: vinverso
stage: production
region: us-west-1
profile: ubd
stackName: ubd-stack
tags:
ProjectName: ubd
IAMUsername: vinverso
stackTags:
ProjectName: ubd
IAMUsername: vinverso
deploymentMethod: direct
disableRollback: true
tracing:
apiGateway: true
lambda: true
functions:
api:
handler: wsgi_handler.handler
events:
- httpApi: '*'
layers:
- arn:aws:lambda:us-west-1:770693421928:layer:Klayers-p38-Pillow:2
package:
patterns:
- '!venv/**'
- '!tests/**'
- '!.env.production'