Skip to content

Commit

Permalink
update example
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Nov 21, 2021
1 parent ab46a6c commit d677d55
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions examples/full-cluster/providers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,17 @@ terraform {
required_version = ">= 0.12.31"
}

provider "kubernetes" {
host = local.aws_eks_cluster.endpoint
# to import, you cannot have provider fields which count on data elements (as these locals show). You need to use the config_path.
# see these for more info:
# https://github.com/hashicorp/terraform-provider-kubernetes/issues/793
# https://www.terraform.io/docs/cli/commands/import.html#provider-configuration
# https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs

provider "kubernetes" {
host = local.aws_eks_cluster.endpoint
cluster_ca_certificate = base64decode(local.aws_eks_cluster.certificate_authority[0].data)
token = local.aws_eks_cluster_auth.token
# config_path = "${path.root}/setup/kube.config"
}

provider "helm" {
Expand Down

0 comments on commit d677d55

Please sign in to comment.