Skip to content

Provide AbstractMicronautLambdaRuntime implementation capable of automatically routing to multiple AWS Lambda functions #2402

@Vadym79

Description

@Vadym79

Feature description

In the example giving in the tutorial Deploy a Micronaut function as a GraalVM Native Executable to AWS Lambda there is FunctionLambdaRuntime implementation which invokes 1 Lambda function like this:

protected RequestHandler<APIGatewayProxyRequestEvent, APIGatewayProxyResponseEvent> createRequestHandler(String... args) { return new FunctionRequestHandler(); }

The reality of many projects like this one developed by myself is that we need to deploy multiple Lambda functions (for example behind the same Amazon API Gateway) within the same deployment artifact like I do it by packaging and deploying "create product" and "get product by id" Lambda function togethers. I didn't find how can I provide the implementation of the FunctionLambdaRuntime to do the routing to multiple Lambda functions. Morover, I'd like to have Micronaut framework providing me such a Lambda Runtime implementation out-the-box capable of doing it like you provide io.micronaut.function.aws.runtime.MicronautLambdaRuntime runtime implementation in case Controller(s) are used instead of Lambda function(s).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions