Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我可以使用 get_all_security_groups() 列出所有安全组
我还可以列出安全组的入站规则。但我还想查看使用 boto 的规则(入站规则)的来源。
我试图在谷歌上找到,但看不到任何方法来查看入站规则的来源。
如果有人知道请分享
终于得到解决方案
for group in self.conn.get_all_security_groups(): for rule in group.rules: print dir(rule) for grant in rule.grants: print dir(grant)
感谢 boto 用户邮件列表