From 1f9ffb951a4242bf1f2f43195fec7037566b19be Mon Sep 17 00:00:00 2001 From: Michael Barroco Date: Thu, 7 Dec 2023 17:30:43 -0500 Subject: [PATCH] Add kubernetes provider configuration --- deploy/operations/ci/aws-1/providers.tf | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 deploy/operations/ci/aws-1/providers.tf diff --git a/deploy/operations/ci/aws-1/providers.tf b/deploy/operations/ci/aws-1/providers.tf new file mode 100644 index 000000000..542349e86 --- /dev/null +++ b/deploy/operations/ci/aws-1/providers.tf @@ -0,0 +1,17 @@ +provider "aws" { + region = "us-east-1" +} + +data "aws_eks_cluster_auth" "kubernetes_cluster" { + name = var.cluster_name +} + +data "aws_eks_cluster" "kubernetes_cluster" { + name = var.cluster_name +} + +provider kubernetes { + host = data.aws_eks_cluster.kubernetes_cluster.endpoint + cluster_ca_certificate = base64decode(data.aws_eks_cluster.kubernetes_cluster.certificate_authority[0].data) + token = data.aws_eks_cluster_auth.kubernetes_cluster.token +}