AWS::OpsWorks::Instance BlockDeviceMapping - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China.

AWS::OpsWorks::Instance BlockDeviceMapping

Describes a block device mapping. This data type maps directly to the Amazon EC2 BlockDeviceMapping data type.

Syntax

To declare this entity in your Amazon CloudFormation template, use the following syntax:

JSON

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

YAML

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

Properties

DeviceName

The device name that is exposed to the instance, such as /dev/sdh. For the root device, you can use the explicit device name or you can set this parameter to ROOT_DEVICE and Amazon OpsWorks Stacks will provide the correct device name.

Required: No

Type: String

Update requires: No interruption

Ebs

An EBSBlockDevice that defines how to configure an Amazon EBS volume when the instance is launched. You can specify either the VirtualName or Ebs, but not both.

Required: Conditional

Type: EbsBlockDevice

Update requires: No interruption

NoDevice

Suppresses the specified device included in the AMI's block device mapping.

Required: No

Type: String

Update requires: No interruption

VirtualName

The virtual device name. For more information, see BlockDeviceMapping. You can specify either the VirtualName or Ebs, but not both.

Required: Conditional

Type: String

Update requires: No interruption