diff --git a/examples/backup-restore/provider.tf b/examples/backup-restore/provider.tf index df45ef50..f69fb6da 100644 --- a/examples/backup-restore/provider.tf +++ b/examples/backup-restore/provider.tf @@ -1,4 +1,5 @@ provider "ibm" { ibmcloud_api_key = var.ibmcloud_api_key region = var.region + visibility = var.provider_visibility } diff --git a/examples/backup-restore/variables.tf b/examples/backup-restore/variables.tf index bffc8173..4af3e868 100644 --- a/examples/backup-restore/variables.tf +++ b/examples/backup-restore/variables.tf @@ -4,6 +4,12 @@ variable "ibmcloud_api_key" { sensitive = true } +variable "provider_visibility" { + 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)." + type = string + default = "public" +} + variable "region" { type = string description = "Region to provision all resources created by this example." diff --git a/tests/other_test.go b/tests/other_test.go index 5d5a3586..89a255b5 100644 --- a/tests/other_test.go +++ b/tests/other_test.go @@ -96,6 +96,7 @@ func TestRunRestoredDBExample(t *testing.T) { ResourceGroup: resourceGroup, TerraformVars: map[string]interface{}{ "existing_database_crn": permanentResources["elasticsearchCrn"], + "provider_visibility": "private", }, CloudInfoService: sharedInfoSvc, })