How to list and set tags for AWS RDS using CLI?

Dmitry Romanoff - Oct 24 '23 - - Dev Community
aws rds list-tags-for-resource --region us-east-1 \
--resource-name arn:aws:rds:us-east-1:888888888888:db:my-db-instance \
--query "TagList[]" \
--output text

 aws rds add-tags-to-resource \
    --region us-east-1 \
    --resource-name arn:aws:rds:us-east-1:888888888888:db:my-db-instance \
    --tags "[{\"Key\": \"key_1\",\"Value\": \"value_1\"},{\"Key\": \"key_2\",\"Value\": \"value_2\"}]" 
Enter fullscreen mode Exit fullscreen mode
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Terabox Video Player