Custom cook book to deploy java app on tomcat using AWS CLoudFormation template -


i trying deploy java webapp/tomcat using aws opsworks, not finding cookbooks configures tomcat on ec2 , deploy java app. can please provide me custom cookbook that. need both link application , custom cookbook. trying cloud formation template.

my cloud formation template

    "mystack": {             "type": "aws::opsworks::stack",             "properties": {                              "customcookbookssource": {                              "type": "git",                              **"url": "xxx (url cookbook)"**                               }                           }      } 

--

"myapp": {                 "type": "aws::opsworks::app",                 "properties": {                     "stackid": {                         "ref": "mystack"                     },                     "type": "java",                     "name": {                         "ref": "appname"                     },                     "appsource": {                         "type": "git",                         **"url": "xxx (url java app)",**                         "revision": "version2"                     },                     "attributes": {                         "documentroot": "web"                     }                 }             } 

**shows changes required.

maybe i'm not understanding caveat, there wrong opsworks' default deployment of app?

in opsworks, if go apps, can choose add app , deploy any/all running instances in java app server layer. if choose add/deploy app way, opsworks lot of leg work , gets app running/setup correctly sensible defaults.

i don't know specifics of opsworks when deploys, 1 can view chef recipes opsworks uses during different lifecycle events on github. can view them @ https://github.com/aws/opsworks-cookbooks or within opsworks click on layer , recipes, , click on recipe want view.

this default add app , deploy through opsworks console has worked me.

note: rely on opsworks' default deployment of java webapp, have additional custom cookbooks making directories, setting environment variables, etc. -- deployment of webapp, let opsworks handle that.


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -