Created
June 30, 2016 18:44
-
-
Save aheld/a421b7a9d2f310960910d2ea991b726e to your computer and use it in GitHub Desktop.
get RDS tags using AWS cli , this really seems too complicated
From this issue you can now do this with the resourcegroupstaggingapi
aws resourcegroupstaggingapi get-resources --resource-type-filters rds:db --tag-filters Key=Level
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is still the only way to do it it seems.
I came up with this one liner and it seemed to work for me:
aws rds describe-db-instances --query "DBInstances[].DBInstanceArn" | grep "arn" | awk -F "," '{print $1}' | xargs -i sh -c 'echo {}; aws rds list-tags-for-resource --resource-name {}'