AWS CLI -AWS EC2 DRECUD -VOLUMES可以在表中的音量大小和音量类型
我正在尝试获取所有EBS卷ID的表,实例ID的附件以及通过AWS CLI的卷的大小/类型。 当ID工作正常时,我没有获得大小/类型的输出。
我尝试了以下命令:
aws ec2 describe-volumes --output table --query 'Volumes[*].Attachments[0].{VolumeID:VolumeId,InstanceID:InstanceId,size:Size,type:VolumeType}'
我得到了此输出:
感谢您的帮助! :)
I'm trying to get a table of all ebs volume ID's, the instance ID's their attached to and the size/type of the volume via the AWS CLI.
While the ID's are working fine, I'm not getting any output for the size/type.
I tried the following command:
aws ec2 describe-volumes --output table --query 'Volumes[*].Attachments[0].{VolumeID:VolumeId,InstanceID:InstanceId,size:Size,type:VolumeType}'
And I got this output:
Thanks for helping! :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)