-
Notifications
You must be signed in to change notification settings - Fork 20
/
outputs.tf
161 lines (128 loc) · 5.18 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
output "vpc" {
description = "VPC network information"
value = {
id = module.base-infrastructure.vpc.vpc_id
public_subnets_cidr = module.base-infrastructure.vpc.public_subnets_cidr_blocks
private_subnets_cidr = module.base-infrastructure.vpc.private_subnets_cidr_blocks
}
}
output "eks" {
description = "EKS cluster information"
value = {
cluster_name = local.cluster_name
}
sensitive = true
}
output "ingress" {
description = "Ingress controller deployed to access the products from outside of the cluster"
value = var.domain != null ? {
load_balancer_hostname = module.base-infrastructure.ingress.outputs.lb_hostname
certificate = module.base-infrastructure.ingress.outputs.certificate_arn
} : {
load_balancer_hostname = module.base-infrastructure.ingress.outputs.lb_hostname
certificate = "Certificate is not provisioned"
}
}
output "jira_database" {
description = "Jira Database information"
value = local.install_jira && length(module.jira) == 1 ? {
rds_instance_id = module.jira[0].rds_instance_id
db_name = module.jira[0].db_name
kubernetes_secret_name = module.jira[0].kubernetes_rds_secret_name
jdbc_connection = module.jira[0].rds_jdbc_connection
} : null
}
output "confluence_database" {
description = "Confluence database information"
value = local.install_confluence && length(module.confluence) == 1 ? {
rds_instance_id = module.confluence[0].rds_instance_id
db_name = module.confluence[0].db_name
kubernetes_secret_name = module.confluence[0].kubernetes_rds_secret_name
jdbc_connection = module.confluence[0].rds_jdbc_connection
} : null
}
output "bitbucket_database" {
description = "Bitbucket database information"
value = local.install_bitbucket && length(module.bitbucket) == 1 ? {
rds_instance_id = module.bitbucket[0].rds_instance_id
db_name = module.bitbucket[0].db_name
kubernetes_secret_name = module.bitbucket[0].kubernetes_rds_secret_name
jdbc_connection = module.bitbucket[0].rds_jdbc_connection
} : null
}
output "bamboo_database" {
description = "Bamboo Database information"
value = local.install_bamboo && length(module.bamboo) == 1 ? {
rds_instance_id = module.bamboo[0].rds_instance_id
db_name = module.bamboo[0].db_name
kubernetes_secret_name = module.bamboo[0].kubernetes_rds_secret_name
jdbc_connection = module.bamboo[0].rds_jdbc_connection
} : null
}
output "crowd_database" {
description = "Crowd Database information"
value = local.install_crowd && length(module.crowd) == 1 ? {
rds_instance_id = module.crowd[0].rds_instance_id
db_name = module.crowd[0].db_name
kubernetes_secret_name = module.crowd[0].kubernetes_rds_secret_name
jdbc_connection = module.crowd[0].rds_jdbc_connection
} : null
}
output "product_urls" {
description = "URLs to access the deployed Atlassian products"
value = {
jira = local.install_jira && length(module.jira) == 1 ? module.jira[0].product_domain_name : null
bitbucket = local.install_bitbucket && length(module.bitbucket) == 1 ? module.bitbucket[0].product_domain_name : null
bamboo = local.install_bamboo && length(module.bamboo) == 1 ? module.bamboo[0].product_domain_name : null
confluence = local.install_confluence && length(module.confluence) == 1 ? module.confluence[0].product_domain_name : null
crowd = local.install_crowd && length(module.crowd) == 1 ? module.crowd[0].product_domain_name : null
}
}
output "synchrony_url" {
description = "URL to access the Synchrony (collaborative editing)"
value = var.confluence_collaborative_editing_enabled && length(module.confluence) == 1 ? module.confluence[0].synchrony_url : null
}
output "opensearch_url" {
description = "URL to access the Bitbucket elasticsearch"
value = local.install_bitbucket && length(module.bitbucket) == 1 ? module.bitbucket[0].opensearch_endpoint : null
}
output "confluence_s3_bucket" {
description = "Confluence S3 bucket name"
value = var.confluence_s3_attachments_storage ? "${local.cluster_name}-confluence-storage" : null
}
output "jira_rds_snapshot" {
value = local.jira_rds_snapshot_id
}
output "jira_ebs_snapshot" {
value = local.jira_ebs_snapshot_id
}
output "jira_local_home_snapshot" {
value = local.jira_local_home_snapshot_id
}
output "confluence_rds_snapshot" {
value = local.confluence_rds_snapshot_id
}
output "confluence_ebs_snapshot" {
value = local.confluence_ebs_snapshot_id
}
output "confluence_local_home_snapshot" {
value = local.confluence_local_home_snapshot_id
}
output "confluence_db_snapshot_build_number" {
value = local.confluence_db_snapshot_build_number
}
output "bitbucket_rds_snapshot" {
value = local.bitbucket_rds_snapshot_id
}
output "bitbucket_ebs_snapshot" {
value = local.bitbucket_ebs_snapshot_id
}
output "crowd_rds_snapshot" {
value = local.crowd_rds_snapshot_id
}
output "crowd_ebs_snapshot" {
value = local.crowd_ebs_snapshot_id
}
output "crowd_db_snapshot_build_number" {
value = local.crowd_db_snapshot_build_number
}