This repository has been archived by the owner on Oct 25, 2022. It is now read-only.
generated from ministryofjustice/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 2
/
outputs.tf
109 lines (84 loc) · 2.89 KB
/
outputs.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
###################################### Env #################################################
output "assume_role" {
value = var.assume_role
}
output "env" {
value = terraform.workspace
}
####################################### Hostnames #################################################
output "grafana_hostname_v2" {
value = module.grafana_v2.domain
}
output "prometheus_hostname_v2" {
value = module.prometheus_v2.hostname
}
output "snmp_exporter_hostname_v2" {
value = module.snmp_exporter_v2.hostname
}
output "blackbox_exporter_hostname_v2" {
value = module.blackbox_exporter_v2.hostname
}
output "internal_hosted_zone_domain" {
value = {
name = aws_route53_zone.internal.name
id = aws_route53_zone.internal.zone_id
}
}
####################################### Repositories #################################################
output "prometheus_repository_v2" {
value = {
registry_id = module.prometheus_v2.repository.registry_id
repository_url = module.prometheus_v2.repository.repository_url
}
}
output "snmp_exporter_repository_v2" {
value = {
registry_id = module.snmp_exporter_v2.repository.registry_id
repository_url = module.snmp_exporter_v2.repository.repository_url
}
}
output "blackbox_exporter_repository_v2" {
value = {
registry_id = module.blackbox_exporter_v2.repository.registry_id
repository_url = module.blackbox_exporter_v2.repository.repository_url
}
}
output "grafana_database_config_v2" {
value = {
grafana_db_subnet_group_name = module.grafana_v2.grafana_db_subnet_group_name
grafana_db_in_security_group_id = module.grafana_v2.db_in_security_group_id
rds_monitoring_role_arn = module.monitoring_platform_v2.rds_monitoring_role_arn
}
}
########################################### EKS Cluser ##################################
output "eks_cluster_id" {
value = module.monitoring_platform_v2.eks_cluster_id
}
output "eks_cluster_endpoint" {
value = module.monitoring_platform_v2.eks_cluster_endpoint
}
output "eks_cluster_worker_iam_role_arn" {
value = module.monitoring_platform_v2.eks_cluster_worker_iam_role_arn
}
output "prometheus_thanos_storage_bucket_name" {
value = module.prometheus-thanos-store.bucket_name
}
output "prometheus_thanos_storage_kms_key_id" {
value = module.prometheus-thanos-store.kms_key_id
}
output "cloudwatch_exporter_assume_role_arn" {
value = module.cloudwatch_exporter.assume_role_arn
}
output "cloudwatch_exporter_access_role_arns" {
value = var.cloudwatch_exporter_access_role_arns
}
output "ses_mail_from_domain" {
value = module.grafana_v2.ses_mail_from_domain
}
######################### Networking Details ###############################
output "subnet_cidr_blocks" {
value = {
public_subnet_cidr_blocks = module.monitoring_platform_v2.public_subnet_cidr_blocks
private_subnet_cidr_blocks = module.monitoring_platform_v2.private_subnet_cidr_blocks
}
}