-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoutputs.tf
More file actions
83 lines (69 loc) · 2.63 KB
/
Copy pathoutputs.tf
File metadata and controls
83 lines (69 loc) · 2.63 KB
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
output "id" {
description = "PostgreSQL Flexible Server resource ID."
value = azurerm_postgresql_flexible_server.this.id
}
output "name" {
description = "PostgreSQL Flexible Server name."
value = azurerm_postgresql_flexible_server.this.name
}
output "fqdn" {
description = "PostgreSQL Flexible Server FQDN."
value = azurerm_postgresql_flexible_server.this.fqdn
}
output "version" {
description = "PostgreSQL engine version."
value = azurerm_postgresql_flexible_server.this.version
}
output "administrator_login" {
description = "PostgreSQL administrator login."
value = azurerm_postgresql_flexible_server.this.administrator_login
}
output "delegated_subnet_id" {
description = "Delegated subnet ID used by the server."
value = azurerm_postgresql_flexible_server.this.delegated_subnet_id
}
output "private_dns_zone_id" {
description = "Private DNS Zone ID used by the server."
value = azurerm_postgresql_flexible_server.this.private_dns_zone_id
}
output "public_network_access_enabled" {
description = "Whether public network access is enabled."
value = azurerm_postgresql_flexible_server.this.public_network_access_enabled
}
output "entra_authentication_enabled" {
description = "Whether Microsoft Entra ID authentication is enabled."
value = var.entra_authentication.enabled
}
output "entra_administrator_principal_names" {
description = "Configured Microsoft Entra ID administrator principal names."
value = {
for administrator_key, administrator in azurerm_postgresql_flexible_server_active_directory_administrator.this :
administrator_key => administrator.principal_name
}
}
output "cmk_enabled" {
description = "Whether customer-managed key encryption is enabled."
value = var.customer_managed_key != null
}
output "identity_principal_ids" {
description = "User-assigned identity principal IDs keyed by identity resource ID."
value = var.identity == null ? {} : var.identity.principal_ids
}
output "identity_client_ids" {
description = "User-assigned identity client IDs keyed by identity resource ID."
value = var.identity == null ? {} : var.identity.client_ids
}
output "database_ids" {
description = "Map of database resource IDs keyed by database name."
value = {
for database_name, database in azurerm_postgresql_flexible_server_database.this :
database_name => database.id
}
}
output "diagnostic_setting_ids" {
description = "Map of diagnostic setting resource IDs keyed by diagnostic setting key."
value = {
for setting_key, setting in azurerm_monitor_diagnostic_setting.this :
setting_key => setting.id
}
}