From 1352a54dc84d9eb93ada693db2a0748015e08a7e Mon Sep 17 00:00:00 2001 From: Nick Wales Date: Thu, 22 Sep 2022 16:34:19 -0500 Subject: [PATCH 1/2] Passes some useful outputs to root module --- deployment/aws/aws/outputs.tf | 8 ++++++++ deployment/aws/outputs.tf | 15 +++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 deployment/aws/outputs.tf diff --git a/deployment/aws/aws/outputs.tf b/deployment/aws/aws/outputs.tf index a0af482..1f0d8d2 100644 --- a/deployment/aws/aws/outputs.tf +++ b/deployment/aws/aws/outputs.tf @@ -9,3 +9,11 @@ output "target_ips" { output "kms_recovery_key_id" { value = aws_kms_key.recovery.id } + +output "controller_instance_ip" { + value = aws_instance.controller.*.public_ip +} + +output "worker_instance_ip" { + value = aws_instance.worker.*.public_ip +} \ No newline at end of file diff --git a/deployment/aws/outputs.tf b/deployment/aws/outputs.tf new file mode 100644 index 0000000..37a3ad9 --- /dev/null +++ b/deployment/aws/outputs.tf @@ -0,0 +1,15 @@ +output "boundary_lb" { + value = module.aws.boundary_lb +} + +output "target_ips" { + value = module.aws.target_ips +} + +output "controller_ip" { + value = module.aws.controller_instance_ip.* +} + +output "worker_ip" { + value = module.aws.worker_instance_ip +} \ No newline at end of file From 219b1f2479e4b4813ec7f6cd724d588dd62377ae Mon Sep 17 00:00:00 2001 From: Nick Wales <588472+nickwales@users.noreply.github.com> Date: Fri, 30 Sep 2022 10:23:45 -0500 Subject: [PATCH 2/2] Updates "ip" to "ips" --- deployment/aws/outputs.tf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deployment/aws/outputs.tf b/deployment/aws/outputs.tf index 37a3ad9..5f5aead 100644 --- a/deployment/aws/outputs.tf +++ b/deployment/aws/outputs.tf @@ -6,10 +6,10 @@ output "target_ips" { value = module.aws.target_ips } -output "controller_ip" { +output "controller_ips" { value = module.aws.controller_instance_ip.* } -output "worker_ip" { +output "worker_ips" { value = module.aws.worker_instance_ip -} \ No newline at end of file +}