Skip to content

Commit baa1a61

Browse files
committed
fix: PR fixes
1 parent 333d3bb commit baa1a61

File tree

4 files changed

+15
-14
lines changed

4 files changed

+15
-14
lines changed

ibm_catalog.json

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,8 @@
8282
"reference_version": true
8383
},
8484
{
85-
"dependency_input": "region",
86-
"version_input": "region",
87-
"reference_version": true
85+
"value": "us-south",
86+
"dependency_input": "region"
8887
}
8988
],
9089
"optional": true,
@@ -110,11 +109,6 @@
110109
{
111110
"dependency_output": "workload_resource_group_name",
112111
"version_input": "existing_resource_group_name"
113-
},
114-
{
115-
"dependency_input": "provider_visibility",
116-
"version_input": "provider_visibility",
117-
"reference_version": true
118112
}
119113
],
120114
"optional": true,
@@ -148,7 +142,7 @@
148142
},
149143
{
150144
"key": "existing_resource_group_name",
151-
"display_name": "Resource group",
145+
"display_name": "resource_group",
152146
"required": true,
153147
"custom_config": {
154148
"type": "resource_group",
@@ -277,7 +271,14 @@
277271
"key": "enable_high_availability"
278272
},
279273
{
280-
"key": "resource_tags"
274+
"key": "resource_tags",
275+
"custom_config": {
276+
"grouping": "deployment",
277+
"original_grouping": "deployment",
278+
"config_constraints": {
279+
"type": "string"
280+
}
281+
}
281282
},
282283
{
283284
"key": "enable_oracle_compatibility"

solutions/fully-configurable/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ This solution supports provisioning and configuring the following infrastructure
4545
| <a name="input_node_type"></a> [node\_type](#input\_node\_type) | The node type of the DB2 instance, valid values are `bx2.1x4`, `bx2.4x16`, `bx2.8x32`, `bx2.16x64`, `bx2.32x128`, `bx2.48x192`, `mx2.4x32`, `mx2.16x128`, `mx2.128x1024` | `string` | `"bx2.4x16"` | no |
4646
| <a name="input_prefix"></a> [prefix](#input\_prefix) | The prefix to add to all resources that this solution creates. To not use any prefix value, you can set this value to `null` or an empty string. | `string` | n/a | yes |
4747
| <a name="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 |
48-
| <a name="input_region"></a> [region](#input\_region) | Region to provision all resources created by this example | `string` | `"us-east"` | no |
48+
| <a name="input_region"></a> [region](#input\_region) | The region to provision all resources in. [Learn more](https://terraform-ibm-modules.github.io/documentation/#/region) about how to select different regions for different services. | `string` | `"us-east"` | no |
4949
| <a name="input_resource_tags"></a> [resource\_tags](#input\_resource\_tags) | Optional list of tags to be added to created resources | `list(string)` | `[]` | no |
5050
| <a name="input_service_endpoints"></a> [service\_endpoints](#input\_service\_endpoints) | Service endpoints for the DB2 instance, valid values are `public`, `private`, or `public-and-private` | `string` | `"private"` | no |
5151
| <a name="input_subscription_id"></a> [subscription\_id](#input\_subscription\_id) | Value of the subscription ID to use with the subscription plan of DB2 | `string` | `null` | no |

solutions/fully-configurable/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ data "ibm_sm_arbitrary_secret" "sm_subscription_id" {
2626
locals {
2727
sm_region = var.subscription_id_secret_crn != null ? module.crn_parser_subid[0].region : ""
2828
subscription_id = var.subscription_id_secret_crn != null ? data.ibm_sm_arbitrary_secret.sm_subscription_id[0].payload : (var.subscription_id != null ? var.subscription_id : null)
29-
prefix = var.prefix != null ? (var.prefix != "" ? var.prefix : null) : null
29+
prefix = var.prefix != null ? trimspace(var.prefix) != "" ? "${var.prefix}-" : "" : ""
3030
}
3131

3232
########################################################################################################################
@@ -36,7 +36,7 @@ locals {
3636
module "db2_instance" {
3737
source = "../.."
3838
region = var.region
39-
db2_instance_name = try("${local.prefix}-${var.db2_instance_name}", var.db2_instance_name)
39+
db2_instance_name = "${local.prefix}${var.db2_instance_name}"
4040
subscription_id = local.subscription_id
4141
resource_group_id = module.resource_group.resource_group_id
4242
service_endpoints = var.service_endpoints

solutions/fully-configurable/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ variable "provider_visibility" {
2121

2222
variable "region" {
2323
type = string
24-
description = "Region to provision all resources created by this example"
24+
description = "The region to provision all resources in. [Learn more](https://terraform-ibm-modules.github.io/documentation/#/region) about how to select different regions for different services."
2525
default = "us-east"
2626

2727
validation {

0 commit comments

Comments
 (0)