aliases | category | classification | date | date_modified | draft | id | image | links | local_archive_links | pinned | series | tags | title | type | |||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
aws |
public |
2019-12-24 05:18:00 -0800 |
2019-12-24 05:18:00 -0800 |
false |
20191224131800 |
false |
false |
|
List Volume Device ID for an EC2 Instance |
tech-note |
List the ID of a volume attached to an EC2 instance, using the AWS CLI.
$ aws ec2 describe-volumes --filters "Name=attachment.instance-id,Values=<instance-id>" --query "Volumes[].Attachments[].{DeviceName:Device}" --region <region> --output text