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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南