Follow dba-ninja.com

Subscribe to RSS feed  Follow @jackvamvas - Twitter

*Use the Comments section for questions

dba-ninja.com Links

Dba_db2_button

Sqlserver_dba_button

How to view resource tags in AWS Backup using list-tags

20 November,2023 by Rambler

Question : Is it possible to view the Tags of a Resource , such as RDS , DynamoDB or Aurora when the resource is backed up through AWS Backup and is residing in the Backup Vault ? 

If it's possible how do we view the  tags using AWS CLI?

Answer:  It is possible to view the Resource Tags once the resource is in the Vault.   The backup api  has a list-tags function that accepts the RecoveryPointArn to interrogate the resource 

Step 1 : Get the RecoveryPointArn , for example this CLI command will return all the RecoveryPointArns in a specific Vault. 

aws backup list-recovery-points-by-backup-vault --backup-vault-name MyBackupVault --query "RecoveryPoints[*].[RecoveryPointArn,ResourceType]"

Step 2: Use the RecoveryPointArn and then feed into this command 

aws backup list-tags --resource-arn arn:aws:backup:xxxxx-b:000000000:recovery-point:jljlkjlkjkjlkjlkjlkjlkjlkjlkj

{
"Tags": {
"MyTag1 ": "myValue1 "
}
}

 

Read the AWS CLi documentation for more details 

 

 

AWS CLI Cheatsheet - RDS, AWS Backup , DMS, IAM, Security Token Service,KMS,EC2, DynamoDB,VPC,Aurora, Aurora Global,RESOURCEGROUPSTAGGINGAPI,DocumentDB

 


Author: Rambler (http://www.dba-ninja.com)


Share:

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment on How to view resource tags in AWS Backup using list-tags


dba-ninja.com