-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathserverless.yml
64 lines (58 loc) · 1.36 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
service: serverless-fastapi
plugins:
- serverless-python-requirements
- serverless-domain-manager
- serverless-localstack
provider:
name: aws
runtime: python3.8
stage: ${opt:stage, "dev"}
region: eu-west-1
deploymentBucket:
name: serverless-fastapi-deploy
package:
exclude:
- Makefile
- poetry.lock
- README.md
- tests/**
- docs/**
- node_modules/**
- .venv/**
- .serverless/**
- package.json
- package-lock.json
- .pytest_cache
- .hypothesis
custom:
pythonRequirements:
dockerizePip: true
layer:
name: serverless-fastapi-deps
description: Dependencies of serverless-fastapi
compatibleRuntimes:
- python3.8
customDomain:
domainName: api.xmementoit.co.uk
stage: ${self:provider.stage}
basePath: ${self:provider.stage}
certificateArn: arn:aws:acm:us-east-1:398024481618:certificate/94d0a821-cbd5-4ecb-aaa4-e63efe9d6424
endpointType: "edge"
securityPolicy: tls_1_2
apiType: rest
autoDomain: true
autoDomainWaitFor: 120
localstack:
stages:
- local
functions:
api:
handler: api.main.handler
environment:
STAGE: ${self:provider.stage}
layers:
- { Ref: PythonRequirementsLambdaLayer }
events:
- http:
method: any
path: /{proxy+}