Lambda function with java archive - Best practice

0

The lambda function allows both .jar and .zip file to be uploaded for a java archive.

However, would like to understand what is the recommended archive to use? My understanding was that as the java archive format is a .jar, it is the right one to use. But, why was even .zip archives allowed for a java archive? Are there any limitations with using .jar archive that .zip was also allowed?

質問済み 2ヶ月前116ビュー
1回答
0

From the documents, it calls out using ZIP for Gradle and JAR for Maven. The difference appears to be that Maven has the shade plugin (which builds a shaded / uber-jar), and Gradle packages the JAR and its classpath into a ZIP file. Either format needs to include all the dependencies required, and lambda supports uploading either so long as they have the correct file structure.

Hope that helps, Chris

AWS
Chris C
回答済み 2ヶ月前
profile picture
エキスパート
レビュー済み 2ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ