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

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

Open
#99 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
1.1k
Forks
118
Avg merge
42m
Merged PRs (30d)
2

Description

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 ?

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the request with aws-lambda-rie using the Go Handle function and comparing the CloudWatchEvent and LambdaFunctionURLRequest cases. The issue names no repository files or tests; done means establishing whether LambdaFunctionURLRequest is supported and documenting or implementing the required behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, go
Domain
cloud, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.