Skip to content

Commit

Permalink
fix: not using problematic template provider
Browse files Browse the repository at this point in the history
  • Loading branch information
jfavellar90 committed Nov 14, 2023
1 parent 7649372 commit 1b7ea1d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
6 changes: 1 addition & 5 deletions infra-examples/aws/k8s-cluster/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -190,15 +190,11 @@ module "karpenter" {
#------------------------------------------------------------------------------
# SUPPORTING RESOURCES
#------------------------------------------------------------------------------
data "template_file" "eks-console-full-access" {
template = file("${path.module}/yml/eks-console-full-access.yaml")
vars = {}
}

# add an AWS IAM Role definition providing AWS console access to
# AWS EKS cluster instances.
resource "kubectl_manifest" "eks-console-full-access" {
yaml_body = data.template_file.eks-console-full-access.rendered
yaml_body = templatefile("${path.module}/yml/eks-console-full-access.yaml", {})
}

# to enable shell access to nodes from kubectl
Expand Down
4 changes: 0 additions & 4 deletions infra-examples/aws/k8s-cluster/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,5 @@ terraform {
source = "hashicorp/kubernetes"
version = "~> 2.20"
}
template = {
source = "hashicorp/template"
version = "~> 2.2"
}
}
}

0 comments on commit 1b7ea1d

Please sign in to comment.