【问题标题】:Getting AWS Security group rule ID获取 AWS 安全组规则 ID
【发布时间】:2021-09-22 02:14:11
【问题描述】:

有谁知道如何通过 AWS SDK 获取此安全组规则 ID?

我用这个

aws ec2 describe-security-groups --group-ids sg-0ad9f9694512344

但似乎没有返回任何以 sgr- 开头的东西

【问题讨论】:

    标签: amazon-web-services amazon-ec2 aws-sdk


    【解决方案1】:

    安全组规则 ID 是最近才引入的(2021 年 7 月)。

    见:Easily Manage Security Group Rules with the New Security Group Rule ID | AWS News Blog

    因此,您的 SDK 可能需要更新

    我检查了适用于 Python 的 AWS 开发工具包 (boto3),它已经有 describe_security_group_rules() 可用。

    AWS CLI 还有:describe-security-group-rules

    【讨论】:

      猜你喜欢
      • 2018-08-25
      • 2019-07-28
      • 2023-03-29
      • 1970-01-01
      • 2016-06-12
      • 2015-11-13
      • 2021-05-08
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多