Skip to content

Commit

Permalink
fully qualified function
Browse files Browse the repository at this point in the history
  • Loading branch information
morga471 committed Jan 14, 2025
1 parent 466c10d commit dc2b116
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 15 deletions.
20 changes: 10 additions & 10 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 1 addition & 5 deletions eks_console_access.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit dc2b116

Please sign in to comment.