Skip to content
This repository was archived by the owner on Mar 27, 2024. It is now read-only.

Commit 165a34b

Browse files
committed
backport fix: prefer subnet ID from module
Fixes terraform-aws-modules#359
1 parent aab1bff commit 165a34b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
locals {
22
master_password = var.create_db_instance && var.create_random_password ? random_password.master_password[0].result : var.password
3-
db_subnet_group_name = var.replicate_source_db != null ? null : coalesce(var.db_subnet_group_name, module.db_subnet_group.this_db_subnet_group_id)
3+
db_subnet_group_name = var.replicate_source_db != null ? null : try(module.db_subnet_group.this_db_subnet_group_id, var.db_subnet_group_name)
44

55
parameter_group_name_id = var.create_db_parameter_group ? module.db_parameter_group.this_db_parameter_group_id : var.parameter_group_name
66

0 commit comments

Comments
 (0)