File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
317locals {
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 = {
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ terraform {
3333}
3434
3535data "aws_eks_cluster" "this" {
36- name = " ${ var . namespace } - ${ var . environment } -cluster"
36+ name = " arc-poc -cluster"
3737}
3838
3939data "aws_eks_cluster_auth" "this" {
You can’t perform that action at this time.
0 commit comments