Skip to content

Commit 2bfc529

Browse files
feat: The default value of prefix has been removed from the instances DA. User now has to explicitly enter a value, or explicitly set it to null to not use a prefix.-provider_visibility option has been removed from instances DA.<br>- DA has been enabled with addons flow.<br>- default value of existing_kms_instance_crn has been set to "not set" (#364)
BREAKING CHANGE: If upgrading from a previous version, and you were not overriding the default value for `prefix`, to prevent infrastructure being re-created, you should set the `prefix` value to `dev`
1 parent 8daa129 commit 2bfc529

File tree

3 files changed

+87
-19
lines changed

3 files changed

+87
-19
lines changed

cra-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ CRA_TARGETS:
66
PROFILE_ID: "fe96bd4d-9b37-40f2-b39f-a62760e326a3" # SCC profile ID (currently set to 'IBM Cloud Framework for Financial Services' '1.7.0' profile).
77
CRA_ENVIRONMENT_VARIABLES:
88
TF_VAR_resource_group_name: "test"
9+
TF_VAR_prefix: "test"
910
TF_VAR_existing_kms_instance_crn: "crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9::"
1011
TF_VAR_provider_visibility: "public"

ibm_catalog.json

Lines changed: 86 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -109,30 +109,30 @@
109109
},
110110
{
111111
"key": "provider_visibility",
112-
"options": [
113-
{
114-
"displayname": "private",
115-
"value": "private"
116-
},
117-
{
118-
"displayname": "public",
119-
"value": "public"
120-
},
121-
{
122-
"displayname": "public-and-private",
123-
"value": "public-and-private"
124-
}
125-
]
112+
"hidden": true
126113
},
127114
{
128115
"key": "prefix",
129116
"required": true
130117
},
131118
{
132-
"key": "use_existing_resource_group"
119+
"key": "resource_group_name",
120+
"display_name": "resource_group",
121+
"required": false,
122+
"default_value": "Default",
123+
"custom_config": {
124+
"type": "resource_group",
125+
"grouping": "deployment",
126+
"original_grouping": "deployment",
127+
"config_constraints": {
128+
"identifier": "rg_name"
129+
}
130+
}
133131
},
134132
{
135-
"key": "resource_group_name"
133+
"key": "use_existing_resource_group",
134+
"hidden": true,
135+
"default_value": true
136136
},
137137
{
138138
"custom_config": {
@@ -440,7 +440,8 @@
440440
},
441441
{
442442
"key": "existing_kms_instance_crn",
443-
"required": true
443+
"required": true,
444+
"default_value": "__NOT_SET__"
444445
},
445446
{
446447
"key": "cos_key_name"
@@ -509,7 +510,74 @@
509510
"description": "This architecture supports creating and configuring IBM Cloud Observability instances and IBM Cloud Activity Tracker Event Routing to an Object Storage bucket and Cloud Logs instance."
510511
}
511512
]
512-
}
513+
},
514+
"dependencies": [
515+
{
516+
"name": "deploy-arch-ibm-kms",
517+
"description": "Enable Cloud Automation for Key Protect when you want services to use your own managed encryption keys. If disabled, it will fall back on IBM Cloud's default service-managed encryption.",
518+
"id": "2cad4789-fa90-4886-9c9e-857081c273ee-global",
519+
"version": "v5.1.4",
520+
"flavors": [
521+
"fully-configurable"
522+
],
523+
"catalog_id": "7a4d68b4-cf8b-40cd-a3d1-f49aff526eb3",
524+
"optional": true,
525+
"on_by_default": true,
526+
"input_mapping": [
527+
{
528+
"dependency_output": "kms_instance_crn",
529+
"version_input": "existing_kms_instance_crn"
530+
},
531+
{
532+
"dependency_input": "prefix",
533+
"version_input": "prefix",
534+
"reference_version": true
535+
},
536+
{
537+
"dependency_input": "region",
538+
"version_input": "region",
539+
"reference_version": true
540+
}
541+
],
542+
"ignore_auto_referencing": [
543+
"*"
544+
]
545+
},
546+
{
547+
"name": "deploy-arch-ibm-account-infra-base",
548+
"description": "Cloud automation for Account Configuration organizes your IBM Cloud account with a ready-made set of resource groups by default—and, when you enable the “with Account Settings” option, it also applies baseline security and governance settings.",
549+
"id": "63641cec-6093-4b4f-b7b0-98d2f4185cd6-global",
550+
"version": "v3.0.7",
551+
"flavors": [
552+
"resource-group-only",
553+
"resource-groups-with-account-settings"
554+
],
555+
"default_flavor": "resource-group-only",
556+
"catalog_id": "7a4d68b4-cf8b-40cd-a3d1-f49aff526eb3",
557+
"optional": true,
558+
"on_by_default": false,
559+
"input_mapping": [
560+
{
561+
"dependency_input": "prefix",
562+
"version_input": "prefix",
563+
"reference_version": true
564+
},
565+
{
566+
"version_input": "use_existing_resource_group",
567+
"value": true
568+
},
569+
{
570+
"dependency_output": "observability_resource_group_name",
571+
"version_input": "resource_group_name"
572+
}
573+
],
574+
"ignore_auto_referencing": [
575+
"*"
576+
]
577+
}
578+
],
579+
"dependency_version_2": true,
580+
"terraform_version": "1.10.5"
513581
},
514582
{
515583
"label": "Agents",

solutions/instances/variables.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ variable "region" {
4848
variable "prefix" {
4949
type = string
5050
description = "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."
51-
default = "dev"
5251
}
5352

5453
variable "provider_visibility" {

0 commit comments

Comments
 (0)