Skip to content

Commit

Permalink
add toggle for apply_immediately
Browse files Browse the repository at this point in the history
  • Loading branch information
drpebcak committed Dec 3, 2019
1 parent 4f6821c commit 3c1ba72
Show file tree
Hide file tree
Showing 3 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 @@ -7,6 +7,7 @@ This terraform module creates a documentDB cluster.

| Name | Description | Type | Default | Required |
|------|-------------|:----:|:-----:|:-----:|
| apply\_immediately | Specifies whether any cluster modifications are applied immediately, or during the next maintenance window. | bool | `"false"` | no |
| backup\_retention\_period | | number | `"7"` | no |
| cluster\_instance\_class | | string | `"db.r5.large"` | no |
| cluster\_instance\_count | | number | `"1"` | no |
Expand Down
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ resource "aws_docdb_cluster" "api_docdb" {
master_username = var.master_username
master_password = var.master_password
storage_encrypted = var.storage_encrypted
apply_immediately = var.apply_immediately

backup_retention_period = var.backup_retention_period
preferred_backup_window = var.preferred_backup_window
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,9 @@ variable "parameters" {
type = list(map(any))
default = []
}

variable "apply_immediately" {
default = false
description = "Specifies whether any cluster modifications are applied immediately, or during the next maintenance window."
type = bool
}

0 comments on commit 3c1ba72

Please sign in to comment.