AWS::EC2::Instance Volume - 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 (PDF).

AWS::EC2::Instance Volume

Specifies a volume to attach to an instance.

Volume is an embedded property of the AWS::EC2::Instance resource.

Syntax

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

JSON

{ "Device" : String, "VolumeId" : String }

YAML

Device: String VolumeId: String

Properties

Device

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

Required: Yes

Type: String

Update requires: No interruption

VolumeId

The ID of the EBS volume. The volume and instance must be within the same Availability Zone.

Required: Yes

Type: String

Update requires: No interruption