如何在MySQL中使用Python获取没有特定标记的所有实例?

时间:2016-03-18 15:52:40

标签: python mysql amazon-web-services

我正在尝试获取没有特定标记的实例名称列表。 (NoAlarms)。

以下是我现在使用的内容:

lst_instances = GetListRDSIdentifiers(accesskey, secretkey)
lst_expected_alarms = []
for inst in lst_instances:
    if "relprac" not in inst.lower() 
do xxxxx

现在我想添加另一个条件,如果选择了所有没有标记“NoAlarms”的实例。我如何实现这一目标?我知道它可能只是添加类似

的东西
for tags in 1st_instances:
 if "NoAlarms" not in tags.tags

但我不知道该怎么办。我们使用的是RDS而不是EC2。

我该如何解决这个问题?

0 个答案:

没有答案