Hi all,
I am trying to figure out how to deploy native executables to AWS Lambda using Serverless Framework.
My Java code is compiled to native linux using GraalVM (via the Quarkus framework: if interested see this).
I can deploy to lambda using the SAM template below, but I haven’t found docs or examples of using Serverless Framework. Is it possible?
I know that docker images are possible but this is not what I want.
Many thanks!
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: AWS Serverless Quarkus - java-module-1.0-SNAPSHOT
Globals:
Api:
BinaryMediaTypes:
- "*/*"
Resources:
JavaModuleNative:
Type: AWS::Serverless::Function
Properties:
Handler: not.used.in.provided.runtime
Runtime: provided
CodeUri: function.zip
MemorySize: 128
Policies: AWSLambdaBasicExecutionRole
Timeout: 15
Environment:
Variables:
DISABLE_SIGNAL_HANDLERS: true