【问题标题】:how to find the attached ebs volume for an instance如何查找实例的附加 ebs 卷
【发布时间】:2014-12-25 03:19:13
【问题描述】:

在给定 ec2 instanceid 的情况下,有没有办法找到附加到实例的 ebs 卷 ID 像

curl -s http://169.254.169.254/???? 

或 aws-cli

【问题讨论】:

    标签: amazon-web-services aws-cli


    【解决方案1】:

    使用 aws-cli,您可以这样做:

    aws ec2 describe-instances --instance-ids xxxxxxxx
    

    其中 xxxxxxx 是您所追求的实例 ID。它会为您提供更多信息,而不仅仅是 ebs volumne id,但它在那里供您解析。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-11-19
      • 2021-03-06
      • 2018-12-29
      • 2017-12-05
      • 1970-01-01
      • 2014-11-05
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多