Menu
AWS CloudFormation
User Guide (API Version 2010-05-15)

AWS OpsWorks Instance BlockDeviceMapping

BlockDeviceMappings is a property of the AWS::OpsWorks::Instance resource that defines the block devices that are mapped to an AWS OpsWorks instance.

Syntax

JSON

Copy
{ "DeviceName" : String, "Ebs" : EbsBlockDevice, "NoDevice" : String, "VirtualName" : String }

YAML

Copy
DeviceName: String Ebs: EbsBlockDevice NoDevice: String VirtualName: String

Properties

DeviceName

The name of the device that is exposed to the instance, such as /dev/dsh or xvdh. For the root device, you can use the explicit device name or you can set this parameter to ROOT_DEVICE. If you set the parameter to ROOT_DEVICE, AWS OpsWorks provides the correct device name.

Required: No

Type: String

Ebs

Configuration information about the Amazon Elastic Block Store (Amazon EBS) volume.

Required: Conditional You can specify either the VirtualName or Ebs, but not both.

Type: AWS OpsWorks Instance BlockDeviceMapping EbsBlockDevice

NoDevice

Suppresses the device that is specified in the block device mapping of the AWS OpsWorks instance Amazon Machine Image (AMI).

Required: No

Type: String

VirtualName

The name of the virtual device. The name must be in the form ephemeralX, where X is a number equal to or greater than zero (0), for example, ephemeral0.

Required: Conditional You can specify either the VirtualName or Ebs, but not both.

Type: String