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.

gefragt vor 2 Jahren252 Aufrufe
1 Antwort
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.

beantwortet vor 2 Jahren
AWS
SUPPORT-TECHNIKER
überprüft vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen