-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.yaml
41 lines (38 loc) · 1.03 KB
/
template.yaml
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
AWSTemplateFormatVersion: "2010-09-09"
Transform: AWS::Serverless-2016-10-31
Description: >
qwen-in-a-lambda
Sample SAM Template for qwen-in-a-lambda
Globals:
Function:
Timeout: 30
MemorySize: 128
LoggingConfig:
LogFormat: JSON
Resources:
QwenFunction:
Type: AWS::Serverless::Function
Metadata:
Dockerfile: Dockerfile
DockerContext: qwen_function/
DockerTag: python3.11-v1
Properties:
PackageType: Image
MemorySize: 256
Timeout: 20
Events:
Generate:
Type: Api
Properties:
Path: /generate
Method: post
Outputs:
QwenFunctionAPI:
Description: API Gateway endpoint URL for Prod stage for LLM function
Value: !Sub "https://${ServerlessRestApi}.execute-api.${AWS::Region}.amazonaws.com/Prod/"
QwenFunction:
Description: Qwen Lambda Function ARN
Value: !GetAtt QwenFunction.Arn
QwenFunctionIamRole:
Description: Implicit IAM Role created for Qwen function
Value: !GetAtt QwenFunctionRole.Arn