Created
March 17, 2020 04:23
-
-
Save cam8001/ad3b116a73e743a53542450f9914c8d8 to your computer and use it in GitHub Desktop.
Get all AWS Backup recovery point ARNs as a simple list
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
aws backup list-recovery-points-by-backup-vault --backup-vault-name Default --query 'RecoveryPoints[*].[RecoveryPointArn]' --output text |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
while read line; do aws backup delete-recovery-point --backup-vault-name Default --recovery-point-arn $line; done < vaults.txt