mirror of
https://github.com/storytold/terraform-aws-observability-accelerator.git
synced 2026-10-09 00:09:43 +00:00
🎉 Deploy the ADOT operator with cert-manager 1.8.0
This commit is contained in:
+28
-3
@@ -2,15 +2,40 @@ provider "aws" {
|
||||
region = local.region
|
||||
}
|
||||
|
||||
data "aws_eks_cluster_auth" "this" {
|
||||
name = var.eks_cluster_id
|
||||
}
|
||||
|
||||
data "aws_eks_cluster" "this" {
|
||||
name = var.eks_cluster_id
|
||||
}
|
||||
|
||||
provider "kubernetes" {
|
||||
host = local.eks_cluster_endpoint
|
||||
cluster_ca_certificate = base64decode(data.aws_eks_cluster.this.certificate_authority[0].data)
|
||||
token = data.aws_eks_cluster_auth.this.token
|
||||
}
|
||||
|
||||
provider "helm" {
|
||||
kubernetes {
|
||||
host = local.eks_cluster_endpoint
|
||||
cluster_ca_certificate = base64decode(data.aws_eks_cluster.this.certificate_authority[0].data)
|
||||
token = data.aws_eks_cluster_auth.this.token
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
locals {
|
||||
name = basename(path.cwd)
|
||||
region = var.aws_region
|
||||
|
||||
vpc_cidr = "10.0.0.0/16"
|
||||
//azs = slice(data.aws_availability_zones.available.names, 0, 3)
|
||||
eks_oidc_issuer_url = replace(data.aws_eks_cluster.this.identity[0].oidc[0].issuer, "https://", "")
|
||||
eks_cluster_endpoint = data.aws_eks_cluster.this.endpoint
|
||||
eks_cluster_version = data.aws_eks_cluster.this.version
|
||||
|
||||
tags = {
|
||||
GithubRepo = "github.com/aws-ia/terraform-aws-observability-accelerator"
|
||||
Source = "github.com/aws-ia/terraform-aws-observability-accelerator"
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -7,3 +7,7 @@ output "aws_region" {
|
||||
description = "AWS Region"
|
||||
value = module.eks_observability_accelerator.aws_region
|
||||
}
|
||||
|
||||
output "eks_cluster_version" {
|
||||
value = module.eks_observability_accelerator.eks_cluster_version
|
||||
}
|
||||
|
||||
@@ -63,9 +63,7 @@ module "eks_observability_accelerator" {
|
||||
# # -- or using existing amg workspace. so we can use API for keys
|
||||
# managed_grafana_workspace_id = var.managed_grafana_workspace_id
|
||||
|
||||
tags = {
|
||||
Env = "Test"
|
||||
}
|
||||
tags = local.tags
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user