我正在使用依赖项打包我的java应用程序并将其上传到aws lambda并运行。它顺利运作。
但现在我排除了我的依赖项,仍然将其上传到aws lambda并运行它:
lambda告诉我错误如下
START RequestId: fd2040a3-6a86-11e6-bba5-f75cd41a0da7 Version: $LATEST
Error loading class augury.api.SaveAuguryApi: com/amazonaws/services/dynamodbv2/AmazonDynamoDB: class java.lang.NoClassDefFoundError
java.lang.NoClassDefFoundError: com/amazonaws/services/dynamodbv2/AmazonDynamoDB
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
Caused by: java.lang.ClassNotFoundException: com.amazonaws.services.dynamodbv2.AmazonDynamoDB
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 2 more
END RequestId: fd2040a3-6a86-11e6-bba5-f75cd41a0da7
REPORT RequestId: fd2040a3-6a86-11e6-bba5-f75cd41a0da7 Duration: 0.29 ms Billed Duration: 100 ms Memory Size: 512 MB Max Memory Used: 47 MB
我很好奇为什么aws lambda中没有java aws sdk环境?