i am trying to deploy a java webapp/tomcat using AWS opsworks, but i am not finding any cookbooks which configures tomcat on ec2 and then deploy my java app. can someone please provide me with the custom cookbook for that. I need both the link to the application and the custom cookbook. actually i am trying to do it with the cloud formation template.
My cloud formation template
"myStack": {
"Type": "AWS::OpsWorks::Stack",
"Properties": {
"CustomCookbooksSource": {
"Type": "git",
**"Url": "xxx (url for the cookbook)"**
}
}
}
--
"myApp": {
"Type": "AWS::OpsWorks::App",
"Properties": {
"StackId": {
"Ref": "myStack"
},
"Type": "java",
"Name": {
"Ref": "AppName"
},
"AppSource": {
"Type": "git",
**"Url": "xxx (url for the java app)",**
"Revision": "version2"
},
"Attributes": {
"DocumentRoot": "web"
}
}
}
**shows where the changes are required.