Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions examples/backup-restore/provider.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
provider "ibm" {
ibmcloud_api_key = var.ibmcloud_api_key
region = var.region
visibility = var.provider_visibility
}
6 changes: 6 additions & 0 deletions examples/backup-restore/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down
1 change: 1 addition & 0 deletions tests/other_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})
Expand Down