-
Notifications
You must be signed in to change notification settings - Fork 1
/
outputs.tf
77 lines (60 loc) · 2.98 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
##############################################################################
# Key Management Outputs
##############################################################################
output "key_management_name" {
description = "Name of key management service"
value = var.disable_key_management == true ? null : module.key_management["key_management"].key_management_name
}
output "key_management_crn" {
description = "CRN for KMS instance"
value = var.disable_key_management == true ? null : module.key_management["key_management"].key_management_crn
}
output "key_management_guid" {
description = "GUID for KMS instance"
value = var.disable_key_management == true ? null : module.key_management["key_management"].key_management_guid
}
output "key_rings" {
description = "Key rings created by module"
value = var.disable_key_management == true ? null : module.key_management["key_management"].key_rings
}
output "keys" {
description = "List of names and ids for keys created."
value = var.disable_key_management == true ? null : module.key_management["key_management"].keys
}
##############################################################################
##############################################################################
# Cloud Object Storage Variables
##############################################################################
output "cos_suffix" {
description = "Random suffix appended to COS resources."
value = module.cloud_object_storage.cos_suffix
}
output "cos_instances" {
description = "List of COS resource instances with shortname, name, id, and crn."
value = module.cloud_object_storage.cos_instances
}
output "cos_buckets" {
description = "List of COS bucket instances with shortname, instance_shortname, name, id, crn, and instance id."
value = module.cloud_object_storage.cos_buckets
}
output "cos_keys" {
description = "List of COS bucket instances with shortname, instance_shortname, name, id, crn, and instance id."
value = module.cloud_object_storage.cos_keys
}
##############################################################################
##############################################################################
# Secrets Manager Outputs
##############################################################################
output "secrets_manager_name" {
description = "Name of secrets manager instance"
value = var.secrets_manager.use_secrets_manager == true ? ibm_resource_instance.secrets_manager[0].name : null
}
output "secrets_manager_id" {
description = "id of secrets manager instance"
value = var.secrets_manager.use_secrets_manager == true ? ibm_resource_instance.secrets_manager[0].id : null
}
output "secrets_manager_guid" {
description = "guid of secrets manager instance"
value = var.secrets_manager.use_secrets_manager == true ? ibm_resource_instance.secrets_manager[0].guid : null
}
##############################################################################