AWS Fundamentals Logo
AWS Fundamentals
AWS::EC2::Volume

EC2 Volume

Specifies an Amazon Elastic Block Store (Amazon EBS) volume. You can create an empty volume, a volume from a snapshot, or a volume copy from an existing source volume. + When you use CFNlong to update an Amazon EBS volume that modifies Iops, Size, or VolumeType, there is a cooldown period before another operation can occur. This can cause your stack to report being in UPDATE_IN_PROGRESS or UPDATE_ROLLBACK_IN_PROGRESS for long periods of time. Some common scenarios when...

Properties

15 configurable properties. Click a row to see details.

Filter:
PropertyTypeFlags
AutoEnableIO
boolean
AvailabilityZone
string
AvailabilityZoneId
string
Encrypted
boolean
Iops
integer
KmsKeyId
string
MultiAttachEnabled
boolean
OutpostArn
string
Size
integer
SnapshotId
string
SourceVolumeId
string
Tags
Array<Tag>
Throughput
integer
VolumeInitializationRate
integer
VolumeType
string

Return Values

Values returned after the resource is created. Access these with Fn::GetAtt.

AttributeTypeDescription
VolumeIdstring-

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::EC2::Volume

Resources:
  MyResource:
    Type: AWS::EC2::Volume
    Properties:
      Tags:
        - Key: Environment
          Value: Production

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

create

ec2:CreateVolumeec2:CopyVolumesec2:DescribeVolumesec2:DescribeVolumeAttributeec2:ModifyVolumeAttributeec2:CreateTagskms:GenerateDataKeyWithoutPlaintextkms:CreateGrant

read

ec2:DescribeVolumesec2:DescribeVolumeAttributeec2:DescribeTags

update

ec2:ModifyVolumeec2:ModifyVolumeAttributeec2:DescribeVolumeAttributeec2:DescribeVolumesModificationsec2:DescribeVolumesec2:CreateTagsec2:DeleteTags

delete

ec2:DeleteVolumeec2:CreateSnapshotec2:DescribeSnapshotsec2:DeleteTagsec2:DescribeVolumes

list

ec2:DescribeVolumesec2:DescribeTagsec2:DescribeVolumeAttribute

Get the EC2 Cheat Sheet

Everything you need to know about EC2 on one page. HD quality, print-friendly.

Download Free Infographic

Quick Facts

ServiceEC2
Properties16
Required0
TaggingSupported
Primary IDVolumeId

Supported Operations

CreateReadUpdateDeleteList

External Links