volume_attachment
Gets an individual volume_attachment
resource
Overview
Name | volume_attachment |
Type | Resource |
Description | volume_attachment |
Id | awscc.ec2.volume_attachment |
Fields
Name | Datatype | Description |
---|---|---|
volume_id | string | The 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_id | string | The 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. |
device | string | The device name (for example, ``/dev/sdh`` or ``xvdh``). |
region | string | AWS region. |
Methods
Currently only SELECT
is supported for this resource resource.
Example
SELECT
region,
volume_id,
instance_id,
device
FROM awscc.ec2.volume_attachment
WHERE data__Identifier = '<VolumeId>|<InstanceId>';
Permissions
To operate on the volume_attachment
resource, the following permissions are required:
Read
ec2:DescribeVolumes
Delete
ec2:DetachVolume,
ec2:DescribeVolumes