File tree Expand file tree Collapse file tree 6 files changed +9
-6
lines changed
Expand file tree Collapse file tree 6 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ You need the following permissions to run this module.
6363
6464| Name | Version |
6565| ------| ---------|
66- | <a name =" requirement_terraform " ></a > [ terraform] ( #requirement\_ terraform ) | >= 1.3 .0 |
66+ | <a name =" requirement_terraform " ></a > [ terraform] ( #requirement\_ terraform ) | >= 1.9 .0 |
6767| <a name =" requirement_ibm " ></a > [ ibm] ( #requirement\_ ibm ) | >= 1.69.0, < 2.0.0 |
6868
6969### Modules
Original file line number Diff line number Diff line change 11terraform {
2- required_version = " >= 1.3 .0"
2+ required_version = " >= 1.9 .0"
33 required_providers {
44 # Ensure that there is always 1 example locked into the lowest provider version of the range defined in the main
55 # module's version.tf (basic example), and 1 example that will always use the latest provider version (complete example).
Original file line number Diff line number Diff line change 11terraform {
2- required_version = " >= 1.0 .0"
2+ required_version = " >= 1.9 .0"
33 required_providers {
44 # Ensure that there is always 1 example locked into the lowest provider version of the range defined in the main
55 # module's version.tf (basic example), and 1 example that will always use the latest provider version (complete example).
Original file line number Diff line number Diff line change @@ -35,8 +35,6 @@ resource "ibm_kms_key_policies" "standard_key_policy" {
3535}
3636
3737locals {
38- # tflint-ignore: terraform_unused_declarations
39- 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
4038
4139 # for-each for adapter resource
4240 adapter_map = {
Original file line number Diff line number Diff line change @@ -93,4 +93,9 @@ variable "kmip" {
9393 ])
9494 error_message = " Each adapter can contain up to 200 certificates, current length exceeds this limit."
9595 }
96+
97+ validation {
98+ condition = length (var. kmip ) == 0 || ! var. standard_key
99+ error_message = " When providing a value for `kmip`, the key being created must be a root key."
100+ }
96101}
Original file line number Diff line number Diff line change 11terraform {
2- required_version = " >= 1.3 .0"
2+ required_version = " >= 1.9 .0"
33 required_providers {
44 ibm = {
55 source = " IBM-Cloud/ibm"
You can’t perform that action at this time.
0 commit comments