fix(infra): increase curated-corpus-api Aurora backup retention to 7 days (HNT-2677) - #394
Open
mmiermans wants to merge 1 commit into
Open
fix(infra): increase curated-corpus-api Aurora backup retention to 7 days (HNT-2677)#394mmiermans wants to merge 1 commit into
mmiermans wants to merge 1 commit into
Conversation
|
Claude finished @mmiermans's task in 1m 13s —— View job Code Review: Aurora backup retention
Reviewed the diff against 🟡 Title/description say "4 days" but the code sets 7The PR title and body describe raising prod retention to 4 days, but the implementation uses 7: // infrastructure/curated-corpus-api/src/config/index.ts:25-29
// ... 7 days gives more time to recover ...
backupRetentionPeriod: isDev ? 1 : 7,The commit message ( ✅ Looks good
Minor notes (non-blocking)
Overall: ✅ approve once the 4-vs-7 wording is reconciled. |
Plan Result (curated-corpus-api-cdk-production)
Change Result (Click me) # aws_rds_cluster.rds_rds_cluster_1A0399FD will be updated in-place
~ resource "aws_rds_cluster" "rds_rds_cluster_1A0399FD" {
~ backup_retention_period = 1 -> 7
id = "curatedcorpusapi-prod20210927235441510200000001"
tags = {
"app_code" = "pocket-content-shared"
"component_code" = "content-curatedcorpusapi"
"env_code" = "prod"
"environment" = "Prod"
"service" = "CuratedCorpusAPI"
}
# (43 unchanged attributes hidden)
# (1 unchanged block hidden)
}
Plan: 0 to add, 1 to change, 0 to destroy. |
…days (HNT-2677) The prod Aurora MySQL cluster had no backupRetentionPeriod set, so it used the AWS default of 1 day, leaving only a single automated backup and a one-day point-in-time-recovery window. Set it to 7 days for prod (dev stays at 1). Storage cost is negligible (cluster volume is ~2 GB); applies online with no downtime or instance replacement.
mmiermans
force-pushed
the
HNT-2677-increase-corpus-aurora-backup-retention
branch
from
June 11, 2026 23:47
20c852f to
eab19d7
Compare
mmiermans
marked this pull request as ready for review
June 12, 2026 15:07
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Goal
The prod curated-corpus-api Aurora cluster had no
backupRetentionPeriodset, so it used the AWS default of 1 day, resulting in a single automated backup. This PR raises it to 7 days such that we have more time to recover data, in case data corruption is not immediately apparent. Dev stays at 1 day.Deployment steps
This can simply be merged in, without any service interruption.
Source: Backup retention period — Amazon RDS User Guide
References
JIRA ticket: