Skip to content

Build function.zip directly when packaging native image for AWS Lambda Custom runtime #2403

@Vadym79

Description

@Vadym79

Feature description

In case I package with the packaging property equal to "native-image" ready to be deployed to AWS Lambda as Custom Runtime with mvn clean package -Dpackaging=native-image -Dmicronaut.runtime=lambda -Pgraalvm -Denforcer.skip=true only the native image itself will be created (with the default name as artifact id defined in the dependency management like pom.xml or with the overriden name), but I'd prefer to have function.zip with native image within created directly.

Otherwise, in order to accomplish that I need to declare and configure maven-assembly-plugin as I do in my project in pom.xml with a lot of additional code.

Interestingly, If I package my application with the packaging property equal to "docker-native" with mvn clean package -Dpackaging=docker-native -Dmicronaut.runtime=lambda -Pgraalvm function.zip will be created by default.

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