Skip to content

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

@mpatou

Description

@mpatou

I have a 2 lambdas:

  • One that take a CloudWatchEvent as the second argument of the Handle()function
  • One that take a LambdaFunctionURLRequestas the second argument of the Handle()function

I'm able to successfully test with aws-lambda-riethe 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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions