Skip to content

Commit

Permalink
Backtrack (#57)
Browse files Browse the repository at this point in the history
* Adding backtrack option for RDS cluster

* Adding backtrack option for RDS cluster

* Adding backtrack option for RDS cluster

* Adding backtrack option for RDS cluster
  • Loading branch information
jamengual authored and aknysh committed Oct 16, 2019
1 parent edb6c36 commit 5ff3342
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
1 change: 1 addition & 0 deletions docs/terraform.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}


Expand Down

0 comments on commit 5ff3342

Please sign in to comment.