From 10ed2903202d0858d3d97ee3f981eb1466f76048 Mon Sep 17 00:00:00 2001 From: Sean Rankine Date: Fri, 1 Nov 2024 11:08:52 +0000 Subject: [PATCH] Increase lifetime of non-prod db backups Now that integration backups occur weekly, we need to extend the lifecycle run to not delete them before new backups are available. This is useful for local development. --- .../deployments/govuk-publishing-infrastructure/db_backup_s3.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terraform/deployments/govuk-publishing-infrastructure/db_backup_s3.tf b/terraform/deployments/govuk-publishing-infrastructure/db_backup_s3.tf index 1a9ac4079..c51af27e0 100644 --- a/terraform/deployments/govuk-publishing-infrastructure/db_backup_s3.tf +++ b/terraform/deployments/govuk-publishing-infrastructure/db_backup_s3.tf @@ -103,7 +103,7 @@ resource "aws_s3_bucket_lifecycle_configuration" "backup_main" { id = "non-production" status = var.govuk_environment != "production" ? "Enabled" : "Disabled" filter {} - expiration { days = 2 } + expiration { days = 8 } noncurrent_version_expiration { noncurrent_days = 1 } } }