From 820088882ca232f745eab11546947bbb4ab688ed Mon Sep 17 00:00:00 2001 From: "BARRY Thierno Ibrahima (Canal Plus Prestataire)" Date: Thu, 27 May 2021 21:31:11 +0200 Subject: [PATCH] fixup --- aws_auth.tf | 2 -- data.tf | 6 ++++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/aws_auth.tf b/aws_auth.tf index f549dcce776..6eb563203d3 100644 --- a/aws_auth.tf +++ b/aws_auth.tf @@ -1,5 +1,3 @@ -data "aws_caller_identity" "current" {} - locals { auth_launch_template_worker_roles = [ for index in range(0, var.create_eks ? local.worker_group_launch_template_count : 0) : { diff --git a/data.tf b/data.tf index a7c00eb5635..875ca5e8eed 100644 --- a/data.tf +++ b/data.tf @@ -1,3 +1,7 @@ +data "aws_partition" "current" {} + +data "aws_caller_identity" "current" {} + data "aws_iam_policy_document" "workers_assume_role_policy" { statement { sid = "EKSWorkerAssumeRole" @@ -82,8 +86,6 @@ data "aws_iam_instance_profile" "custom_worker_group_launch_template_iam_instanc ) } -data "aws_partition" "current" {} - data "http" "wait_for_cluster" { count = var.create_eks && var.manage_aws_auth ? 1 : 0 url = format("%s/healthz", aws_eks_cluster.this[0].endpoint)