NOTE: This repo contains only the documentation for the private BoltsOps Pro repo code. Original file: https://github.com/boltopspro/java/blob/master/README.md The docs are publish so they are available for interested customers. For access to the source code, you must be a paying BoltOps Pro subscriber. If are interested, you can contact us at contact@boltops.com or https://www.boltops.com
java configset
This configset install Java on AmazonLinux2.
$ java --version
openjdk 11.0.5 2019-10-15 LTS
OpenJDK Runtime Environment 18.9 (build 11.0.5+10-LTS)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.5+10-LTS, mixed mode, sharing)
$
What are lono configsets?
Lono configsets allow CloudFormation cfn-init configsets that are typically embedded in the template to be reusable. More info: Lono Configsets docs.
Usage
Use configset
to enable the configset for the blueprint. Example:
configs/demo/configsets/base.rb:
configset("java", resource: "Instance")
This adds the configset to the resource
with the logical id Instance
in your CloudFormation template. The configset is added to the Resources[].Metadata.AWS::CloudFormation::Init attribute of the Instance
resource.
Here's an example adding to a LaunchConfig
resource:
configset("java", resource: "LaunchConfig")
Here's an example adding to a LaunchTemplate
resource:
configset("java", resource: "LaunchTemplate")