elasticbeanstalk Source bundle is empty or exceeds maximum allowed size: 524288000

0

Hi,

While deploy our application we are getting this error.

com.amazonaws.services.elasticbeanstalk.model.AWSElasticBeanstalkException: Source bundle is empty or exceeds maximum allowed size: 524288000

We are zipping 2 war files which has 248MB and 251 MB which totals 501MB which is less then the 512 MB. Not able where this issue is.

質問済み 2年前252ビュー
1回答
0

Hello,

This appears to be a common issue with customers that use AWS BeanStalk. Per the BeanStalk documentation (https://docs.amazonaws.cn/en_us/elasticbeanstalk/latest/dg/applications-sourcebundle.html), the source bundle must:

  • Consist of a single ZIP file or WAR file (you can include multiple WAR files inside your ZIP file)
  • Not exceed 512 MB
  • Not include a parent folder or top-level directory (subdirectories are fine)

Some sites that I visited recommending trying to reduce the ZIP file size below 500 MB. This may be what is causing your issue, even though the docs say the limit is 512 MB.

With that said, be sure to check that your WAR files are at the top level of your Zip file when compressing it. Additionally, make sure the the zip file does not contain a parent folder.

回答済み 2年前
AWS
サポートエンジニア
レビュー済み 2年前

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

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

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

関連するコンテンツ