-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.tf
78 lines (63 loc) · 2.01 KB
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
resource "helm_release" "alerts-feedback" {
name = "alerts-feedback"
repository = "./chart"
version = "0.0.2"
chart = "."
namespace = "alerting-dashboard"
create_namespace = true
wait = false
recreate_pods = true
values = [file("${path.module}/variables/${terraform.workspace}_values.yaml"),]
set_sensitive {
name = "ingress.dnsZone"
value = data.aws_ssm_parameter.dns_zone.value
}
set_sensitive {
name = "ingress.rootDnsZone"
value = data.aws_ssm_parameter.root_dns_zone.value
}
set_sensitive {
name = "ingress.annotations.alb\\.ingress\\.kubernetes\\.io/certificate-arn"
value = "${data.aws_ssm_parameter.certificate_arn.value}\\,${data.aws_ssm_parameter.root_certificate_arn.value}"
}
set_sensitive {
name = "ingress.annotations.alb\\.ingress\\.kubernetes\\.io/subnets"
value = data.aws_ssm_parameter.subnets.value
}
set_sensitive {
name = "ingress.annotations.alb\\.ingress\\.kubernetes\\.io/security-groups"
value = data.aws_ssm_parameter.security_groups.value
}
set {
name = "force.deployment"
value = var.force_deployment
}
set {
name = "image.tag"
value = var.docker_img_tag
}
}
data "aws_ssm_parameter" "dns_zone" {
name = "${terraform.workspace}_dns_zone"
}
data "aws_ssm_parameter" "root_dns_zone" {
name = "${terraform.workspace}_root_dns_zone"
}
data "aws_ssm_parameter" "certificate_arn" {
name = "${terraform.workspace}_certificate_arn"
}
data "aws_ssm_parameter" "root_certificate_arn" {
name = "${terraform.workspace}_root_certificate_arn"
}
data "aws_ssm_parameter" "subnets" {
name = "${terraform.workspace}_public_subnets"
}
data "aws_ssm_parameter" "security_groups" {
name = "${terraform.workspace}_security_group_id"
}
data "aws_ssm_parameter" "cluster_ca_certificate" {
name = "${terraform.workspace}_eks_cluster_cert_auth_data"
}
data "aws_ssm_parameter" "cluster_endpoint" {
name = "${terraform.workspace}_eks_cluster_endpoint"
}