Skip to main content

volume_attachments

Retrieves a list of volume_attachments in a region

Overview

Namevolume_attachments
TypeResource
Descriptionvolume_attachments
Idawscc.ec2.volume_attachments

Fields

NameDatatypeDescription
volume_idundefinedThe ID of the Amazon EBS volume. The volume and instance must be within the same Availability Zone. This value can be a reference to an [AWS::EC2::Volume](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ebs-volume.html) resource, or it can be the volume ID of an existing Amazon EBS volume.
instance_idundefinedThe ID of the instance to which the volume attaches. This value can be a reference to an [AWS::EC2::Instance](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html) resource, or it can be the physical ID of an existing EC2 instance.
regionstringAWS region.

Methods

Currently only SELECT is supported for this resource resource.

Example

SELECT
region,
volume_id,
instance_id
FROM awscc.ec2.volume_attachments
WHERE region = 'us-east-1'

Permissions

To operate on the volume_attachments resource, the following permissions are required:

Create

ec2:AttachVolume,
ec2:DescribeVolumes

List

ec2:DescribeVolumes