Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

AWS::EC2::LaunchTemplate BlockDeviceMapping

Focus mode

On this page

AWS::EC2::LaunchTemplate BlockDeviceMapping - AWS CloudFormation
Filter View

Specifies a block device mapping for a launch template. You must specify DeviceName plus exactly one of the following properties: Ebs, NoDevice, or VirtualName.

BlockDeviceMapping is a property of AWS::EC2::LaunchTemplate LaunchTemplateData.

Syntax

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

JSON

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

YAML

DeviceName: String Ebs: Ebs NoDevice: String VirtualName: 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: Ebs

Update requires: No interruption

NoDevice

To omit the device from the block device mapping, specify an empty string.

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

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.