From c2ca6697d808f2a4a430ba0931ab44cbe5a294cc Mon Sep 17 00:00:00 2001 From: David Cheung Date: Tue, 18 Aug 2020 18:19:24 -0400 Subject: [PATCH] fix: incorrect database variable reference --- templates/terraform/modules/database/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/terraform/modules/database/main.tf b/templates/terraform/modules/database/main.tf index 43718ed..4e167d4 100644 --- a/templates/terraform/modules/database/main.tf +++ b/templates/terraform/modules/database/main.tf @@ -9,7 +9,7 @@ module "rds_security_group" { number_of_computed_ingress_with_source_security_group_id = 1 computed_ingress_with_source_security_group_id = [ - var.database == "postgres" ? { + var.database_engine == "postgres" ? { from_port = 5432 to_port = 5432 protocol = "tcp"