Allow backup retention period to be configured in rds (#6)
This commit is contained in:
1 parent
628ba367fa
commit
b0dcd44b2d
3 files changed
+5
No files matched your search
@@ -63,6 +63,7 @@ module "rds" {
|
||||
database_name = "fleet"
|
||||
skip_final_snapshot = true
|
||||
snapshot_identifier = var.rds_config.snapshot_identifier
|
||||
backup_retention_period = var.rds_config.backup_retention_period
|
||||
|
||||
preferred_maintenance_window = var.rds_config.preferred_maintenance_window
|
||||
|
||||
|
||||
@@ -26,6 +26,7 @@ variable "rds_config" {
|
||||
snapshot_identifier = optional(string)
|
||||
cluster_tags = optional(map(string), {})
|
||||
preferred_maintenance_window = optional(string, "thu:23:00-fri:00:00")
|
||||
backup_retention_period = optional(number, 7)
|
||||
})
|
||||
default = {
|
||||
name = "fleet"
|
||||
@@ -45,6 +46,7 @@ variable "rds_config" {
|
||||
snapshot_identifier = null
|
||||
cluster_tags = {}
|
||||
preferred_maintenance_window = "thu:23:00-fri:00:00"
|
||||
backup_retention_period = 7
|
||||
}
|
||||
description = "The config for the terraform-aws-modules/rds-aurora/aws module"
|
||||
nullable = false
|
||||
|
||||
@@ -77,6 +77,7 @@ variable "rds_config" {
|
||||
master_username = optional(string, "fleet")
|
||||
snapshot_identifier = optional(string)
|
||||
cluster_tags = optional(map(string), {})
|
||||
backup_retention_period = optional(number, 7)
|
||||
})
|
||||
default = {
|
||||
name = "fleet"
|
||||
@@ -95,6 +96,7 @@ variable "rds_config" {
|
||||
master_username = "fleet"
|
||||
snapshot_identifier = null
|
||||
cluster_tags = {}
|
||||
backup_retention_period = 7
|
||||
}
|
||||
description = "The config for the terraform-aws-modules/rds-aurora/aws module"
|
||||
nullable = false
|
||||
|
||||
Reference in new issue
Block a user