-
Notifications
You must be signed in to change notification settings - Fork 6
/
outputs.tf
30 lines (24 loc) · 1.27 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
##############################################################################
# Outputs
##############################################################################
output "hpcs_name" {
description = "HPCS instance name"
value = var.auto_initialization_using_recovery_crypto_units ? ibm_hpcs.hpcs_instance[0].name : ibm_resource_instance.base_hpcs_instance[0].name
}
output "id" {
description = "HPCS instance id"
value = var.auto_initialization_using_recovery_crypto_units ? ibm_hpcs.hpcs_instance[0].id : ibm_resource_instance.base_hpcs_instance[0].id
}
output "guid" {
description = "HPCS instance guid"
value = var.auto_initialization_using_recovery_crypto_units ? ibm_hpcs.hpcs_instance[0].guid : ibm_resource_instance.base_hpcs_instance[0].guid
}
output "crn" {
description = "HPCS instance crn"
value = var.auto_initialization_using_recovery_crypto_units ? ibm_hpcs.hpcs_instance[0].crn : ibm_resource_instance.base_hpcs_instance[0].crn
}
output "endpoints" {
description = "HPCS instance endpoints"
value = var.auto_initialization_using_recovery_crypto_units ? ibm_hpcs.hpcs_instance[0].extensions : ibm_resource_instance.base_hpcs_instance[0].extensions
}
##############################################################################