简体   繁体   English

aws resourcegroupstaggingapi 检索不存在的资源

[英]aws resourcegroupstaggingapi retrieving resource that doesn't exist

I am using the resourcegroupstaggingapi to return a list of resources so that I can check for non-compliancy (ie resources without appropriate tagging).我正在使用 resourcegroupstaggingapi 返回资源列表,以便我可以检查不合规性(即没有适当标记的资源)。

On the email that gets created daily, I keep seeing an RDS cluster that has been deleted (via console) for over a week now.在每天创建的电子邮件中,我一直看到一个 RDS 集群已被删除(通过控制台)一个多星期了。

When I run "aws rds describe-db-cluster", I get an empty response (as expected) however if I run "aws resourcegroupstaggingapi get-resources --resource-type-filters rds", it returns the cluster that I have deleted along with its tags.当我运行“aws rds describe-db-cluster”时,我得到一个空响应(如预期)但是如果我运行“aws resourcegroupstaggingapi get-resources --resource-type-filters rds”,它会返回我已删除的集群连同它的标签。

Is this a bug or does the resourcegroupstaggingapi somehow return all resources regarding of status?这是一个错误还是 resourcegroupstaggingapi 以某种方式返回有关状态的所有资源?

Thanks, Adam谢谢,亚当

Could you please double check your commands.能否请您仔细检查您的命令。 The following:下列:

aws rds describe-db-cluster

is only for Aurora and it will not list regular RDS databases.仅适用于 Aurora ,不会列出常规 RDS 数据库。 To list regular RDS databases , along with aurora ones, you have to use:列出常规 RDS 数据库以及 aurora数据库,您必须使用:

aws rds describe-db-instances

So maybe you are expecting regular databases to be deleted, but since you are using command only for Aurora, you think that there are no regular RDS instances?所以也许您期望删除常规数据库,但由于您仅对 Aurora 使用命令,您认为没有常规 RDS 实例吗? Similarly, you resource groups have been created for RDS instances, or DB clusters (Aurora)?同理,你的资源组是为RDS实例创建的,还是数据库集群(Aurora)?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM