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
This is only a preview. Your comment has not yet been posted.
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.
Posted by: |