aws-cli icon indicating copy to clipboard operation
aws-cli copied to clipboard

--instance-id is an unknown option to describe-volumes

Open phpguru opened this issue 12 years ago • 2 comments

root@slave ~> echo $AWS_INSTANCE_ID
i-b80906b3
root@slave ~> aws ec2 describe-volumes --instance-id i-b80906b3

Unknown options: --instance-id, i-b80906b3

Here is my version info (CentOS 6.5, EPEL 6, Python pip)

root@slave ~> aws ec2 --version
aws-cli/1.4.4 Python/2.6.6 Linux/2.6.32-431.29.2.el6.x86_64

phpguru avatar Oct 02 '14 16:10 phpguru

aws ec2 describe-volumes synopsis only has the following: [--dry-run | --no-dry-run] [--volume-ids ] [--filters ]

You'll need to query the instance for it's volume (try aws ec2 describe-instance-attribute --instance-id i-b80906b3 --attribute blockDeviceMapping) , then pass --volume-ids to the above command

digitaljedi2 avatar Oct 02 '14 16:10 digitaljedi2

Don't know what the heck I was looking at. And it's not even a Monday.

phpguru avatar Oct 02 '14 16:10 phpguru