diff --git a/modules/cluster/outputs.tf b/modules/cluster/outputs.tf index cdbbd48..9b98072 100644 --- a/modules/cluster/outputs.tf +++ b/modules/cluster/outputs.tf @@ -11,6 +11,14 @@ output "cluster_oidc_issuer_url" { value = local.oidc_provider_url } +// ---------------------------------------------------------------------------- +// VPC Outputs +// ---------------------------------------------------------------------------- +output "vpc" { + description = "All outputs from the VPC module" + value = module.vpc +} + // ---------------------------------------------------------------------------- // Long Term Storage S3 Buckets (Logs, Reports, Repository) // ---------------------------------------------------------------------------- diff --git a/outputs.tf b/outputs.tf index e95bd14..1a56e62 100644 --- a/outputs.tf +++ b/outputs.tf @@ -29,6 +29,14 @@ output "lts_repository_bucket" { description = "The bucket that will serve as artifacts repository" } +// ---------------------------------------------------------------------------- +// VPC Outputs +// ---------------------------------------------------------------------------- +output "vpc" { + value = module.cluster.vpc + description = "The VPC creation outputs" +} + // ---------------------------------------------------------------------------- // Cluster Name // ---------------------------------------------------------------------------- @@ -114,4 +122,4 @@ this command is already executed as part of the apply, you may have to provide t profile as environment variables " EOT value = "aws eks update-kubeconfig --name ${var.cluster_name}" -} \ No newline at end of file +}