-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutputs.tf
122 lines (101 loc) · 3.56 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
locals {
default_unset_value = "notset"
postgres = length(module.database) > 0 ? {
database_name = module.database[0].postgres_database_name
password = module.database[0].postgres_password
host = module.database[0].postgres_host
username = module.database[0].postgres_username
} : null
blob_storage = {
account_name = module.clickhouse_backup.azure_blob_account_name
account_key = module.clickhouse_backup.azure_blob_account_key
container = module.clickhouse_backup.azure_blob_container
}
adls = length(module.data_lake) > 0 ? {
account_key = module.data_lake[0].adls_account_key
account_name = module.data_lake[0].adls_account_name
filesystem = module.data_lake[0].adls_filesystem
} : null
}
# Cloud Provider Information
output "cloud_provider" {
description = "The cloud provider being used (always 'azure' for this module)"
value = "azure"
}
output "resource_group_name" {
description = "The resource group where resources were deployed"
value = local.resource_group_name
}
# Network Information
output "vpc_cidr" {
description = "The CIDR block of the VPC"
value = module.networking.vpc_cidr
}
output "load_balancer_ips" {
description = "The public IP addresses assigned to the load balancer"
value = module.load_balancer.lb_ip
}
output "vnet_name" {
value = module.networking.vnet_name
description = "The name of the virtual network"
}
output "public_ip_jumpbox" {
description = "The private IP address of the jumpbox"
value = module.networking.public_ip_jumpbox
}
# Domain Information
output "domain_name" {
description = "The domain name configured for the deployment"
value = var.domain_name
}
# Cluster Information
output "cluster_name" {
description = "The name of the AKS cluster"
value = module.aks.cluster_name
}
# Database Information
output "postgres_database_name" {
description = "The name of the PostgreSQL database"
value = try(local.postgres.database_name, local.default_unset_value)
}
output "postgres_host" {
description = "The hostname of the PostgreSQL server"
value = try(local.postgres.host, local.default_unset_value)
}
output "postgres_username" {
description = "The username for PostgreSQL database access"
value = try(local.postgres.username, local.default_unset_value)
}
output "postgres_password" {
description = "The password for PostgreSQL database access"
value = try(local.postgres.password, local.default_unset_value)
sensitive = true
}
# Azure Blob Storage Information
output "azure_blob_account_name" {
description = "The name of the Azure Blob Storage account"
value = local.blob_storage.account_name
}
output "azure_blob_account_key" {
description = "The access key for the Azure Blob Storage account"
value = local.blob_storage.account_key
sensitive = true
}
output "azure_blob_container" {
description = "The name of the Azure Blob Storage container"
value = local.blob_storage.container
}
# ADLS Information
output "adls_account_name" {
description = "The name of the Azure Data Lake Storage account"
value = try(local.adls.account_name, local.default_unset_value)
}
output "adls_account_key" {
description = "The access key for the Azure Data Lake Storage account"
value = try(local.adls.account_key, local.default_unset_value)
sensitive = true
}
output "adls_filesystem" {
description = "The filesystem details for the Azure Data Lake Storage"
value = try(local.adls.filesystem, local.default_unset_value)
}