## Provider Section ##
provider "aws" {
  region = var.region
}

provider "kubernetes" {
  host                   = data.aws_eks_cluster.digsys-p3-eks.endpoint
  cluster_ca_certificate = base64decode(data.aws_eks_cluster.digsys-p3-eks.certificate_authority[0].data)
  token                  = data.aws_eks_cluster_auth.digsys-p3-eks-token.token
}

provider "helm" {
  kubernetes {
    host                   = data.aws_eks_cluster.digsys-p3-eks.endpoint
    cluster_ca_certificate = base64decode(data.aws_eks_cluster.digsys-p3-eks.certificate_authority[0].data)
    token                  = data.aws_eks_cluster_auth.digsys-p3-eks.token
  }
}
