Skip to content

Commit f6e85a3

Browse files
Merge branch 'main' into tests-update
2 parents a8b8170 + fb4cd1e commit f6e85a3

File tree

3 files changed

+40
-8
lines changed

3 files changed

+40
-8
lines changed

ibm_catalog.json

Lines changed: 38 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,14 @@
153153
},
154154
{
155155
"key": "prefix",
156-
"required": true
156+
"required": true,
157+
"value_constraints": [
158+
{
159+
"type": "regex",
160+
"description": "Prefix must begin with a lowercase letter and may contain only lowercase letters, digits, and hyphens '-'. It must not end with a hyphen('-'), and cannot contain consecutive hyphens ('--'). It should not exceed 16 characters.",
161+
"value": "^$|^__NULL__$|^[a-z](?!.*--)(?:[a-z0-9-]{0,14}[a-z0-9])?$"
162+
}
163+
]
157164
},
158165
{
159166
"key": "key_protect_plan",
@@ -197,13 +204,22 @@
197204
"config_constraints": {
198205
"identifier": "rg_name"
199206
}
200-
}
207+
},
208+
"default_value": "Default",
209+
"description": "The name of an existing resource group to provision the resources."
201210
},
202211
{
203212
"key": "key_protect_instance_name"
204213
},
205214
{
206-
"key": "existing_kms_instance_crn"
215+
"key": "existing_kms_instance_crn",
216+
"value_constraints": [
217+
{
218+
"type": "regex",
219+
"description": "The value provided for 'existing_kms_instance_crn' is not valid.",
220+
"value": "^__NULL__$|^crn:(.*:){3}(kms|hs-crypto):(.*:){2}[0-9a-fA-F]{8}(?:-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}::$"
221+
}
222+
]
207223
},
208224
{
209225
"key": "keys",
@@ -430,7 +446,14 @@
430446
},
431447
{
432448
"key": "prefix",
433-
"required": true
449+
"required": true,
450+
"value_constraints": [
451+
{
452+
"type": "regex",
453+
"description": "Prefix must begin with a lowercase letter and may contain only lowercase letters, digits, and hyphens '-'. It must not end with a hyphen('-'), and cannot contain consecutive hyphens ('--'). It should not exceed 16 characters.",
454+
"value": "^$|^__NULL__$|^[a-z](?!.*--)(?:[a-z0-9-]{0,14}[a-z0-9])?$"
455+
}
456+
]
434457
},
435458
{
436459
"key": "key_protect_plan",
@@ -456,13 +479,22 @@
456479
"config_constraints": {
457480
"identifier": "rg_name"
458481
}
459-
}
482+
},
483+
"default_value": "Default",
484+
"description": "The name of an existing resource group to provision the resources."
460485
},
461486
{
462487
"key": "key_protect_instance_name"
463488
},
464489
{
465-
"key": "existing_kms_instance_crn"
490+
"key": "existing_kms_instance_crn",
491+
"value_constraints": [
492+
{
493+
"type": "regex",
494+
"description": "The value provided for 'existing_kms_instance_crn' is not valid.",
495+
"value": "^__NULL__$|^crn:(.*:){3}(kms|hs-crypto):(.*:){2}[0-9a-fA-F]{8}(?:-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}::$"
496+
}
497+
]
466498
},
467499
{
468500
"key": "keys",

solutions/fully-configurable/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ variable "region" {
3434
variable "prefix" {
3535
type = string
3636
nullable = true
37-
description = "The prefix to be added to all resources created by this solution. To skip using a prefix, set this value to null or an empty string. The prefix must begin with a lowercase letter and may contain only lowercase letters, digits, and hyphens '-'. It should not exceed 16 characters, must not end with a hyphen('-'), and can not contain consecutive hyphens ('--'). Example: prod-045-kms. [Learn more](https://terraform-ibm-modules.github.io/documentation/#/prefix.md)."
37+
description = "The prefix to add to all resources that this solution creates (e.g `prod`, `test`, `dev`). To skip using a prefix, set this value to null or an empty string. [Learn more](https://terraform-ibm-modules.github.io/documentation/#/prefix.md)."
3838

3939
validation {
4040
# - null and empty string is allowed

solutions/security-enforced/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ variable "region" {
3434
variable "prefix" {
3535
type = string
3636
nullable = true
37-
description = "The prefix to be added to all resources created by this solution. To skip using a prefix, set this value to null or an empty string. The prefix must begin with a lowercase letter and may contain only lowercase letters, digits, and hyphens '-'. It should not exceed 16 characters, must not end with a hyphen('-'), and can not contain consecutive hyphens ('--'). Example: prod-045-kms. [Learn more](https://terraform-ibm-modules.github.io/documentation/#/prefix.md)."
37+
description = "The prefix to add to all resources that this solution creates (e.g `prod`, `test`, `dev`). To skip using a prefix, set this value to null or an empty string. [Learn more](https://terraform-ibm-modules.github.io/documentation/#/prefix.md)."
3838

3939
validation {
4040
# - null and empty string is allowed

0 commit comments

Comments
 (0)