From 07d80a696d488ebac384c4b41a1e3bf26e93cee1 Mon Sep 17 00:00:00 2001 From: Jooeun Date: Tue, 20 Aug 2019 15:41:48 +0900 Subject: [PATCH] add apply_immediately option to db instance --- main.tf | 1 + variables.tf | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/main.tf b/main.tf index 0577035..a72535d 100644 --- a/main.tf +++ b/main.tf @@ -101,6 +101,7 @@ resource "aws_rds_cluster_instance" "db" { engine_version = "${var.mysql_version}" db_parameter_group_name = "${aws_db_parameter_group.db.name}" db_subnet_group_name = "${aws_db_subnet_group.db.name}" + apply_immediately = "${var.apply_immediately}" } ### dns records diff --git a/variables.tf b/variables.tf index 7c4b226..3ea63f4 100644 --- a/variables.tf +++ b/variables.tf @@ -82,3 +82,8 @@ variable "dns_zone" { variable "dns_zone_id" { description = "The hosted zone id for internal dns, e.g., ZFD3TFKDJ1L" } + +variable "apply_immediately" { + description = "pecifies whether any database modifications are applied immediately, or during the next maintenance window" + default = false +}