# EC2 Volume

## Resource Type

`AWS.EC2.Volume`

## Resource ID Format

For EC2 Volumes, the resource ID is the ARN.

`arn:aws:ec2:us-west-2:123456789012:volume/vol-1`

## Background

This resource represents a snapshot of an AWS EC2 Volume.

## Fields

| Field              | Type      | Description                                                                                                                                                            |
| ------------------ | --------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `Attachments`      | `List`    | What devices this volume is attached to                                                                                                                                |
| `AvailabilityZone` | `String`  | The Availability Zone for the volume.                                                                                                                                  |
| `Encrypted`        | `Bool`    | Indicates whether the volume is encrypted                                                                                                                              |
| `Iops`             | `Integer` | The number of I/O operations per second (IOPS).                                                                                                                        |
| `KmsKeyId`         | `String`  | The Amazon Resource Name (ARN) of the AWS Key Management Service (AWS KMS) customer master key (CMK) that was used to protect the volume encryption key for the volume |
| `Size`             | `Integer` | The size of the volume, in GiBs.                                                                                                                                       |
| `SnapshotId`       | `String`  | The snapshot from which the volume was created.                                                                                                                        |
| `VolumeType`       | `String`  | The volume type.                                                                                                                                                       |
| `Snapshots`        | `List`    | A list with a snapshot description.                                                                                                                                    |
| `State`            | `String`  | The volume state.                                                                                                                                                      |

```javascript
{
    "AccountId": "123456789012",
    "Arn": "arn:aws:ec2:us-west-2:123456789012:volume/vol-1",
    "Attachments": [
        {
            "AssociatedResource": null,
            "AttachTime": "2019-01-01T00:00:00Z",
            "DeleteOnTermination": false,
            "Device": "/dev/sdf",
            "InstanceId": "i-1",
            "InstanceOwningService": null,
            "State": "attached",
            "VolumeId": "vol-1"
        }
    ],
    "AvailabilityZone": "us-west-2b",
    "Encrypted": false,
    "Id": "vol-1",
    "Iops": 100,
    "KmsKeyId": null,
    "Region": "us-west-2",
    "ResourceId": "arn:aws:ec2:us-west-2:123456789012:volume/vol-1",
    "ResourceType": "AWS.EC2.Volume",
    "Size": 1,
    "SnapshotId": "snap-1",
    "Snapshots": [
        {
            "AvailabilityZone": null,
            "CompletionDurationMinutes": null,
            "CompletionTime": "2025-12-18T17:45:29.945Z",
            "CreateVolumePermissions": null,
            "DataEncryptionKeyId": null,
            "Description": "volume snapshot",
            "Encrypted": false,
            "FullSnapshotSizeInBytes": 1728577536,
            "KmsKeyId": null,
            "OutpostArn": null,
            "OwnerAlias": null,
            "OwnerId": "123456789012",
            "Progress": "100%",
            "RestoreExpiryTime": null,
            "SnapshotId": "snap-1",
            "SseType": null,
            "StartTime": "2019-01-01T00:00:00.000Z",
            "State": "completed",
            "StateMessage": null,
            "StorageTier": "standard",
            "Tags": null,
            "TransferType": "standard",
            "VolumeId": "vol-1",
            "VolumeSize": 1
        }
    ],
    "State": "in-use",
    "Tags": {
        "Key1": "Value1",
        "Key2": "Value2"
    },
    "TimeCreated": "2019-01-01T00:00:00.000Z",
    "VolumeType": "gp2"
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.panther.com/cloud-scanning/cloud-resource-attributes/aws/ec2-volume.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
