From bfc1ee894a3bdc9f669b1d87cfef267b58fac374 Mon Sep 17 00:00:00 2001 From: Halil Bozan Date: Mon, 8 Jul 2024 15:13:24 +0300 Subject: [PATCH] variables updated --- modules/aws-rds-sql-server-read-replica/sql-server.tf | 2 +- modules/aws-rds-sql-server-read-replica/variables.tf | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/aws-rds-sql-server-read-replica/sql-server.tf b/modules/aws-rds-sql-server-read-replica/sql-server.tf index 6208288..a1b9506 100644 --- a/modules/aws-rds-sql-server-read-replica/sql-server.tf +++ b/modules/aws-rds-sql-server-read-replica/sql-server.tf @@ -155,7 +155,7 @@ resource "aws_db_instance" "rds_sql_server_read_replica" { maintenance_window = var.preferred_maintenance_window deletion_protection = var.deletion_protection - copy_tags_to_snapshot = true + copy_tags_to_snapshot = var.copy_tags_to_snapshot skip_final_snapshot = var.skip_final_snapshot instance_class = var.instance_class diff --git a/modules/aws-rds-sql-server-read-replica/variables.tf b/modules/aws-rds-sql-server-read-replica/variables.tf index 5210b92..9e6ee5d 100644 --- a/modules/aws-rds-sql-server-read-replica/variables.tf +++ b/modules/aws-rds-sql-server-read-replica/variables.tf @@ -342,6 +342,12 @@ variable "option_name" { default = "" } +variable "copy_tags_to_snapshot" { + description = "Copy all Cluster `tags` to snapshots" + type = bool + default = true +} + ################################################################################ # Security Group ################################################################################