Skip to content

Commit 4a63a93

Browse files
committed
chore: wip
1 parent ccacf40 commit 4a63a93

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

.stacks/core/buddy/src/commands/cloud.ts

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,11 +258,19 @@ export function cloud(buddy: CLI) {
258258
process.exit(ExitCode.FatalError)
259259
}
260260

261+
// log.info('Removing any Backup Vaults...')
262+
// const result5 = await deleteBackupVaults()
263+
264+
// if (result5.isErr()) {
265+
// await outro('While deleting the Backup Vaults, there was an issue', { startTime, useSeconds: true }, result5.error)
266+
// process.exit(ExitCode.FatalError)
267+
// }
268+
261269
log.info('Removing any CDK remnants...')
262-
const result5 = await deleteCdkRemnants()
270+
const result6 = await deleteCdkRemnants()
263271

264-
if (result5.isErr()) {
265-
await outro('While deleting the Stacks log groups, there was an issue', { startTime, useSeconds: true }, result5.error)
272+
if (result6.isErr()) {
273+
await outro('While deleting the Stacks log groups, there was an issue', { startTime, useSeconds: true }, result6.error)
266274
process.exit(ExitCode.FatalError)
267275
}
268276

.stacks/core/cloud/src/cloud.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,7 @@ export class StacksCloud extends Stack {
374374
const vault = new backup.BackupVault(this, 'BackupVault', {
375375
backupVaultName: `${this.appName}-${appEnv}-daily-backup-vault`,
376376
encryptionKey: this.encryptionKey,
377+
removalPolicy: RemovalPolicy.DESTROY,
377378
})
378379
const plan = backup.BackupPlan.daily35DayRetention(this, 'BackupPlan', vault)
379380

0 commit comments

Comments
 (0)