简体   繁体   中英

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).

On the email that gets created daily, I keep seeing an RDS cluster that has been deleted (via console) for over a week now.

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.

Is this a bug or does the resourcegroupstaggingapi somehow return all resources regarding of status?

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. To list regular RDS databases , along with aurora ones, you have to use:

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? Similarly, you resource groups have been created for RDS instances, or DB clusters (Aurora)?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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