diff --git a/README.md b/README.md index 6a3de0e0..486b99f9 100644 --- a/README.md +++ b/README.md @@ -259,6 +259,7 @@ Available targets: | autoscaling_scale_out_cooldown | The amount of time, in seconds, after a scaling activity completes and before the next scaling up activity can start. Default is 300s | number | `300` | no | | autoscaling_target_metrics | The metrics type to use. If this value isn't provided the default is CPU utilization | string | `RDSReaderAverageCPUUtilization` | no | | autoscaling_target_value | The target value to scale with respect to target metrics | number | `75` | no | +| backtrack_window | The target backtrack window, in seconds. Only available for aurora engine currently. Must be between 0 and 259200 (72 hours) | number | `0` | no | | backup_window | Daily time range during which the backups happen | string | `07:00-09:00` | no | | cluster_dns_name | Name of the cluster CNAME record to create in the parent DNS zone specified by `zone_id`. If left empty, the name will be auto-asigned using the format `master.var.name` | string | `` | no | | cluster_family | The family of the DB cluster parameter group | string | `aurora5.6` | no | diff --git a/docs/terraform.md b/docs/terraform.md index c968c645..db356809 100644 --- a/docs/terraform.md +++ b/docs/terraform.md @@ -15,6 +15,7 @@ | autoscaling_scale_out_cooldown | The amount of time, in seconds, after a scaling activity completes and before the next scaling up activity can start. Default is 300s | number | `300` | no | | autoscaling_target_metrics | The metrics type to use. If this value isn't provided the default is CPU utilization | string | `RDSReaderAverageCPUUtilization` | no | | autoscaling_target_value | The target value to scale with respect to target metrics | number | `75` | no | +| backtrack_window | The target backtrack window, in seconds. Only available for aurora engine currently. Must be between 0 and 259200 (72 hours) | number | `0` | no | | backup_window | Daily time range during which the backups happen | string | `07:00-09:00` | no | | cluster_dns_name | Name of the cluster CNAME record to create in the parent DNS zone specified by `zone_id`. If left empty, the name will be auto-asigned using the format `master.var.name` | string | `` | no | | cluster_family | The family of the DB cluster parameter group | string | `aurora5.6` | no | diff --git a/main.tf b/main.tf index e870134a..463d2444 100644 --- a/main.tf +++ b/main.tf @@ -65,6 +65,7 @@ resource "aws_rds_cluster" "default" { engine_mode = var.engine_mode global_cluster_identifier = var.global_cluster_identifier iam_roles = var.iam_roles + backtrack_window = var.backtrack_window dynamic "scaling_configuration" { for_each = var.scaling_configuration diff --git a/variables.tf b/variables.tf index 56ca89d2..ee8edf2b 100644 --- a/variables.tf +++ b/variables.tf @@ -341,7 +341,12 @@ variable "iam_roles" { type = list(string) description = "Iam roles for the Aurora cluster" default = [] +} +variable "backtrack_window" { + type = number + description = "The target backtrack window, in seconds. Only available for aurora engine currently. Must be between 0 and 259200 (72 hours)" + default = 0 }