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
Post a Comment