-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserverless.yml
54 lines (50 loc) · 971 Bytes
/
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
service: lambda-bedrock-proxy
frameworkVersion: '3'
provider:
name: aws
runtime: python3.11
stage: dev
region: us-east-1
iam:
role:
statements:
- Effect: Allow
Action: 'bedrock:*'
Resource: '*'
apiGateway:
apiKeys:
- name: tollmkey
description: tollmkey api key# Optional
usagePlan:
quota:
limit: 5
offset: 2
period: MONTH
throttle:
burstLimit: 200
rateLimit: 100
layers:
bedrock:
name: bedrock-dependencies
path: layers/tools
compatibleRuntimes:
- python3.11
description: "Dependencies bedrock"
package:
include:
- src/handler.py
- src/client_bedrock.py
exclude:
- node_modules/**
- venv/**
functions:
hello:
handler: src/handler.hello
timeout: 30
events:
- http:
path: bedrock
method: post
private: true
layers:
- !Ref BedrockLambdaLayer