-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathoutputs.tf
46 lines (39 loc) · 1.96 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
#################################################
# OUTPUTS #
#################################################
### openai account outputs ###
output "openai_endpoint" {
description = "The endpoint used to connect to the Cognitive Service Account."
value = var.create_openai_service ? module.create_openai_service[0].openai_endpoint : data.azurerm_cognitive_account.openai[0].endpoint
}
output "openai_primary_key" {
description = "The primary access key for the Cognitive Service Account."
sensitive = true
value = var.create_openai_service ? module.create_openai_service[0].openai_primary_key : data.azurerm_cognitive_account.openai[0].primary_access_key
}
output "openai_secondary_key" {
description = "The secondary access key for the Cognitive Service Account."
sensitive = true
value = var.create_openai_service ? module.create_openai_service[0].openai_secondary_key : data.azurerm_cognitive_account.openai[0].secondary_access_key
}
output "openai_subdomain" {
description = "The subdomain used to connect to the Cognitive Service Account."
value = var.create_openai_service ? module.create_openai_service[0].openai_subdomain : var.openai_custom_subdomain_name
}
output "openai_account_name" {
description = "The name of the Cognitive Service Account."
value = var.create_openai_service ? module.create_openai_service[0].openai_account_name : var.openai_account_name
}
output "openai_resource_group_name" {
description = "The name of the Resource Group hosting the Cognitive Service Account."
value = var.create_openai_service ? module.create_openai_service[0].openai_resource_group_name : var.openai_resource_group_name
}
### key vault outputs ###
output "key_vault_id" {
description = "The ID of the Key Vault."
value = azurerm_key_vault.openai_kv.id
}
output "key_vault_uri" {
description = "The URI of the Key Vault."
value = azurerm_key_vault.openai_kv.vault_uri
}