aws / aws/aws-lambda-runtime-interface-emulator

Is it possible to test LambdaFunctionURL lambdas with aws-lambda-rie ?

未关闭
#99 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
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

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。