Camunda Spring boot app as AWS Lambda function

Hi Guys,

I have created a simple Camunda spring boot web application. I am trying to convert it in AWS lambda function using AWS springboot lambda archtype.

e.g. mvn archetype:generate -DartifactId=my-service -DarchetypeGroupId=com.amazonaws.serverless.archetypes -DarchetypeArtifactId=aws-serverless-springboot2-archetype -DarchetypeVersion=1.3.1 -DgroupId=my.service -Dversion=1.0-SNAPSHOT -Dinteractive=false

But when I am testing my camunda app, I am getting below error.


/ | __ _ _ __ ___ _ _ _ __ | | __ _ | __ )| _ | / |
| | / | '_ _ | | | | ’ \ / |/ _ | | _ | |) | |/| |
| |
| (
| | | | | | | |
| | | | | (
| | (| | | |) | /| | | |
_
/_,|| || ||_,|| ||_,|_,| |_/|| || ||

Spring-Boot:
Camunda BPM: (v)
Camunda BPM Spring Boot Starter: (v3.2.0)

2019-04-11 14:39:16.914 WARN 1 — [ main] s.b.s.c.i.DefaultDeploymentConfiguration : unable to determine if resource file [/var/task/META-INF/maven/org.camunda.bpm.dmn] is a deployable resource
2019-04-11 14:39:33.353 WARN 1 — [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is java.lang.UnsupportedOperationException: Only dispatcherServlet is supported
2019-04-11 14:39:33.633 ERROR 1 — [ main] o.s.boot.SpringApplication : Application run failed

org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is java.lang.UnsupportedOperationException: Only dispatcherServlet is supported
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:157) ~[task/:na]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:540) ~[task/:na]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142) ~[task/:na]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:775) ~[task/:na]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) ~[task/:na]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:316) ~[task/:na]
at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:157) [task/:na]
at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:137) [task/:na]
at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:91) [task/:na]
at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:171) [task/:na]
at com.amazonaws.serverless.proxy.spring.SpringBootLambdaContainerHandler.initialize(SpringBootLambdaContainerHandler.java:171) [task/:na]
at com.amazonaws.serverless.proxy.spring.SpringBootLambdaContainerHandler.getAwsProxyHandler(SpringBootLambdaContainerHandler.java:77) [task/:na]
at org.camunda.bpm.spring.boot.example.web.LambdaFunctionHandler.(LambdaFunctionHandler.java:20) [task/:na]
at java.lang.Class.forName0(Native Method) [na:1.8.0_181]

Best would be to create a github repo with a code sample for people to look at and test with. I think there is too little information to make a proper assessment