-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathaccount_output.tf
55 lines (46 loc) · 1.71 KB
/
account_output.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
# Output account reference
output "cosmosdb_id" {
value = azurerm_cosmosdb_account.this.id
description = "Cosmos DB Account ID"
}
output "cosmosdb_endpoint" {
value = azurerm_cosmosdb_account.this.endpoint
description = "Cosmos DB Endpoint"
}
output "cosmosdb_read_endpoint" {
value = azurerm_cosmosdb_account.this.read_endpoints
description = "Cosmos DB Read Endpoint"
}
output "cosmosdb_write_endpoint" {
value = azurerm_cosmosdb_account.this.write_endpoints
description = "Cosmos DB Write Endpoint"
}
output "cosmosdb_primary_key" {
value = azurerm_cosmosdb_account.this.primary_key
sensitive = true
description = "Cosmos DB Primary Keys"
}
output "cosmosdb_secondary_key" {
value = azurerm_cosmosdb_account.this.secondary_key
sensitive = true
description = "Cosmos DB Secondary Keys"
}
output "cosmosdb_primary_readonly_key" {
value = azurerm_cosmosdb_account.this.primary_readonly_key
sensitive = true
description = "Cosmos DB Primary Read Only Keys"
}
output "cosmosdb_secondary_readonly_key" {
value = azurerm_cosmosdb_account.this.secondary_readonly_key
sensitive = true
description = "Cosmos DB Secondary Read Only Keys"
}
output "cosmosdb_connection_strings" {
value = azurerm_cosmosdb_account.this.connection_strings
sensitive = true
description = "Cosmos DB Connection Strings"
}
output "cosmosdb_systemassigned_identity" {
value = var.enable_systemassigned_identity ? zipmap(["tenant_id", "principal_id"], [azurerm_cosmosdb_account.this.identity[0].tenant_id, azurerm_cosmosdb_account.this.identity[0].principal_id]) : {}
description = "Cosmos DB System Assigned Identity (Tenant ID and Principal ID)"
}