Scenario:
Commands are not being executed.
Where is the .ebextensions supposed to go in a Java application?
Using Maven I did as follows:
add the following to pom.xml
<plugin>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<webResources>
<resource>
<directory>src/main/ebextensions</directory>
<targetPath>.ebextensions</targetPath>
<filtering>true</filtering>
</resource>
</webResources>
</configuration>
</plugin>
to transfer the files to the top level of the war when it is built.
.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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With