Skip to content

Commit

Permalink
add providers legacy
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Jul 8, 2026
1 parent 1569ae2 commit e1b18a7
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions examples/extras/datadog-agent/providers.local.tf.legacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
terraform {
required_version = ">= 0.12.31"
}

# 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" {
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
}
}

0 comments on commit e1b18a7

Please sign in to comment.