From e1b18a76d8c631ac1300c6d9076767f1121042f3 Mon Sep 17 00:00:00 2001 From: badra001 Date: Wed, 8 Jul 2026 13:11:10 -0400 Subject: [PATCH] add providers legacy --- .../datadog-agent/providers.local.tf.legacy | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 examples/extras/datadog-agent/providers.local.tf.legacy diff --git a/examples/extras/datadog-agent/providers.local.tf.legacy b/examples/extras/datadog-agent/providers.local.tf.legacy new file mode 100644 index 0000000..c798e59 --- /dev/null +++ b/examples/extras/datadog-agent/providers.local.tf.legacy @@ -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 + } +}