From 4c3754e79f810a3f4a37d64d5ece29f8c2a94e1d2d0550a75d830ad537217970 Mon Sep 17 00:00:00 2001 From: xpk Date: Fri, 13 Mar 2026 14:18:11 +0800 Subject: [PATCH] feat: revamped aws-backup module --- modules/storage/aws-backup/README.md | 2 +- modules/storage/aws-backup/variables.tf | 22 +++++++++++----------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/modules/storage/aws-backup/README.md b/modules/storage/aws-backup/README.md index aa2d575..8553e07 100644 --- a/modules/storage/aws-backup/README.md +++ b/modules/storage/aws-backup/README.md @@ -37,7 +37,7 @@ No modules. | backup\_kms\_key | KMS key arn for AWS Backup | `string` | `null` | no | | daily-backup-cron | Daily backup rule cron expression | `string` | n/a | yes | | daily-backup-retention | Daily backup retention period | `number` | n/a | yes | -| enable-monthly-backup | Enable monthly backup plan | `bool` | `false` | no | +| enable-monthly-backup | Enable monthly backup plan. In most cases, monthly backup is not useful. | `bool` | `false` | no | | enable-vss | Enable VSS for Windows Ec2 | `bool` | `false` | no | | monthly-backup-cron | Monthly backup rule cron expression | `string` | `null` | no | | monthly-backup-retention | Monthly backup retention period | `number` | `null` | no | diff --git a/modules/storage/aws-backup/variables.tf b/modules/storage/aws-backup/variables.tf index a72de2a..db6ce9c 100644 --- a/modules/storage/aws-backup/variables.tf +++ b/modules/storage/aws-backup/variables.tf @@ -3,17 +3,23 @@ variable "daily-backup-cron" { description = "Daily backup rule cron expression" } +variable "daily-backup-retention" { + type = number + description = "Daily backup retention period" +} + +variable "enable-monthly-backup" { + description = "Enable monthly backup plan. In most cases, monthly backup is not useful." + type = bool + default = false +} + variable "monthly-backup-cron" { type = string description = "Monthly backup rule cron expression" default = null } -variable "daily-backup-retention" { - type = number - description = "Daily backup retention period" -} - variable "monthly-backup-retention" { type = number description = "Monthly backup retention period" @@ -49,12 +55,6 @@ variable "backup_kms_key" { default = null } -variable "enable-monthly-backup" { - description = "Enable monthly backup plan" - type = bool - default = false -} - variable "enable-vss" { type = bool description = "Enable VSS for Windows Ec2"