-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserverless.yml
More file actions
49 lines (43 loc) · 899 Bytes
/
serverless.yml
File metadata and controls
49 lines (43 loc) · 899 Bytes
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
org: cablespaghetti
app: compliment-bot
service: compliment-bot
custom:
pythonRequirements:
dockerizePip: true
dockerImage: public.ecr.aws/sam/build-python3.12:1.123.0
provider:
name: aws
# Some python depedencies compile code
# Architecture must match build machine e.g. arm64 for Macs
architecture: arm64
runtime: python3.12
region: eu-west-1
stage: dev
memorySize: 128
endpointType: REGIONAL
resolver: sandbox
stages:
dev:
resolvers:
sandbox:
type: aws
dashboard: false
profile: sandbox
region: eu-west-1
package:
include:
- "!./**"
- "./service/**"
- "./lambda_function.py"
exclude:
- "**"
individually: false
functions:
api:
handler: lambda_function.lambda_handler
events:
- httpApi:
path: /webhook
method: post
plugins:
- serverless-python-requirements