获得比我在 AWS 账户中的快照数量更多的 aws 快照

Getting higher number of aws snapshot than the snapshots I've in my AWS account

当我尝试这样做时:

conn = boto.connect_ec2(access_key = "xxxxxxx", access_secret = "yyyyyy")
snapshots = conn.get_all_snapshots()

我得到不同数量的快照(比我在控制台上看到的快照多)

但是当尝试执行时

snapshots = conn.get_all_snapshots(owner="xxxxxyyyyyyy")

我得到了我在控制台上看到的真实数量的快照。

为什么在 boto 中有这种行为。我在哪里可以找到这些额外的快照。

snapshots = conn.get_all_snapshots()

^ Returns 您有权访问的所有快照。可能有很多 public 个可访问的快照。

snapshots = conn.get_all_snapshots(owner="xxxxxyyyyyyy")  OR snapshots = conn.get_all_snapshots(owner="self") 

xxxxxyyyyyy > AWS_Account_ID

^^ Returns 您拥有的快照。


致: @BMW

参考:https://github.com/boto/boto/issues/2031