Layer Data Bag (aws_opsworks_layer)
Important
The AWS OpsWorks Stacks service reached end of life on May 26, 2024 and has been disabled for both new and existing customers.
We strongly recommend customers migrate their workloads to other solutions as soon as possible. If you have questions about migration, reach out to the AWS Support Team on AWS re:Post
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.