ebextensions

Environment specific ebextensions commands

萝らか妹 提交于 2019-11-29 09:30:19
问题 I have a spring-boot application for which I need to specify graphite server and port (to send metrics). For that to work, I have to install and configure statsd . I do that using the ebextensions file. commands: 01_nodejs_install: command: sudo yum -y install nodejs npm --enablerepo=epel ignoreErrors: true 02_mkdir_statsd: command: mkdir /home/ec2-user/statsd ignoreErrors: true 03_fetch_statsd: command: git clone https://github.com/etsy/statsd.git /home/ec2-user/statsd ignoreErrors: true 04

Environment specific ebextensions commands

可紊 提交于 2019-11-29 02:03:36
I have a spring-boot application for which I need to specify graphite server and port (to send metrics). For that to work, I have to install and configure statsd . I do that using the ebextensions file. commands: 01_nodejs_install: command: sudo yum -y install nodejs npm --enablerepo=epel ignoreErrors: true 02_mkdir_statsd: command: mkdir /home/ec2-user/statsd ignoreErrors: true 03_fetch_statsd: command: git clone https://github.com/etsy/statsd.git /home/ec2-user/statsd ignoreErrors: true 04_change_example_config: command: "cat exampleConfig.js | sed 's/2003/<graphite-port>/g' | sed 's

Where to add .ebextensions in a WAR?

安稳与你 提交于 2019-11-26 23:12:42
问题 Scenario: AWS Elastic Beanstalk Java application .ebextensions currently placed in src/main/resources/.ebextensions Commands are not being executed. Where is the .ebextensions supposed to go in a Java application? 回答1: .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. 回答2: