Skip to content

Commit 68313c0

Browse files
committed
chore: some updates on catalog json for DAs guidance
1 parent 3129d0b commit 68313c0

File tree

3 files changed

+71
-27
lines changed

3 files changed

+71
-27
lines changed

ibm_catalog.json

Lines changed: 58 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -121,59 +121,60 @@
121121
},
122122
{
123123
"name": "deploy-arch-ibm-observability",
124-
"id": "a3137d28-79e0-479d-8a24-758ebd5a0eab-global",
124+
"description": "Enable to provisions and configures IBM Cloud Monitoring, Activity Tracker, and Log Analysis services for analysing events generated from the Events Notification instance.",
125125
"flavors": [
126126
"instances"
127127
],
128+
"id": "a3137d28-79e0-479d-8a24-758ebd5a0eab-global",
128129
"catalog_id": "7a4d68b4-cf8b-40cd-a3d1-f49aff526eb3",
129-
"optional": true,
130-
"version": "^v3.0.3",
131-
"on_by_default": true,
132-
"default_flavor": "instances",
133130
"input_mapping": [
134131
{
135-
"value": "us-south",
136-
"dependency_input": "region"
132+
"dependency_input": "prefix",
133+
"version_input": "prefix",
134+
"reference_version": true
137135
},
138136
{
139-
"reference_version": true,
140-
"dependency_input": "prefix",
141-
"version_input": "prefix"
137+
"value": "us-south",
138+
"dependency_input": "region"
142139
}
143140
],
144-
"ignore_auto_referencing": [
145-
"*"
146-
]
141+
"optional": true,
142+
"on_by_default": true,
143+
"version": "v3.0.3"
147144
},
148-
{
145+
{
149146
"name": "deploy-arch-ibm-account-infra-base",
150-
"id": "63641cec-6093-4b4f-b7b0-98d2f4185cd6-global",
147+
"description": "Cloud automation for account configuration organizes your IBM Cloud account with a ready-made set of resource groups by default. When you enable the “with account settings” option, it also applies baseline security and governance settings.",
151148
"catalog_id": "7a4d68b4-cf8b-40cd-a3d1-f49aff526eb3",
152-
"optional": true,
153-
"on_by_default": true,
149+
"flavors": [
150+
"resource-group-only",
151+
"resource-groups-with-account-settings"
152+
],
154153
"default_flavor": "resource-group-only",
155-
"version": "^v3.0.7",
154+
"id": "63641cec-6093-4b4f-b7b0-98d2f4185cd6-global",
156155
"input_mapping": [
157156
{
158-
"reference_version": true,
159157
"dependency_input": "prefix",
160-
"version_input": "prefix"
161-
},
162-
{
163-
"dependency_input": "provision_trusted_profile_projects",
164-
"value": false
158+
"version_input": "prefix",
159+
"reference_version": true
165160
},
166161
{
167162
"dependency_output": "workload_resource_group_name",
168163
"version_input": "existing_resource_group_name"
164+
},
165+
{
166+
"dependency_input": "provider_visibility",
167+
"version_input": "provider_visibility",
168+
"reference_version": true
169169
}
170170
],
171-
"ignore_auto_referencing": [
172-
"*"
173-
]
171+
"optional": true,
172+
"on_by_default": false,
173+
"version": "v3.0.7"
174174
},
175175
{
176176
"name": "testing-deploy-arch-ibm-db2-cloud",
177+
"description": "Enable to provision and configure IBM DB2 on Cloud instance and to automatically configure the authorisation policy with Enterprise Application Service instance.",
177178
"label": "[Add-ons Beta] Cloud automation for DB2 on Cloud",
178179
"version": "^v1.0.0",
179180
"id": "fa1560c6-f626-4605-b2e7-6299686fac40-global",
@@ -202,6 +203,11 @@
202203
{
203204
"value": true,
204205
"dependency_input": "db2_s2s_policy_enable"
206+
},
207+
{
208+
"dependency_input": "provider_visibility",
209+
"version_input": "provider_visibility",
210+
"reference_version": true
205211
}
206212
],
207213
"ignore_auto_referencing": [
@@ -210,6 +216,7 @@
210216
},
211217
{
212218
"name": "testing-deploy-arch-ibm-mq-cloud",
219+
"description": "Enable to provision and configure IBM MQ on Cloud instance and to automatically configure the authorisation policy with Enterprise Application Service instance.",
213220
"version": "^v0.4.2",
214221
"label": "[Add-ons Beta] Cloud automation for MQ on Cloud",
215222
"id": "272fbeb0-7a85-47b1-bb8a-e5478e3112f2-global",
@@ -239,6 +246,11 @@
239246
{
240247
"value": true,
241248
"dependency_input": "mq_s2s_policy_enable"
249+
},
250+
{
251+
"dependency_input": "provider_visibility",
252+
"version_input": "provider_visibility",
253+
"reference_version": true
242254
}
243255
],
244256
"ignore_auto_referencing": [
@@ -252,6 +264,24 @@
252264
"key": "ibmcloud_api_key",
253265
"required": true
254266
},
267+
{
268+
"key": "provider_visibility",
269+
"hidden": true,
270+
"options": [
271+
{
272+
"displayname": "private",
273+
"value": "private"
274+
},
275+
{
276+
"displayname": "public",
277+
"value": "public"
278+
},
279+
{
280+
"displayname": "public-and-private",
281+
"value": "public-and-private"
282+
}
283+
]
284+
},
255285
{
256286
"key": "instance_name"
257287
},
@@ -290,6 +320,7 @@
290320
},
291321
{
292322
"key": "existing_resource_group_name",
323+
"display_name": "Resource group",
293324
"required": true,
294325
"custom_config": {
295326
"type": "resource_group",

solutions/fully-configurable/provider.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@
44

55
provider "ibm" {
66
ibmcloud_api_key = var.ibmcloud_api_key
7+
visibility = var.provider_visibility
78
region = var.region
89
}
910

1011
provider "ibm" {
1112
ibmcloud_api_key = var.ibmcloud_api_key
13+
visibility = var.provider_visibility
1214
region = local.sm_region
1315
alias = "ibm-sm"
1416
}

solutions/fully-configurable/variables.tf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,17 @@ variable "ibmcloud_api_key" {
88
sensitive = true
99
}
1010

11+
variable "provider_visibility" {
12+
description = "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)."
13+
type = string
14+
default = "private"
15+
16+
validation {
17+
condition = contains(["public", "private", "public-and-private"], var.provider_visibility)
18+
error_message = "Invalid visibility option. Allowed values are 'public', 'private', or 'public-and-private'."
19+
}
20+
}
21+
1122
variable "resource_tags" {
1223
type = list(string)
1324
description = "Optional list of tags to be added to created resources"

0 commit comments

Comments
 (0)