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