From a19ea5258597241e3e663af5b47ca973dfe89ac1 Mon Sep 17 00:00:00 2001 From: Byungjin Park Date: Wed, 19 Jun 2024 18:54:41 +0900 Subject: [PATCH] Fix dependency issue on aws_eks_cluster data source --- VERSION | 2 +- modules/eks-addon/main.tf | 2 +- modules/eks-addon/outputs.tf | 8 ++++++++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 3f45a64..12a91df 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.26.3 +0.26.4 diff --git a/modules/eks-addon/main.tf b/modules/eks-addon/main.tf index f5cb9a5..598d19f 100644 --- a/modules/eks-addon/main.tf +++ b/modules/eks-addon/main.tf @@ -54,7 +54,7 @@ resource "aws_eks_addon" "this" { ################################################### data "aws_eks_cluster" "this" { - name = var.cluster_name + name = aws_eks_addon.this.cluster_name } data "aws_eks_addon_version" "default" { diff --git a/modules/eks-addon/outputs.tf b/modules/eks-addon/outputs.tf index cfae9ea..40ce1e8 100644 --- a/modules/eks-addon/outputs.tf +++ b/modules/eks-addon/outputs.tf @@ -62,3 +62,11 @@ output "updated_at" { description = "Date and time in RFC3339 format that the EKS add-on was updated." value = aws_eks_addon.this.modified_at } + +# output "debug" { +# value = { +# for k, v in aws_eks_addon.this : +# k => v +# if !contains(["id", "arn", "cluster_name", "addon_name", "addon_version", "service_account_role_arn", "resolve_conflicts_on_create", "resolve_conflicts_on_update", "created_at", "modified_at", "tags", "tags_all"], k) +# } +# }