From 6c300cdd37c52ae43a92a66e8529550e8dab032b Mon Sep 17 00:00:00 2001 From: Paul Bastide Date: Tue, 14 Nov 2023 21:33:05 -0500 Subject: [PATCH] OCTOPUS-555: harden the create_new vpc ssh key Signed-off-by: Paul Bastide --- modules/1_vpc_prepare/keys/outputs.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/1_vpc_prepare/keys/outputs.tf b/modules/1_vpc_prepare/keys/outputs.tf index c0980f9..eea4b65 100644 --- a/modules/1_vpc_prepare/keys/outputs.tf +++ b/modules/1_vpc_prepare/keys/outputs.tf @@ -4,9 +4,9 @@ ################################################################ output "vpc_check_key" { - value = var.vpc_create || var.create_custom_subnet ? module.create_new[0].vpc_check_key : module.check.check_key + value = var.vpc_create || var.create_custom_subnet ? module.create_new.vpc_check_key : module.check.check_key } output "vpc_key_id" { - value = var.vpc_create || var.create_custom_subnet ? module.create_new[0].vpc_key_id : module.check.keys + value = var.vpc_create || var.create_custom_subnet ? module.create_new.vpc_key_id : module.check.keys }