diff --git a/.secrets.baseline b/.secrets.baseline index 6efdd55a..c9f7ffcb 100644 --- a/.secrets.baseline +++ b/.secrets.baseline @@ -3,7 +3,7 @@ "files": "go.sum|^.secrets.baseline$|^../.secrets.baseline$", "lines": null }, - "generated_at": "2024-03-27T22:08:26Z", + "generated_at": "2025-06-04T14:14:12Z", "plugins_used": [ { "name": "AWSKeyDetector" diff --git a/ibm_catalog.json b/ibm_catalog.json index 65f96b83..95a56951 100644 --- a/ibm_catalog.json +++ b/ibm_catalog.json @@ -146,8 +146,12 @@ } } }, + { + "key": "secrets_manager_instance_name" + }, { "key": "provider_visibility", + "hidden": true, "options": [ { "displayname": "private", @@ -163,9 +167,6 @@ } ] }, - { - "key": "secrets_manager_instance_name" - }, { "key": "secrets_manager_endpoint_type", "hidden": true, @@ -375,11 +376,6 @@ { "dependency_output": "security_resource_group_name", "version_input": "existing_resource_group_name" - }, - { - "dependency_input": "provider_visibility", - "version_input": "provider_visibility", - "reference_version": true } ], "optional": true, diff --git a/solutions/fully-configurable/provider.tf b/solutions/fully-configurable/provider.tf index 65c38f7d..46c6f484 100644 --- a/solutions/fully-configurable/provider.tf +++ b/solutions/fully-configurable/provider.tf @@ -1,11 +1,13 @@ provider "ibm" { - ibmcloud_api_key = var.ibmcloud_api_key - region = var.region - visibility = var.provider_visibility + ibmcloud_api_key = var.ibmcloud_api_key + region = var.region + visibility = var.provider_visibility + private_endpoint_type = (var.provider_visibility == "private" && var.region == "ca-mon") ? "vpe" : null } provider "ibm" { - alias = "kms" - ibmcloud_api_key = var.ibmcloud_kms_api_key != null ? var.ibmcloud_kms_api_key : var.ibmcloud_api_key - region = local.kms_region - visibility = var.provider_visibility + alias = "kms" + ibmcloud_api_key = var.ibmcloud_kms_api_key != null ? var.ibmcloud_kms_api_key : var.ibmcloud_api_key + region = local.kms_region + visibility = var.provider_visibility + private_endpoint_type = (var.provider_visibility == "private" && var.region == "ca-mon") ? "vpe" : null }