I\'m trying to add an .ebextensions folder to the root level of my jar to be deployed to AWS elastic beanstalk.
My folder structure is:
main:
--src
--re
Here is how i did it:
Ran mvn install
which generated app-0.0.1-SNAPSHOT.jar
After that i have created .ebextensions/nginx/conf.d/proxy.conf
on root project path which has client_max_body_size 25M;
- in my case was to increase maximum upload size.
Using Github Actions and ubuntu-latest for the runner - the zip command is supported out of the box and i did it with this command
cp target/app-0.0.1-SNAPSHOT.jar . && zip -r app-new.zip .ebextensions/ app-0.0.1-SNAPSHOT.jar
Basically the app-new.zip
is the file that i am uploading to ElasticBeanstalk