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.

asked 2 years ago224 views
1 Answer
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.

answered 2 years ago
AWS
SUPPORT ENGINEER
reviewed 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions