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 + } +}