Skip to content

Commit

Permalink
Increase lifetime of non-prod db backups
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
theseanything authored Nov 1, 2024
1 parent 23d1f2b commit 10ed290
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
}
}
Expand Down

0 comments on commit 10ed290

Please sign in to comment.