Skip to content

Commit c268f1b

Browse files
authored
fix: updated the default value in the DA for management_endpoint_type_for_bucket to use the direct endpoint as some regions no longer support private (#469)
1 parent 56dcb61 commit c268f1b

File tree

4 files changed

+5
-9
lines changed

4 files changed

+5
-9
lines changed

ibm_catalog.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -442,10 +442,6 @@
442442
{
443443
"key": "management_endpoint_type_for_bucket",
444444
"options": [
445-
{
446-
"displayname": "private",
447-
"value": "private"
448-
},
449445
{
450446
"displayname": "public",
451447
"value": "public"

solutions/fully-configurable/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ When `existing_en_instance_crn` is passed, this solution ignores ALL other input
8484
| <a name="input_kms_encryption_enabled"></a> [kms\_encryption\_enabled](#input\_kms\_encryption\_enabled) | Set to true to enable KMS encryption on Event Notifications instance and Cloud Object Storage bucket. When set to true 'kms\_endpoint\_url' and one of 'existing\_kms\_instance\_crn' or 'existing\_kms\_root\_key\_crn' must be set. | `bool` | `false` | no |
8585
| <a name="input_kms_endpoint_type"></a> [kms\_endpoint\_type](#input\_kms\_endpoint\_type) | The type of the endpoint that is used for communicating with the KMS instance. Possible values: `public` or `private` (default). Only used if not supplying an existing root key. | `string` | `"private"` | no |
8686
| <a name="input_kms_endpoint_url"></a> [kms\_endpoint\_url](#input\_kms\_endpoint\_url) | The KMS endpoint URL to use when you configure KMS encryption. When set to true, a value must be passed for either `existing_kms_root_key_crn` or `existing_kms_instance_crn` (to create a new key). The Hyper Protect Crypto Services endpoint URL format is `https://api.private.<REGION>.hs-crypto.cloud.ibm.com:<port>` and the Key Protect endpoint URL format is `https://<REGION>.kms.cloud.ibm.com`. Not required if passing an existing instance using the `existing_event_notifications_instance_crn` input. | `string` | `null` | no |
87-
| <a name="input_management_endpoint_type_for_bucket"></a> [management\_endpoint\_type\_for\_bucket](#input\_management\_endpoint\_type\_for\_bucket) | The type of endpoint for the IBM Terraform provider to use to manage Object Storage buckets. Available values: `public`, `private`, `direct`. Make sure to enable virtual routing and forwarding in your account if you specify `private`, and that the Terraform runtime has access to the IBM Cloud private network. | `string` | `"private"` | no |
87+
| <a name="input_management_endpoint_type_for_bucket"></a> [management\_endpoint\_type\_for\_bucket](#input\_management\_endpoint\_type\_for\_bucket) | The type of endpoint for the IBM Terraform provider to use to manage Object Storage buckets. Available values: `public` or `direct`. | `string` | `"direct"` | no |
8888
| <a name="input_prefix"></a> [prefix](#input\_prefix) | Prefix to add to all resources created by this solution. To not use any prefix value, you can set this value to `null` or an empty string. | `string` | n/a | yes |
8989
| <a name="input_provider_visibility"></a> [provider\_visibility](#input\_provider\_visibility) | 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). | `string` | `"private"` | no |
9090
| <a name="input_region"></a> [region](#input\_region) | The region in which the Event Notifications resources are provisioned. | `string` | `"us-south"` | no |

solutions/fully-configurable/variables.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -306,11 +306,11 @@ variable "cos_bucket_region" {
306306
}
307307

308308
variable "management_endpoint_type_for_bucket" {
309-
description = "The type of endpoint for the IBM Terraform provider to use to manage Object Storage buckets. Available values: `public`, `private`, `direct`. Make sure to enable virtual routing and forwarding in your account if you specify `private`, and that the Terraform runtime has access to the IBM Cloud private network."
309+
description = "The type of endpoint for the IBM Terraform provider to use to manage Object Storage buckets. Available values: `public` or `direct`."
310310
type = string
311-
default = "private"
311+
default = "direct"
312312
validation {
313-
condition = contains(["public", "private", "direct"], var.management_endpoint_type_for_bucket)
313+
condition = contains(["public", "direct"], var.management_endpoint_type_for_bucket)
314314
error_message = "The specified `management_endpoint_type_for_bucket` is not a valid selection."
315315
}
316316
}

solutions/security-enforced/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ module "event_notifications" {
3434
skip_event_notifications_cos_auth_policy = var.skip_event_notifications_cos_auth_policy
3535
skip_cos_kms_auth_policy = var.skip_cos_kms_auth_policy
3636
cos_bucket_region = var.cos_bucket_region
37-
management_endpoint_type_for_bucket = "private"
37+
management_endpoint_type_for_bucket = "direct"
3838
# Secrets Manager Related
3939
existing_secrets_manager_instance_crn = var.existing_secrets_manager_instance_crn
4040
existing_secrets_manager_endpoint_type = "private"

0 commit comments

Comments
 (0)