2 Answers
- Newest
- Most votes
- Most comments
0
Have you tried using -Filter with attachment.instance-id - The ID of the instance the volume is attached to
Reference : https://docs.aws.amazon.com/powershell/latest/reference/items/Get-EC2Volume.html
0
i tried this but I coudnt get anything
get-ec2volume -filter @{name='attachment.instance-id';values='{instance_id}'}
answered 2 years ago
Relevant content
- asked 2 months ago
- asked 2 years ago
- asked 2 years ago
- asked 2 years ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated 9 months ago