We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62a6f87 commit 8b6600cCopy full SHA for 8b6600c
main.tf
@@ -9,7 +9,7 @@ locals {
9
computed_major_engine_version = var.engine == "postgres" ? join(".", slice(split(".", var.engine_version), 0, 1)) : join(".", slice(split(".", var.engine_version), 0, 2))
10
major_engine_version = var.major_engine_version == "" ? local.computed_major_engine_version : var.major_engine_version
11
12
- subnet_ids_provided = var.subnet_ids != null && length(var.subnet_ids) > 0
+ subnet_ids_provided = var.subnet_ids != null && try(length(var.subnet_ids), 0) > 0
13
db_subnet_group_name_provided = var.db_subnet_group_name != null && var.db_subnet_group_name != ""
14
is_replica = try(length(var.replicate_source_db), 0) > 0
15
0 commit comments