Where to add .ebextensions in a WAR?

后端 未结 5 1706
天命终不由人
天命终不由人 2020-12-05 23:28

Scenario:

  • AWS Elastic Beanstalk
  • Java application
  • .ebextensions currently placed in src/main/resources/.ebextensions

Commands a

5条回答
  •  一向
    一向 (楼主)
    2020-12-05 23:58

    .ebextensions should be placed in the root of WAR.

    The WAR structure looks like the following:

    web_app.war
              |
              |_.ebextensions
              |   |_ 01run.config
              |   |_ 02do.config
              |
              |_META-INF
              |
              |_WEB-INF
                   |_ classes
                   |_ lib
                   |_ web.xml
    

    Refer to the official AWS docs for further information.

提交回复
热议问题