Skip to content

Commit 3e284a4

Browse files
fix: stop mapping provider_visibility in addons config (#475)
Co-authored-by: Conall Ó Cofaigh <ocofaigh@ie.ibm.com>
1 parent 5360c82 commit 3e284a4

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

ibm_catalog.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -626,11 +626,6 @@
626626
{
627627
"dependency_output": "observability_resource_group_name",
628628
"version_input": "existing_resource_group_name"
629-
},
630-
{
631-
"dependency_input": "provider_visibility",
632-
"version_input": "provider_visibility",
633-
"reference_version": true
634629
}
635630
],
636631
"optional": true,
Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
provider "ibm" {
2-
ibmcloud_api_key = var.ibmcloud_api_key
3-
region = var.region
4-
visibility = var.provider_visibility
2+
ibmcloud_api_key = var.ibmcloud_api_key
3+
region = var.region
4+
visibility = var.provider_visibility
5+
private_endpoint_type = (var.provider_visibility == "private" && var.region == "ca-mon") ? "vpe" : null
56
}
67

78
provider "ibm" {
8-
alias = "kms"
9-
ibmcloud_api_key = var.ibmcloud_kms_api_key != null ? var.ibmcloud_kms_api_key : var.ibmcloud_api_key
10-
region = local.kms_region
11-
visibility = var.provider_visibility
9+
alias = "kms"
10+
ibmcloud_api_key = var.ibmcloud_kms_api_key != null ? var.ibmcloud_kms_api_key : var.ibmcloud_api_key
11+
region = local.kms_region
12+
visibility = var.provider_visibility
13+
private_endpoint_type = (var.provider_visibility == "private" && var.region == "ca-mon") ? "vpe" : null
1214
}

0 commit comments

Comments
 (0)