aws / aws/aws-lambda-runtime-interface-emulator
Is it possible to test LambdaFunctionURL lambdas with aws-lambda-rie ?
- 主要語言
- Go
- 星號
- 1.1k
- 分支
- 118
- 平均合併
- 42 分鐘
- 30 天內合併 PR
- 2
描述
I have a 2 lambdas:
* One that take a `CloudWatchEvent` as the second argument of the `Handle()`function
* One that take a `LambdaFunctionURLRequest`as the second argument of the `Handle()`function
I'm able to successfully test with `aws-lambda-rie`the first Lambda but not the second one
Even with a quite naive handler:
```
func Handle(ctx context.Context, request events.LambdaFunctionURLRequest) error {
log.Printf("body: %s", request.RawPath)
return nil
}
```
Is it possible to test this "new" kind of lambdas using `aws-lambda-runtime` ? Am I doing something wrong ?
貢獻指南
研究方向
首先,使用 Go Handle 函式透過 aws-lambda-rie 重現該請求,並比較 CloudWatchEvent 與 LambdaFunctionURLRequest 兩種情況。該 issue 沒有指定任何 repository 檔案或測試;完成意味著確認是否支援 LambdaFunctionURLRequest,並記錄或實作所需的行為。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- aws, go
- 領域
- cloud, tooling
- Issue 類型
- 功能
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 25/100