Layer Data Bag (aws_opsworks_layer) - AWS OpsWorks

Layer Data Bag (aws_opsworks_layer)

Important

AWS OpsWorks Stacks is no longer accepting new customers. Existing customers will be able to use the OpsWorks console, API, CLI, and CloudFormation resources as normal until May 26, 2024, at which time they will be discontinued. To prepare for this transition, we recommend you transition your stacks to AWS Systems Manager as soon as possible. For more information, see AWS OpsWorks Stacks End of Life FAQs and Migrating your AWS OpsWorks Stacks applications to AWS Systems Manager Application Manager.

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:

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).

encrypted

true if the EBS volume is encrypted; otherwise, false (Boolean).

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, provisioned IOPS, throughput-optimized HDD, or cold HDD.