We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2dac59a commit 57cca5eCopy full SHA for 57cca5e
.github/workflows/cron-tear-down-test.yml
@@ -78,12 +78,21 @@ jobs:
78
79
- name: Pre-cleanup AWS Backup Recovery Points
80
run: |
81
+ BACKUP_VAULT_EXISTS=$(aws backup list-backup-vaults \
82
+ --region eu-west-2 \
83
+ --query "BackupVaultList[?BackupVaultName=='${{ matrix.sandbox-name }}_backup_vault']" \
84
+ --output text)
85
+
86
+ if [ -z "$BACKUP_VAULT_EXISTS" ]; then
87
+ exit 0
88
+ fi
89
90
RECOVERY_POINTS=$(aws backup list-recovery-points-by-backup-vault \
91
--backup-vault-name ${{ matrix.sandbox-name }}_backup_vault \
92
--region eu-west-2 \
93
--query 'RecoveryPoints[*].RecoveryPointArn' \
94
--output text)
-
95
96
for ARN in $RECOVERY_POINTS; do
97
echo "Deleting recovery point: $ARN"
98
aws backup delete-recovery-point \
0 commit comments