21832: Allows to control whether RDS should be snapshotted before deletion.
[arvados.git] / tools / salt-install / terraform / aws / services / variables.tf
index 583ba709764eb0d4c67db04d9c00fe27dfcc0cdb..1f1cca050c1b2ab786f61d65d969e7fb1e738f92 100644 (file)
@@ -78,3 +78,31 @@ variable "rds_max_allocated_storage" {
   type = number
   default = 300
 }
+
+variable "rds_backup_retention_period" {
+  description = "RDS Backup retention (days). Set to 0 to disable"
+  type = number
+  default = 7
+  validation {
+    condition = (var.rds_backup_retention_period <= 35)
+    error_message = "rds_backup_retention_period should be less than 36 days"
+  }
+}
+
+variable "rds_backup_before_deletion" {
+  description = "Create a snapshot before deleting the RDS instance"
+  type = bool
+  default = true
+}
+
+variable "rds_final_backup_name" {
+  description = "Snapshot name to use for the RDS final snapshot"
+  type = string
+  default = ""
+}
+
+variable "rds_postgresql_version" {
+  description = "RDS PostgreSQL version"
+  type = string
+  default = "15"
+}