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
fix: update DA to use private resource controller endpoint by default<br>* updated prefix validation for DA<br>* removed compliance claim from DA (not applicable for this DA) (#248)
@@ -45,8 +45,8 @@ There is currently a [known issue](https://github.com/terraform-ibm-modules/terr
45
45
| <aname="input_existing_monitoring_crn"></a> [existing\_monitoring\_crn](#input\_existing\_monitoring\_crn)| The CRN of an IBM Cloud Monitoring instance to to send Workload Protection data. If no value passed, metrics are sent to the instance associated to the container's location unless otherwise specified in the Metrics Router service configuration. |`string`|`null`| no |
46
46
| <aname="input_existing_resource_group_name"></a> [existing\_resource\_group\_name](#input\_existing\_resource\_group\_name)| The name of a an existing resource group in which to provision resources to. |`string`|`"Default"`| no |
47
47
| <aname="input_ibmcloud_api_key"></a> [ibmcloud\_api\_key](#input\_ibmcloud\_api\_key)| The IBM Cloud API key to deploy resources. |`string`| n/a | yes |
48
-
| <aname="input_ibmcloud_resource_controller_api_endpoint"></a> [ibmcloud\_resource\_controller\_api\_endpoint](#input\_ibmcloud\_resource\_controller\_api\_endpoint)| The URI of the Resource Controller service. This is used to update the Workload Protection instance to enable CSPM once the trusted profiles have been created. |`string`|`"https://resource-controller.cloud.ibm.com"`| no |
49
-
| <aname="input_prefix"></a> [prefix](#input\_prefix)| The prefix to add to all resources that this solution creates (e.g `prod`, `test`, `dev`). To not use any prefix value, you can set this value to `null` or an empty string. |`string`| n/a | yes |
48
+
| <aname="input_ibmcloud_resource_controller_api_endpoint"></a> [ibmcloud\_resource\_controller\_api\_endpoint](#input\_ibmcloud\_resource\_controller\_api\_endpoint)| The IBM Cloud [resource controller endpoint](https://cloud.ibm.com/apidocs/resource-controller/resource-controller#endpoint-url) to use. This is used to update the Workload Protection instance to enable CSPM once the trusted profiles have been created. |`string`|`"https://private.us-south.resource-controller.cloud.ibm.com"`| no |
49
+
| <aname="input_prefix"></a> [prefix](#input\_prefix)| 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-scc-wp. |`string`| n/a | yes |
50
50
| <aname="input_provider_visibility"></a> [provider\_visibility](#input\_provider\_visibility)| Set the visibility value for the IBM terraform provider. Supported values are `public`, `private`, `public-and-private`. [Learn more](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/guides/custom-service-endpoints). |`string`|`"private"`| no |
51
51
| <aname="input_region"></a> [region](#input\_region)| The region to provision Security and Compliance Center Workload Protection resources in. |`string`|`"us-south"`| no |
52
52
| <aname="input_scc_workload_protection_access_tags"></a> [scc\_workload\_protection\_access\_tags](#input\_scc\_workload\_protection\_access\_tags)| A list of access tags to apply to the Workload Protection instance. Maximum length: 128 characters. Possible characters are A-Z, 0-9, spaces, underscores, hyphens, periods, and colons. [Learn more](https://cloud.ibm.com/docs/account?topic=account-tag&interface=ui#limits). |`list(string)`|`[]`| no |
description="The prefix to add to all resources that this solution creates (e.g `prod`, `test`, `dev`). To not use any prefix value, you can set this value to `null` or an empty string."
26
+
nullable=true
27
+
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-scc-wp."
28
+
29
+
validation {
30
+
# - null and empty string is allowed
31
+
# - Must not contain consecutive hyphens (--): length(regexall("--", var.prefix)) == 0
32
+
# - Starts with a lowercase letter: [a-z]
33
+
# - 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 ('--')."
42
+
}
43
+
44
+
validation {
45
+
# must not exceed 16 characters in length
46
+
condition=length(var.prefix) <=16
47
+
error_message="Prefix must not exceed 16 characters."
description="The URI of the Resource Controller service. This is used to update the Workload Protection instance to enable CSPM once the trusted profiles have been created."
159
+
description="The IBM Cloud [resource controller endpoint](https://cloud.ibm.com/apidocs/resource-controller/resource-controller#endpoint-url) to use. This is used to update the Workload Protection instance to enable CSPM once the trusted profiles have been created."
138
160
type=string
139
-
# TODO: Use private endpoint: https://github.com/terraform-ibm-modules/terraform-ibm-scc-workload-protection/issues/244
0 commit comments