Skip to content

Commit

Permalink
variables updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Halil Bozan authored and Halil Bozan committed Jul 8, 2024
1 parent e3d777b commit bfc1ee8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion modules/aws-rds-sql-server-read-replica/sql-server.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions modules/aws-rds-sql-server-read-replica/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
################################################################################
Expand Down

0 comments on commit bfc1ee8

Please sign in to comment.