mirror of
https://github.com/storytold/terraform-aws-observability-accelerator.git
synced 2026-10-09 00:09:43 +00:00
97177eea04
* adot-container-insight-tf-code by Rajat Omar * Documentation and naming convention added * PR review fixes * PR CI pipeline fixes * pr ci run fixes * added the variables mentioned in ci build * ci variable fixes * changed the module name --------- Co-authored-by: Omar <merajat@3c0630162a5a.ant.amazon.com>
35 lines
1.0 KiB
Terraform
35 lines
1.0 KiB
Terraform
provider "aws" {
|
|
region = var.aws_region
|
|
}
|
|
|
|
provider "kubernetes" {
|
|
host = local.eks_cluster_endpoint
|
|
cluster_ca_certificate = base64decode(data.aws_eks_cluster.eks_cluster.certificate_authority[0].data)
|
|
exec {
|
|
api_version = "client.authentication.k8s.io/v1beta1"
|
|
args = ["eks", "get-token", "--cluster-name", var.eks_cluster_id]
|
|
command = "aws"
|
|
}
|
|
}
|
|
|
|
provider "helm" {
|
|
kubernetes {
|
|
host = local.eks_cluster_endpoint
|
|
cluster_ca_certificate = base64decode(data.aws_eks_cluster.eks_cluster.certificate_authority[0].data)
|
|
exec {
|
|
api_version = "client.authentication.k8s.io/v1beta1"
|
|
args = ["eks", "get-token", "--cluster-name", var.eks_cluster_id]
|
|
command = "aws"
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
# Deploy the ADOT Container Insights
|
|
|
|
module "eks_container_insights" {
|
|
source = "../../modules/eks-container-insights"
|
|
# source = "github.com/aws-observability/terraform-aws-observability-accelerator//modules/eks-container-insights?ref=v2.5.4"
|
|
eks_cluster_id = var.eks_cluster_id
|
|
}
|