Skip to content

Commit 305652d

Browse files
committed
Add variable for disabling dynamic outputs
1 parent 85c19e3 commit 305652d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

outputs.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ output "cluster_version" {
6868

6969
output "cluster_platform_version" {
7070
description = "Platform version for the cluster"
71-
value = var.disable_dynamic_outputs ? try(aws_eks_cluster.this[0].platform_version, null) : null
71+
value = var.disable_dynamic_outputs ? null : try(aws_eks_cluster.this[0].platform_version, null)
7272
}
7373

7474
output "cluster_status" {
@@ -196,7 +196,7 @@ output "cluster_iam_role_unique_id" {
196196

197197
output "cluster_addons" {
198198
description = "Map of attribute maps for all EKS cluster addons enabled"
199-
value = var.disable_dynamic_outputs ? merge(aws_eks_addon.this, aws_eks_addon.before_compute) : null
199+
value = var.disable_dynamic_outputs ? null : merge(aws_eks_addon.this, aws_eks_addon.before_compute)
200200
}
201201

202202
################################################################################

0 commit comments

Comments
 (0)