Files
terraform-aws-observability…/examples/eks-multicluster/providers.tf
T
Vijay Chintalapati b84e9b800f Addition of EKS multi-cluster observability example (#155)
* Adding EKS multicluster observability example

* EKS multicluster example - precommit fix

* Corrected the path to an example

* Made the multicluster example simpler

* Pre-commit changes

* Saved the images to Github and linked them in docs

* Comments and language edits

* Fix trailing spaces

* Non-controversial naming and simpler variables

* Added region to the data gathering

* Formatting changes

---------

Co-authored-by: Rodrigue Koffi <bonclay7@users.noreply.github.com>
2023-05-16 10:33:23 -04:00

47 lines
1.5 KiB
Terraform

provider "kubernetes" {
host = data.aws_eks_cluster.eks_cluster_1.endpoint
cluster_ca_certificate = base64decode(data.aws_eks_cluster.eks_cluster_1.certificate_authority[0].data)
token = data.aws_eks_cluster_auth.eks_cluster_1.token
alias = "eks_cluster_1"
}
provider "kubernetes" {
host = data.aws_eks_cluster.eks_cluster_2.endpoint
cluster_ca_certificate = base64decode(data.aws_eks_cluster.eks_cluster_2.certificate_authority[0].data)
token = data.aws_eks_cluster_auth.eks_cluster_2.token
alias = "eks_cluster_2"
}
provider "helm" {
kubernetes {
host = data.aws_eks_cluster.eks_cluster_1.endpoint
cluster_ca_certificate = base64decode(data.aws_eks_cluster.eks_cluster_1.certificate_authority[0].data)
token = data.aws_eks_cluster_auth.eks_cluster_1.token
}
alias = "eks_cluster_1"
}
provider "helm" {
kubernetes {
host = data.aws_eks_cluster.eks_cluster_2.endpoint
cluster_ca_certificate = base64decode(data.aws_eks_cluster.eks_cluster_2.certificate_authority[0].data)
token = data.aws_eks_cluster_auth.eks_cluster_2.token
}
alias = "eks_cluster_2"
}
provider "aws" {
region = var.eks_cluster_1_region
alias = "eks_cluster_1"
}
provider "aws" {
region = var.eks_cluster_2_region
alias = "eks_cluster_2"
}
provider "grafana" {
url = module.aws_observability_accelerator.managed_grafana_workspace_endpoint
auth = var.grafana_api_key
}