Elastic Beanstalk Source Bundle

0

How do I configure a Java web application so that it is a properly formatted source bundle to run on Elastic Beanstalk?

질문됨 3달 전184회 조회
1개 답변
0

This guide should give enough i giganti in on how to deal with Java apps in EB: https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_Java.html

In particular, your source bundle must meet the following requirements:

  • Consist of a single ZIP file or WAR file (you can include multiple WAR files inside your ZIP file)
  • Not exceed 500 MB
  • Not include a parent folder or top-level directory (subdirectories are fine)
profile picture
전문가
답변함 3달 전
  • Thank you for the reply.

    Does my project folder need to contain a Buildfile and/or a Procfile? I'm getting the following error in my log.

    2024/02/06 20:02:22.768756 [INFO] Executing platform hooks in .platform/hooks/prebuild/ 2024/02/06 20:02:22.768774 [INFO] The dir .platform/hooks/prebuild/ does not exist 2024/02/06 20:02:22.768777 [INFO] Finished running scripts in /var/app/staging/.platform/hooks/prebuild 2024/02/06 20:02:22.768782 [INFO] Executing instruction: Java Specific Build Application 2024/02/06 20:02:22.768790 [INFO] no buildfile found, skip building java application 2024/02/06 20:02:22.768796 [INFO] old env file for build tasks does not exist 2024/02/06 20:02:22.768799 [INFO] Executing instruction: CheckProcfileForJavaApplication 2024/02/06 20:02:22.768853 [ERROR] An error occurred during execution of command [app-deploy] - [CheckProcfileForJavaApplication]. Stop running the command. Error: there is no Procfile and no .jar file at root level of your source bundle

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

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

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

관련 콘텐츠