Skip to content

Commit 837c5df

Browse files
committed
signoz version upgrade
1 parent 2599a59 commit 837c5df

File tree

4 files changed

+63
-349
lines changed

4 files changed

+63
-349
lines changed

examples/signoz/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,10 @@
3030

3131
| Name | Type |
3232
|------|------|
33-
| [aws_caller_identity.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/caller_identity) | data source |
33+
| [aws_acm_certificate.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/acm_certificate) | data source |
3434
| [aws_eks_cluster.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/eks_cluster) | data source |
3535
| [aws_eks_cluster_auth.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/eks_cluster_auth) | data source |
36+
| [aws_ssm_parameter.domain](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/ssm_parameter) | data source |
3637

3738
## Inputs
3839

examples/signoz/locals.tf

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
1-
data "aws_caller_identity" "current" {}
1+
data "aws_ssm_parameter" "domain" {
2+
name = "/iac/route53/domain"
3+
with_decryption = true
4+
}
5+
6+
locals {
7+
domain = data.aws_ssm_parameter.domain.value
8+
}
9+
10+
11+
data "aws_acm_certificate" "this" {
12+
domain = "*.${local.domain}"
13+
types = ["AMAZON_ISSUED"]
14+
most_recent = true
15+
}
216

317
locals {
418
signoz_config = {
@@ -28,9 +42,9 @@ locals {
2842
cpu_request = "100m"
2943
memory_request = "200Mi"
3044
ingress_enabled = true
31-
aws_certificate_arn = "arn:aws:acm:us-east-1:${data.aws_caller_identity.current.account_id}:certificate/7e4d8c74-46e7-4d99-a523-6db4336d9a0a"
32-
root_domain = "${var.namespace}-${var.environment}.link"
33-
domain = "signoz.${var.namespace}-${var.environment}.link"
45+
aws_certificate_arn = data.aws_acm_certificate.this.arn
46+
root_domain = local.domain
47+
domain = "signoz.${local.domain}"
3448
}
3549

3650
alertmanager = {

examples/signoz/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ terraform {
3333
}
3434

3535
data "aws_eks_cluster" "this" {
36-
name = "${var.namespace}-${var.environment}-cluster"
36+
name = "arc-poc-cluster"
3737
}
3838

3939
data "aws_eks_cluster_auth" "this" {

0 commit comments

Comments
 (0)