A developer zips a project folder and uploads the archive to AWS Elastic Beanstalk. The environment reports a successful deployment, but the application fails to start because the platform cannot find the application files. What is the MOST likely cause?
Choose one.
An Elastic Beanstalk source bundle is a zip (or war) archive whose application files must sit at the root of the archive, with optional environment configuration in an .ebextensions directory inside the bundle.
Zipping the project folder itself puts every file one directory too deep, so the platform cannot locate the application entry files — the deployment succeeds but startup fails, which is exactly the symptom described. A missing .ebextensions directory is harmless because it is optional. ECR is unrelated to Beanstalk source bundles, and the 250 MB unzipped limit is a Lambda constraint, not a Beanstalk one.
- Open the uploaded archive and check whether files sit at the root or inside a parent folder.
- Re-create the bundle by zipping the contents of the project folder, not the folder itself.
- Keep any environment customization files in an .ebextensions directory inside the bundle.
- Redeploy the corrected bundle and confirm the application starts.
Exam tip: Zip the contents of the project folder for Elastic Beanstalk — a bundle whose files are nested one level deep deploys but fails to start.
Preparing Application Artifacts for AWS Deployment — the lesson that teaches this.