aws_opsworks_java_app_layer

Provides an OpsWorks Java application layer resource.

Example Usage

resource "aws_opsworks_java_app_layer" "app" {
  stack_id = "${aws_opsworks_stack.main.id}"
}

Argument Reference

The following arguments are supported:

  • stack_id - (Required) The id of the stack the layer will belong to.
  • name - (Optional) A human-readable name for the layer.
  • app_server - (Optional) Keyword for the application container to use. Defaults to "tomcat".
  • app_server_version - (Optional) Version of the selected application container to use. Defaults to "7".
  • auto_assign_elastic_ips - (Optional) Whether to automatically assign an elastic IP address to the layer's instances.
  • auto_assign_public_ips - (Optional) For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances.
  • custom_instance_profile_arn - (Optional) The ARN of an IAM profile that will be used for the layer's instances.
  • custom_security_group_ids - (Optional) Ids for a set of security groups to apply to the layer's instances.
  • auto_healing - (Optional) Whether to enable auto-healing for the layer.
  • install_updates_on_boot - (Optional) Whether to install OS and package updates on each instance when it boots.
  • instance_shutdown_timeout - (Optional) The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
  • jvm_type - (Optional) Keyword for the type of JVM to use. Defaults to openjdk.
  • jvm_options - (Optional) Options to set for the JVM.
  • jvm_version - (Optional) Version of JVM to use. Defaults to "7".
  • elastic_load_balancer - (Optional) Name of an Elastic Load Balancer to attach to this layer
  • drain_elb_on_shutdown - (Optional) Whether to enable Elastic Load Balancing connection draining.
  • system_packages - (Optional) Names of a set of system packages to install on the layer's instances.
  • use_ebs_optimized_instances - (Optional) Whether to use EBS-optimized instances.
  • ebs_volume - (Optional) ebs_volume blocks, as described below, will each create an EBS volume and connect it to the layer's instances.
  • custom_json - (Optional) Custom JSON attributes to apply to the layer.

The following extra optional arguments, all lists of Chef recipe names, allow custom Chef recipes to be applied to layer instances at the five different lifecycle events, if custom cookbooks are enabled on the layer's stack:

An ebs_volume block supports the following arguments:

  • mount_point - (Required) The path to mount the EBS volume on the layer's instances.
  • size - (Required) The size of the volume in gigabytes.
  • number_of_disks - (Required) The number of disks to use for the EBS volume.
  • raid_level - (Required) The RAID level to use for the volume.
  • type - (Optional) The type of volume to create. This may be standard (the default), io1 or gp2.
  • iops - (Optional) For PIOPS volumes, the IOPS per disk.

Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • id - The id of the layer.

© 2018 HashiCorp
Licensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/aws/r/opsworks_java_app_layer.html