1
在AWS docs看它说,你可以使用过滤器来获取或值,如:AWS资源标签或与博托
tag:key=value
The key/value combination of a tag assigned to the resource.
Example: To list the resources with the tag Purpose=X, use:
--filter tag:Purpose=X
Example: To list resources with the tag Purpose=X or the tag Purpose=Y, use:
--filter tag:Purpose=X --filter tag:Purpose=Y
但在博托你存储在字典中的标签(从获得的所有快照) :
“filters(dict) - 可用于限制返回结果的可选过滤器过滤器以过滤器名称作为键和过滤器值作为值组成的字典形式提供允许的过滤器名称/值取决于正在执行的请求。有关详细信息,请查阅EC2 API指南。“
如果你想做一个OR,那么你的字典中需要两个条目,其中'tag:Purpose'键显然不起作用。有谁知道这是否有解决方法?或者博托不支持OR值过滤?