Skip to content

Commit f99aeff

Browse files
committed
[NRL-853] Remove incorrect optional. Remove unused cold_storage_after
1 parent 84b3f7d commit f99aeff

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

terraform/account-wide-infrastructure/modules/backup-source/backup_plan.tf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ resource "aws_backup_plan" "default" {
2020
for_each = rule.value.copy_action
2121
content {
2222
lifecycle {
23-
delete_after = copy_action.value.delete_after
24-
cold_storage_after = copy_action.value.cold_storage_after
23+
delete_after = copy_action.value.delete_after
2524
}
2625
destination_vault_arn = var.backup_copy_vault_arn
2726
}

terraform/account-wide-infrastructure/modules/backup-source/variables.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ variable "backup_plan_config" {
7878
enable = bool
7979
selection_tag = string
8080
compliance_resource_types = list(string)
81-
rules = optional(list(object({
81+
rules = list(object({
8282
name = string
8383
schedule = string
8484
enable_continuous_backup = optional(bool)
@@ -90,7 +90,7 @@ variable "backup_plan_config" {
9090
delete_after = optional(number)
9191
cold_storage_after = optional(number)
9292
})))
93-
})))
93+
}))
9494
})
9595
}
9696
variable "backup_plan_config_dynamodb" {

0 commit comments

Comments
 (0)