generated from terraform-ibm-modules/terraform-ibm-module-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
outputs.tf
53 lines (43 loc) · 1.78 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
##############################################################################
# Outputs
##############################################################################
output "kms_guid" {
description = "KMS GUID"
value = local.kms_guid
}
output "key_protect_id" {
description = "Key Protect service instance ID when an instance is created, otherwise null"
value = can(module.key_protect[0].key_protect_id) ? module.key_protect[0].key_protect_id : null
}
output "key_protect_name" {
description = "Key Protect Name"
value = length(module.key_protect) > 0 ? module.key_protect[0].key_protect_name : null
}
output "key_protect_crn" {
description = "Key Protect service instance CRN when an instance is created, otherwise null"
value = can(module.key_protect[0].key_protect_crn) ? module.key_protect[0].key_protect_crn : null
}
output "key_protect_instance_policies" {
description = "Instance Polices of the Key Protect instance"
value = length(module.key_protect) > 0 ? module.key_protect[0].key_protect_instance_policies : null
}
output "key_rings" {
description = "IDs of new Key Rings created by the module"
value = module.kms_key_rings
}
output "keys" {
description = "IDs of new Keys created by the module"
value = merge(module.kms_keys, module.existing_key_ring_keys)
}
output "kms_private_endpoint" {
description = "Key Management Service instance private endpoint URL"
value = local.kms_private_endpoint
}
output "kms_public_endpoint" {
description = "Key Management Service instance public endpoint URL"
value = local.kms_public_endpoint
}
output "cbr_rule_ids" {
description = "CBR rule ids created to restrict Key Protect"
value = length(module.cbr_rule[*]) > 0 ? module.cbr_rule[*].rule_id : null
}