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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠