Posts

Showing posts from May, 2015

Deploying Multiple wars to AWS Beanstalk

Image
After few trial and error, I was able to get this done for a Tomcat 8 Java 8  Below is my folder structure where the main war is unzipped and other wars are placed on the same folder. This folder is configured using AWSEBCLI to my EB environment. Using ebetensions, I have placed a script file that will copy the additional wars to webapps folder in the post deploy hook folder “/opt/elasticbeanstalk/hooks/appdeploy/post/” Tomcat 8 automatically deploys these wars and all works fine J Here is the the config file content. files:   "/opt/elasticbeanstalk/hooks/appdeploy/post/99_copy_other_wars.sh":     mode: "000755"     owner: root     group: root     content: |       cp /var/lib/tomcat8/webapps/ROOT/*.war /var/lib/tomcat8/webapps/.

Installing MongoDB or other packages with Node JS using "ebextensions"

Recently wanted to install a NodeJS application on Elastic Beanstalk. That was easy :). One can use AWS EB Console to upload a zipped nodejs application and be done with it. However wanted to install and run MongoDB in the beanstalk image that gets created when the application get deployed. So the easiest way to get this done is to use CLI for AWS EB. Using Elastic Beanstalk  CLI ( Command Line Interface ) simplifies so many things http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb-cli3-install.html describes the steps to install the same. In short you would need, Python 2.7 with PIP and once you have pip EB CLI can be installed with "pip install awsebcli" One would have to either create a new EB environment or configure an existing nodeJs application source code folder to an EB environment. On my AWS environment, I have few glitches that can be avoided ( network configurations are slightly restrictive) only when the EB applications is creat...