diff --git a/.github/workflows/terrafrom-plan-and-apply.yml b/.github/workflows/terrafrom-plan-and-apply.yml index 04897411fc..78d0c72e6c 100644 --- a/.github/workflows/terrafrom-plan-and-apply.yml +++ b/.github/workflows/terrafrom-plan-and-apply.yml @@ -6,9 +6,13 @@ on: push: branches: - main + paths: + - "infra/terraform/**" pull_request: branches: - main + paths: + - "infra/terraform/**" permissions: id-token: write diff --git a/infra/terraform/rds.tf b/infra/terraform/rds.tf index 39c46d27b0..daaab8b76d 100644 --- a/infra/terraform/rds.tf +++ b/infra/terraform/rds.tf @@ -42,14 +42,17 @@ module "rds-aurora" { } performance_insights_enabled = true - apply_immediately = true - skip_final_snapshot = true + backup_retention_period = 7 + apply_immediately = true + skip_final_snapshot = false + + deletion_protection = true enable_http_endpoint = true serverlessv2_scaling_configuration = { min_capacity = 0 - max_capacity = 10 + max_capacity = 50 seconds_until_auto_pause = 3600 }