AWS::StorageGateway::Volume

StorageGateway Volume

Creates a cached iSCSI volume on a Storage Gateway. A cached volume stores data in Amazon S3 and retains a copy of frequently accessed data subsets locally.

Properties

9 configurable properties. 4 required. Click a row to see details.

Filter:
PropertyTypeFlags
GatewayARN
string
RequiredCreate-only
NetworkInterfaceId
string
RequiredCreate-only
TargetName
string
RequiredCreate-only
VolumeSizeInBytes
number
RequiredCreate-only
KMSEncrypted
boolean
Create-onlyWrite-only
KMSKey
string
Create-only
SnapshotId
string
Create-onlyWrite-only
SourceVolumeARN
string
Create-onlyWrite-only
Tags
Array<Tag>

Return Values

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

AttributeTypeDescription
CreatedDatestringThe date the volume was created.
TargetARNstringThe Amazon Resource Name (ARN) of the volume target, which includes the iSCSI target name.
VolumeARNstringThe Amazon Resource Name (ARN) of the storage volume.
VolumeAttachmentStatusstringIndicates whether the storage volume is attached to or detached from the gateway.
VolumeIdstringThe unique identifier of the volume, extracted from the ARN.
VolumeStatusstringThe status of the storage volume.
VolumeTypestringThe type of the volume (CACHED iSCSI).
VolumeUsedInBytesnumberThe size of the data stored on the volume in bytes.

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

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

Resources:
  MyResource:
    Type: AWS::StorageGateway::Volume
    Properties:
      GatewayARN: "arn:aws:service:region:account:resource"
      TargetName: "my-targetname"
      NetworkInterfaceId: "my-networkinterfaceid"
      VolumeSizeInBytes: 1
      Tags:
        - Key: Environment
          Value: Production

Required IAM Permissions

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

create

storagegateway:CreateCachediSCSIVolumestoragegateway:DescribeCachediSCSIVolumesstoragegateway:AddTagsToResourcekms:DescribeKeykms:CreateGrantkms:GenerateDataKeyWithoutPlaintext

read

storagegateway:DescribeCachediSCSIVolumesstoragegateway:ListTagsForResource

update

storagegateway:DescribeCachediSCSIVolumesstoragegateway:AddTagsToResourcestoragegateway:RemoveTagsFromResourcestoragegateway:ListTagsForResource

delete

storagegateway:DeleteVolumestoragegateway:DescribeCachediSCSIVolumesstoragegateway:ListTagsForResource

list

storagegateway:ListVolumes

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

ServiceStorageGateway
Properties17
Required4
TaggingSupported
Primary IDVolumeARN

Supported Operations

CreateReadUpdateDeleteList

Immutable After Creation

These properties cannot be changed after the resource is created. Updating them triggers a replacement.

GatewayARNTargetNameNetworkInterfaceIdVolumeSizeInBytesSnapshotIdSourceVolumeARNKMSEncryptedKMSKey

Related Resources

External Links