From 6bd7d3664042343c4b1f6b28062fc3c5552cb3d2 Mon Sep 17 00:00:00 2001 From: Anthony Zawacki Date: Tue, 5 Sep 2023 10:13:47 -0400 Subject: [PATCH] Added vpc_id/vpc_cidr_block/subnets to output. --- main.tf | 2 +- outputs.tf | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/main.tf b/main.tf index 8280153..d80fc55 100644 --- a/main.tf +++ b/main.tf @@ -73,7 +73,7 @@ locals { # TBD - Why do we need nlb-policy additional_policies = { - # 'nlb-policy' = aws_iam_policy.nlb-policy.arn + # 'nlb-policy' = aws_iam_policy.nlb-policy.arn } ng_name = format("%v%v-nodegroup", local._prefixes["eks"], var.cluster_name) diff --git a/outputs.tf b/outputs.tf index 8144383..2855333 100644 --- a/outputs.tf +++ b/outputs.tf @@ -16,6 +16,25 @@ output "module_version" { value = local._module_version } +################################################################################ +# Networking information +################################################################################ + +output "vpc_id" { + description = "The VPC id where the EKS cluster was deployed." + value = local.vpc_id +} + +output "vpc_cidr_block" { + description = "The CIDR block associated with the VPC." + value = local.vpc_cidr_block +} + +output "subnets" { + description = "The subnets configured for the VPC." + value = slocal.subnets +} + ################################################################################ # IRSA Roles Created ################################################################################