2025-04-16 08:23:05 +08:00
|
|
|
AWSTemplateFormatVersion: '2010-09-09'
|
|
|
|
|
Transform: AWS::Serverless-2016-10-31
|
|
|
|
|
Description: Go Lambda API deployed with AWS SAM
|
|
|
|
|
|
|
|
|
|
Globals:
|
|
|
|
|
Function:
|
|
|
|
|
Timeout: 10
|
|
|
|
|
|
|
|
|
|
Resources:
|
|
|
|
|
ApiFunction:
|
|
|
|
|
Type: AWS::Serverless::Function
|
|
|
|
|
Properties:
|
|
|
|
|
FunctionName: legalgo-api
|
|
|
|
|
Handler: main
|
2025-04-16 10:45:26 +08:00
|
|
|
Runtime: provided.al2023
|
2025-04-16 08:33:13 +08:00
|
|
|
CodeUri: cmd/legalgo
|
2025-04-16 08:23:05 +08:00
|
|
|
Events:
|
|
|
|
|
Api:
|
|
|
|
|
Type: Api
|
|
|
|
|
Properties:
|
|
|
|
|
Path: /
|
2025-04-16 10:57:18 +08:00
|
|
|
Method: ANY
|
|
|
|
|
Metadata:
|
|
|
|
|
BuildMethod: go1.x
|