Amazon EBS volume inventory

Include EBS volumes and their data in the asset inventory.

Description

The inventory lists EBS volumes declared as AWS::EC2::Volume.

Potential impact

A volume left out of a recovery plan may have no usable snapshot.

Remediation

Record the owner, attached instance and data purpose. Check encryption, snapshot retention and what happens to the volume when it is deleted from the stack.

Examples

Encrypted: true requests encryption for the new volume. If omitted, check the account’s EBS encryption default in that Region. For an existing unencrypted volume, migrate the data to an encrypted volume using a snapshot.

Before

yaml
AWSTemplateFormatVersion: '2010-09-09'
Resources:
  NewVolume:
    Type: AWS::EC2::Volume
    Properties:
      Size: 100
      AvailabilityZone: us-east-1a

After

yaml
AWSTemplateFormatVersion: '2010-09-09'
Resources:
  NewVolume:
    Type: AWS::EC2::Volume
    Properties:
      Size: 100
      AvailabilityZone: us-east-1a
      Encrypted: true

References