Menu
AWS OpsWorks
User Guide (API Version 2013-02-18)

Layer Data Bag (aws_opsworks_layer)

Represents a layer's settings.

The following example shows how to use Chef search to search through a single data bag item and then multiple data bag items to write messages to the Chef log with the layers' names and short names:

Copy
layer = search("aws_opsworks_layer").first Chef::Log.info("********** The layer's name is '#{layer['name']}' **********") Chef::Log.info("********** The layer's shortname is '#{layer['shortname']}' **********") search("aws_opsworks_layer").each do |layer| Chef::Log.info("********** The layer's name is '#{layer['name']}' **********") Chef::Log.info("********** The layer's shortname is '#{layer['shortname']}' **********") end
ecs_cluster_arn

If the layer has an Amazon ECS cluster assigned, the Amazon ECS cluster's Amazon Resource Name (ARN) (string).

layer_id

The layer ID, which is a GUID that is generated by AWS OpsWorks Stacks and that uniquely identifies the layer (string).

name

The layer's name, which is used to represent the layer in the console (string). It can be user defined and need not be unique.

packages

A list of packages to be installed (list of strings).

shortname

The layer's shortname, which is user defined (string).

type

The layer's type, which is always set to "custom" for Chef 12 Linux and Chef 12.2 Windows (string).

volume_configurations

A list of Amazon EBS volume configurations.

iops

The number of I/O operations per second that the volume can support.

mount_point

The volume's mount point directory.

number_of_disks

The number of disks in the volume.

raid_level

The volume's RAID configuration level.

size

The volume's size in GiB.

volume_type

The volume's type: general purpose, magnetic, or provisioned IOPS.