powershell get-ec2volume for instance

0

how do I use get-ec2volume for an instanceid?

drago
asked 2 years ago587 views
2 Answers
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

profile pictureAWS
EXPERT
answered 2 years ago
0

i tried this but I coudnt get anything

get-ec2volume -filter @{name='attachment.instance-id';values='{instance_id}'}

drago
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions