From e545867c602d6c052d3a738620a5a5859db05c09 Mon Sep 17 00:00:00 2001 From: "Matthew C. Morgan" Date: Mon, 13 Jan 2025 17:06:37 -0500 Subject: [PATCH] strip dir stuff --- eks_console_access.tf | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/eks_console_access.tf b/eks_console_access.tf index 766e46a..ee2f871 100644 --- a/eks_console_access.tf +++ b/eks_console_access.tf @@ -42,11 +42,10 @@ data "http" "cluster_roles" { resource "null_resource" "cluster_roles" { for_each = local.cluster_roles_map triggers = { - roles = join(",", [each.key, each.value.url]) - directory = null_resource.setup_directory.triggers.directory + roles = join(",", [each.key, each.value.url]) } provisioner "local-exec" { - command = "echo '${data.http.cluster_roles[each.key].body}' > ${self.triggers.directory}/${each.value.name}.yaml" + command = "echo '${data.http.cluster_roles[each.key].body}' > ${each.value.name}.yaml" } } @@ -60,6 +59,6 @@ resource "null_resource" "apply_cluster_roles" { environment = { KUBECONFIG = "${path.root}/setup/kube.config" } - command = "kubectl apply -f setup/${each.value.name}.yaml" + command = "kubectl apply -f ${each.value.name}.yaml" } }