Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions infrastructure/modules/aws-backup-source/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ No requirements.
| <a name="input_restore_testing_plan_scheduled_expression"></a> [restore\_testing\_plan\_scheduled\_expression](#input\_restore\_testing\_plan\_scheduled\_expression) | Scheduled Expression of Recovery Selection Point | `string` | `"cron(0 1 ? * SUN *)"` | no |
| <a name="input_restore_testing_plan_selection_window_days"></a> [restore\_testing\_plan\_selection\_window\_days](#input\_restore\_testing\_plan\_selection\_window\_days) | Selection window days | `number` | `7` | no |
| <a name="input_restore_testing_plan_start_window"></a> [restore\_testing\_plan\_start\_window](#input\_restore\_testing\_plan\_start\_window) | Start window from the scheduled time during which the test should start | `number` | `1` | no |
| <a name="input_vault_max_retention_days"></a> [vault\_max\_retention\_days](#input\_vault\_max\_retention\_days) | Maximum retention days for the vault lock | `number` | `35` | no |
| <a name="input_vault_min_retention_days"></a> [vault\_min\_retention\_days](#input\_vault\_min\_retention\_days) | Minimum retention days for the vault lock | `number` | `7` | no |
## Modules

No modules.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ resource "aws_backup_framework" "dynamodb" {

input_parameter {
name = "requiredRetentionDays"
value = "35"
value = "31"
}
}

Expand All @@ -65,7 +65,7 @@ resource "aws_backup_framework" "dynamodb" {

input_parameter {
name = "requiredRetentionDays"
value = "35"
value = "31"
}

input_parameter {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ resource "aws_backup_framework" "s3" {

input_parameter {
name = "requiredRetentionDays"
value = "35"
value = "31"
}
}

Expand All @@ -65,7 +65,7 @@ resource "aws_backup_framework" "s3" {

input_parameter {
name = "requiredRetentionDays"
value = "35"
value = "31"
}

input_parameter {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
resource "aws_backup_vault_lock_configuration" "main" {
backup_vault_name = aws_backup_vault.main.name
changeable_for_days = 30
max_retention_days = var.vault_max_retention_days
min_retention_days = var.vault_min_retention_days
}
12 changes: 12 additions & 0 deletions infrastructure/modules/aws-backup-source/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -221,3 +221,15 @@ variable "backup_plan_config_dynamodb" {
]
}
}

variable "vault_max_retention_days" {
type = number
description = "Maximum retention days for the vault lock"
default = 35
}

variable "vault_min_retention_days" {
type = number
description = "Minimum retention days for the vault lock"
default = 7
}
Loading