Whether deploying a new web application or updating a version for an existing web application in Elastic Beanstalk, it is essential to prepare a source bundle of source code. In general, the characteristics of source bundles for any programming language are as follows:
- It should be a single ZIP or WAR file.
- If there are multiple WAR files, it can be packed in a single ZIP file.
- The overall file size should not exceed 512 MB.
- It can have subdirectories but not parent directories.
To deploy a worker application in a worker tier, the application source bundle must also include the cron.yaml file.
A detailed understanding of preparing a source bundle can be obtained by visiting https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/applications-sourcebundle.html.