File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ resource "aws_db_instance" "this" {
6161 monitoring_interval = var. monitoring_interval
6262 monitoring_role_arn = var. monitoring_role_arn
6363 multi_az = var. multi_az
64- name = replace ( var. name , " /[^A-Za-z0-9]/ " , " " )
64+ name = var. database_name
6565 parameter_group_name = local. parameter_group_name
6666 password = local. password
6767 performance_insights_enabled = var. performance_insights_enabled
Original file line number Diff line number Diff line change @@ -96,6 +96,12 @@ variable "cloudwatch_log_exports" {
9696 ]
9797}
9898
99+ variable "database_name" {
100+ default = null
101+ description = " Name of the initial database to create. (null for none)"
102+ type = string
103+ }
104+
99105variable "enable_deletion_protection" {
100106 default = true
101107 description = " If `true`, deletion protection will be turned on for the RDS instance(s)"
You can’t perform that action at this time.
0 commit comments