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
Copy file name to clipboardExpand all lines: ibm_catalog.json
+11-8Lines changed: 11 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -218,6 +218,17 @@
218
218
"key": "ibmcloud_api_key",
219
219
"required": true
220
220
},
221
+
{
222
+
"key": "prefix",
223
+
"required": true,
224
+
"value_constraints": [
225
+
{
226
+
"type": "regex",
227
+
"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",
"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)."
Copy file name to clipboardExpand all lines: solutions/fully-configurable/variables.tf
+27Lines changed: 27 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,33 @@ variable "ibmcloud_api_key" {
8
8
sensitive=true
9
9
}
10
10
11
+
variable"prefix" {
12
+
type=string
13
+
nullable=true
14
+
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)."
15
+
16
+
validation {
17
+
# - null and empty string is allowed
18
+
# - Must not contain consecutive hyphens (--): length(regexall("--", var.prefix)) == 0
19
+
# - Starts with a lowercase letter: [a-z]
20
+
# - Contains only lowercase letters (a–z), digits (0–9), and hyphens (-)
error_message="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 ('--')."
0 commit comments