You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| <aname="input_endpoint_type"></a> [endpoint\_type](#input\_endpoint\_type)| Endpoint to use when creating the Key |`string`|`"public"`| no |
87
89
| <aname="input_force_delete"></a> [force\_delete](#input\_force\_delete)| Set as true to enable forcing deletion even if key is in use |`bool`|`false`| no |
88
90
| <aname="input_key_name"></a> [key\_name](#input\_key\_name)| Name to give the key |`string`| n/a | yes |
91
+
| <aname="input_kmip"></a> [kmip](#input\_kmip)| Allows a key to utilize the key management interoperability protocol (KMIP), for more information see https://cloud.ibm.com/docs/key-protect?topic=key-protect-kmip| <pre>list(object({<br/> name = string<br/> description = optional(string)<br/> certificates = optional(list(object({<br/> name = optional(string)<br/> certificate = string<br/> })))<br/> }))</pre> |`[]`| no |
89
92
| <aname="input_kms_instance_id"></a> [kms\_instance\_id](#input\_kms\_instance\_id)| ID or GUID of KMS Instance |`string`| n/a | yes |
90
93
| <aname="input_kms_key_ring_id"></a> [kms\_key\_ring\_id](#input\_kms\_key\_ring\_id)| The ID of the key ring where you want to add your KMS key |`string`|`"default"`| no |
91
94
| <aname="input_rotation_interval_month"></a> [rotation\_interval\_month](#input\_rotation\_interval\_month)| The key rotation time interval in months. Rotation policy cannot be set for standard key, so value is ignored if var.standard\_key is true |`number`|`1`| no |
@@ -95,6 +98,8 @@ No modules.
95
98
96
99
| Name | Description |
97
100
|------|-------------|
101
+
| <aname="output_adapter_ids"></a> [adapter\_ids](#output\_adapter\_ids)| KMIP Adapter IDs of the associated root key |
kmip_root_key_validation=(length(var.kmip) >0&& var.standard_key) ?tobool("When providing a value for `kmip`, the key being created must be a root key.") :true
40
+
41
+
kmip_certs=flatten([
42
+
[
43
+
foradapterinvar.kmip: [
44
+
forcertificateinadapter.certificates: {
45
+
adapter_name = adapter.name
46
+
certificate_name = try(certificate.name, null)
47
+
certificate = certificate.certificate
48
+
# Check if filepath string is given, used in ibm_kms_kmip_client_cert call
Copy file name to clipboardExpand all lines: variables.tf
+37Lines changed: 37 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -56,3 +56,40 @@ variable "force_delete" {
56
56
description="Set as true to enable forcing deletion even if key is in use"
57
57
default=false
58
58
}
59
+
60
+
variable"kmip" {
61
+
type=list(object({
62
+
name =string
63
+
description =optional(string)
64
+
certificates =optional(list(object({
65
+
name =optional(string)
66
+
certificate =string
67
+
})))
68
+
}))
69
+
description="Allows a key to utilize the key management interoperability protocol (KMIP), for more information see https://cloud.ibm.com/docs/key-protect?topic=key-protect-kmip"
0 commit comments