2024-04-30 10:19:12 +08:00
|
|
|
variable "daily-backup-cron" {
|
2024-04-29 14:30:22 +08:00
|
|
|
type = string
|
2024-04-30 10:19:12 +08:00
|
|
|
description = "Daily backup rule cron expression"
|
2022-09-06 11:41:06 +08:00
|
|
|
}
|
2024-04-29 14:25:25 +08:00
|
|
|
|
2024-04-30 10:19:12 +08:00
|
|
|
variable "monthly-backup-cron" {
|
2024-04-29 14:30:22 +08:00
|
|
|
type = string
|
2024-04-30 10:19:12 +08:00
|
|
|
description = "Monthly backup rule cron expression"
|
2024-04-29 14:30:22 +08:00
|
|
|
}
|
2024-04-29 14:25:25 +08:00
|
|
|
|
2024-04-30 10:19:12 +08:00
|
|
|
variable "daily-backup-retention" {
|
2024-04-29 14:30:22 +08:00
|
|
|
type = number
|
2024-04-30 10:19:12 +08:00
|
|
|
description = "Daily backup retention period"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "monthly-backup-retention" {
|
|
|
|
type = number
|
|
|
|
description = "Monthly backup retention period"
|
2024-04-29 14:30:22 +08:00
|
|
|
}
|
2024-04-29 14:25:25 +08:00
|
|
|
|
2024-04-30 09:58:58 +08:00
|
|
|
variable "service-opt-in" {
|
|
|
|
type = map(object({
|
|
|
|
enabled = bool
|
|
|
|
}))
|
|
|
|
default = {
|
|
|
|
"Aurora" : {
|
|
|
|
enabled = false
|
|
|
|
}
|
|
|
|
"DynamoDB" : {
|
|
|
|
enabled = true
|
|
|
|
}
|
|
|
|
"EBS" : {
|
|
|
|
enabled = false
|
|
|
|
}
|
|
|
|
"EC2" : {
|
|
|
|
enabled = true
|
|
|
|
}
|
|
|
|
"EFS" : {
|
|
|
|
enabled = true
|
|
|
|
}
|
|
|
|
"FSx" : {
|
|
|
|
enabled = false
|
|
|
|
}
|
|
|
|
"Redshift" : {
|
|
|
|
enabled = true
|
|
|
|
}
|
|
|
|
"RDS" : {
|
|
|
|
enabled = true
|
|
|
|
}
|
|
|
|
"VirtualMachine" : {
|
|
|
|
enabled = false
|
|
|
|
}
|
|
|
|
"S3" : {
|
|
|
|
enabled = false
|
|
|
|
}
|
|
|
|
}
|
2024-04-29 14:25:25 +08:00
|
|
|
}
|