mirror of
https://github.com/storytold/terraform-aws-observability-accelerator.git
synced 2026-10-09 00:09:43 +00:00
b84e9b800f
* 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>
47 lines
1.5 KiB
Terraform
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
|
|
}
|