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

Amazon EC2 LaunchTemplate BlockDeviceMapping

The BlockDeviceMapping property type describes a block device mapping for an Amazon EC2 launch template.

BlockDeviceMapping is a property of the Amazon EC2 LaunchTemplate LaunchTemplateData property type.

Syntax

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

JSON

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

YAML

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

Properties

DeviceName

The device name (for example, /dev/sdh or xvdh).

Required: No

Type: String

Update requires: No interruption

Ebs

Parameters used to automatically set up EBS volumes when the instance is launched.

Required: No

Type: xxx

Update requires: No interruption

NoDevice

Suppresses the specified device included in the block device mapping of the AMI.

Required: No

Type: String

Update requires: No interruption

VirtualName

The virtual device name (ephemeralN). Instance store volumes are numbered starting from 0. An instance type with 2 available instance store volumes can specify mappings for ephemeral0 and ephemeral1. The number of available instance store volumes depends on the instance type. After you connect to the instance, you must mount the volume.

Required: No

Type: String

Update requires: No interruption

See Also

On this page: