From dc2b116e5ec64c92d8cab0415faa03e06c51eb94 Mon Sep 17 00:00:00 2001 From: "Matthew C. Morgan" Date: Mon, 13 Jan 2025 19:24:44 -0500 Subject: [PATCH] fully qualified function --- .pre-commit-config.yaml | 20 ++++++++++---------- eks_console_access.tf | 6 +----- 2 files changed, 11 insertions(+), 15 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index bdad379..bb1a43e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -46,16 +46,16 @@ repos: - id: terraform_docs args: - --hook-config=--parallelism-ci-cpu-cores=2 - - id: terraform_tflint - name: Terraform validate with tflint - description: Validates all Terraform configuration files with TFLint. - require_serial: true - entry: hooks/terraform_tflint.sh - language: script - files: (\.tf|\.tfvars)$ - exclude: \.(terraform/.*|terragrunt-cache)$ - args: - - --hook-config=--parallelism-ci-cpu-cores=2 + # - id: terraform_tflint + # name: Terraform validate with tflint + # description: Validates all Terraform configuration files with TFLint. + # require_serial: true + # entry: hooks/terraform_tflint.sh + # language: script + # files: (\.tf|\.tfvars)$ + # exclude: \.(terraform/.*|terragrunt-cache)$ + # args: + # - --hook-config=--parallelism-ci-cpu-cores=2 - id: terragrunt_fmt name: Terragrunt fmt description: Rewrites all Terragrunt configuration files to a canonical format. diff --git a/eks_console_access.tf b/eks_console_access.tf index 8dc01f9..923529e 100644 --- a/eks_console_access.tf +++ b/eks_console_access.tf @@ -45,12 +45,8 @@ data "http" "cluster_roles" { # # Apply the Kubernetes manifests to the cluster resource "kubernetes_manifest" "deploy_cluster_roles" { - # depends_on = [null_resource.cluster_roles] for_each = { for k, v in local.cluster_roles_map : k => v if v.enabled } - triggers = { - roles = join(",", [each.key, each.value.url]) - } - manifest = manifest_decode(data.http.cluster_roles[each.key].body) + manifest = provider::kubernetes::manifest_decode(data.http.cluster_roles[each.key].body) } # resource "null_resource" "apply_cluster_roles" {