File tree Expand file tree Collapse file tree 4 files changed +63
-349
lines changed Expand file tree Collapse file tree 4 files changed +63
-349
lines changed Original file line number Diff line number Diff line change 30
30
31
31
| Name | Type |
32
32
| ------| ------|
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 |
34
34
| [ aws_eks_cluster.this] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/eks_cluster ) | data source |
35
35
| [ 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 |
36
37
37
38
## Inputs
38
39
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
+ }
2
16
3
17
locals {
4
18
signoz_config = {
@@ -28,9 +42,9 @@ locals {
28
42
cpu_request = " 100m"
29
43
memory_request = " 200Mi"
30
44
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 } "
34
48
}
35
49
36
50
alertmanager = {
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ terraform {
33
33
}
34
34
35
35
data "aws_eks_cluster" "this" {
36
- name = " ${ var . namespace } - ${ var . environment } -cluster"
36
+ name = " arc-poc -cluster"
37
37
}
38
38
39
39
data "aws_eks_cluster_auth" "this" {
You can’t perform that action at this time.
0 commit comments