amazon web services - How can I install java using CloudFormation -


i want install latest java using cloudformation template. instance redhat 7.

currently wrote:

"aws::cloudformation::init": {             "config": {                 "packages": {                     "yum": {                         "httpd": [ ]                     }                 },                 "services": {                     "sysvinit": {                         "httpd": {                             "enabled": "true",                             "ensurerunning": "true"                         }                     }                 }             }         } 

java installed, not latest version. new service depend on newer version of java. need change in "yum" block ?

the following cloudformation init script:

"packages": {      "yum": {          "httpd": [ ]      } }, 

translates roughly:

#/bin/bash yum install -y httpd 

since run yum install -y java-1.7.0-openjdk-devel, need add new line:

"packages": {      "yum": {          "java-1.7.0-openjdk-devel": [ ],          "httpd": [ ]      } }, 

Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -