javatomcatamazon-elastic-beanstalk

How do I supply configuration to elastic beanstalk tomcat


when deploying locally to tomcat, I make this change (below) to server.xml, is there a way I can supply this to Elastic Beanstalk?

<Connector connectionTimeout="20000" port="8080" 
       protocol="org.apache.coyote.http11.Http11NioProtocol" 
       redirectPort="8443"/>'

thanks '


Solution

  • You can do it now without providing custom AMI. Follow instructions in: https://aws.amazon.com/blogs/aws/customize-elastic-beanstalk-using-configuration-files

    In order to provide custom server xml create .ebextensions folder in webapp, put there custom server.xml file and add one more file: server-update.config with content:

    container_commands:
      replace-config:
      command: cp .ebextensions/server.xml /etc/tomcat7/server.xml