Skip to content

Commit

Permalink
feat: Output eks module to get access to it's outputs (#272)
Browse files Browse the repository at this point in the history
  • Loading branch information
msvticket authored Jun 7, 2021
1 parent 4064553 commit 2aedebe
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions modules/cluster/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ output "cluster_token" {
value = data.aws_eks_cluster_auth.cluster.token
}

output "eks_module" {
value = module.cluster.eks
description = "The output of the terraform-aws-modules/eks/aws module for use in terraform"
}

// ----------------------------------------------------------------------------
// Long Term Storage S3 Buckets (Logs, Reports, Repository)
// ----------------------------------------------------------------------------
Expand Down
6 changes: 5 additions & 1 deletion outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ output "lts_repository_bucket" {
}

// ----------------------------------------------------------------------------
// Cluster Name
// Cluster
// ----------------------------------------------------------------------------
output "cluster_name" {
value = local.cluster_name
Expand All @@ -42,6 +42,10 @@ output "cluster_oidc_issuer_url" {
description = "The Cluster OIDC Issuer URL"
}

output "eks_module" {
value = module.cluster.eks_module
description = "The output of the terraform-aws-modules/eks/aws module for use in terraform"
}

// ----------------------------------------------------------------------------
// Generated IAM Roles
Expand Down

0 comments on commit 2aedebe

Please sign in to comment.