Skip to content

Commit 9991186

Browse files
authored
feat: updated the COS endpoint to default to "direct" endpoint (#1077)
1 parent 7c5e263 commit 9991186

File tree

12 files changed

+60
-29
lines changed

12 files changed

+60
-29
lines changed

.secrets.baseline

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"files": "go.sum|^.secrets.baseline$",
44
"lines": null
55
},
6-
"generated_at": "2025-10-30T17:32:37Z",
6+
"generated_at": "2025-11-03T14:00:38Z",
77
"plugins_used": [
88
{
99
"name": "AWSKeyDetector"

cos.tf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ resource "ibm_resource_key" "key" {
8181
resource "ibm_cos_bucket" "buckets" {
8282
for_each = local.buckets_map
8383

84-
depends_on = [time_sleep.wait_for_authorization_policy]
84+
depends_on = [
85+
time_sleep.wait_for_authorization_policy
86+
]
8587

8688
bucket_name = "${var.prefix}-${each.value.name}${each.value.random_suffix == "true" ? "-${random_string.random_cos_suffix.result}" : ""}"
8789
resource_instance_id = local.cos_instance_ids[each.value.instance]

ibm_catalog.json

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1738,7 +1738,21 @@
17381738
"key": "existing_cos_resource_group"
17391739
},
17401740
{
1741-
"key": "existing_cos_endpoint_type"
1741+
"key": "existing_cos_endpoint_type",
1742+
"options": [
1743+
{
1744+
"displayname": "direct",
1745+
"value": "direct"
1746+
},
1747+
{
1748+
"displayname": "private",
1749+
"value": "private"
1750+
},
1751+
{
1752+
"displayname": "public",
1753+
"value": "public"
1754+
}
1755+
]
17421756
},
17431757
{
17441758
"key": "use_existing_cos_for_vpc_flowlogs"

patterns/dynamic_values/variables.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,13 @@ variable "existing_cos_resource_group" {
125125
}
126126

127127
variable "existing_cos_endpoint_type" {
128-
description = "The endpoint type to use when accessing the existing COS instance, default is `public`."
128+
description = "The endpoint type to use when accessing the existing COS instance. `direct` is the preferred endpoint type for re-platformed regions."
129129
type = string
130-
default = "public"
130+
default = "direct"
131131

132132
validation {
133-
error_message = "Endpoint type can only be `public` or `private`."
134-
condition = contains(["public", "private", null], var.existing_cos_endpoint_type)
133+
error_message = "Endpoint type can only be `public`, `private`, or `direct`."
134+
condition = contains(["public", "private", "direct", null], var.existing_cos_endpoint_type)
135135
}
136136
}
137137

patterns/mixed/override.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
{
4747
"buckets": [
4848
{
49-
"endpoint_type": "public",
49+
"endpoint_type": "direct",
5050
"force_delete": true,
5151
"kms_key": "slz-atracker-key",
5252
"name": "atracker-bucket",
@@ -89,7 +89,7 @@
8989
{
9090
"buckets": [
9191
{
92-
"endpoint_type": "public",
92+
"endpoint_type": "direct",
9393
"force_delete": true,
9494
"kms_key": "slz-slz-key",
9595
"name": "management-bucket",
@@ -111,7 +111,7 @@
111111
}
112112
},
113113
{
114-
"endpoint_type": "public",
114+
"endpoint_type": "direct",
115115
"force_delete": true,
116116
"kms_key": "slz-slz-key",
117117
"name": "workload-bucket",

patterns/roks/module/variables.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,13 +143,13 @@ variable "existing_cos_resource_group" {
143143
}
144144

145145
variable "existing_cos_endpoint_type" {
146-
description = "The endpoint type to use when accessing the existing COS instance, default is `public`."
146+
description = "The endpoint type to use when accessing the existing COS instance. `direct` is the preferred endpoint type for re-platformed regions."
147147
type = string
148-
default = "public"
148+
default = "direct"
149149

150150
validation {
151-
error_message = "Endpoint type can only be `public` or `private`."
152-
condition = contains(["public", "private", null], var.existing_cos_endpoint_type)
151+
error_message = "Endpoint type can only be `public`, `private`, or `direct`."
152+
condition = contains(["public", "private", "direct", null], var.existing_cos_endpoint_type)
153153
}
154154
}
155155

patterns/roks/override.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
{
9090
"buckets": [
9191
{
92-
"endpoint_type": "public",
92+
"endpoint_type": "direct",
9393
"force_delete": true,
9494
"kms_key": "slz-atracker-key",
9595
"name": "atracker-bucket",
@@ -132,7 +132,7 @@
132132
{
133133
"buckets": [
134134
{
135-
"endpoint_type": "public",
135+
"endpoint_type": "direct",
136136
"force_delete": true,
137137
"kms_key": "slz-slz-key",
138138
"name": "management-bucket",
@@ -154,7 +154,7 @@
154154
}
155155
},
156156
{
157-
"endpoint_type": "public",
157+
"endpoint_type": "direct",
158158
"force_delete": true,
159159
"kms_key": "slz-slz-key",
160160
"name": "workload-bucket",

patterns/roks/variables.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,13 +150,13 @@ variable "existing_cos_resource_group" {
150150
}
151151

152152
variable "existing_cos_endpoint_type" {
153-
description = "The endpoint type to use when accessing the existing COS instance, default is `public`."
153+
description = "The endpoint type to use when accessing the existing COS instance. `direct` is the preferred endpoint type for re-platformed regions."
154154
type = string
155-
default = "public"
155+
default = "direct"
156156

157157
validation {
158-
error_message = "Endpoint type can only be `public` or `private`."
159-
condition = contains(["public", "private", null], var.existing_cos_endpoint_type)
158+
error_message = "Endpoint type can only be `public`, `private`, or `direct`."
159+
condition = contains(["public", "private", "direct", null], var.existing_cos_endpoint_type)
160160
}
161161
}
162162

patterns/vpc/override.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
{
1111
"buckets": [
1212
{
13-
"endpoint_type": "public",
13+
"endpoint_type": "direct",
1414
"force_delete": true,
1515
"kms_key": "slz-atracker-key",
1616
"name": "atracker-bucket",
@@ -53,7 +53,7 @@
5353
{
5454
"buckets": [
5555
{
56-
"endpoint_type": "public",
56+
"endpoint_type": "direct",
5757
"force_delete": true,
5858
"kms_key": "slz-slz-key",
5959
"name": "management-bucket",
@@ -75,7 +75,7 @@
7575
}
7676
},
7777
{
78-
"endpoint_type": "public",
78+
"endpoint_type": "direct",
7979
"force_delete": true,
8080
"kms_key": "slz-slz-key",
8181
"name": "workload-bucket",

patterns/vsi/override.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
{
1111
"buckets": [
1212
{
13-
"endpoint_type": "public",
13+
"endpoint_type": "direct",
1414
"force_delete": true,
1515
"kms_key": "slz-atracker-key",
1616
"name": "atracker-bucket",
@@ -47,7 +47,7 @@
4747
{
4848
"buckets": [
4949
{
50-
"endpoint_type": "public",
50+
"endpoint_type": "direct",
5151
"force_delete": true,
5252
"kms_key": "slz-slz-key",
5353
"name": "management-bucket",
@@ -69,7 +69,7 @@
6969
}
7070
},
7171
{
72-
"endpoint_type": "public",
72+
"endpoint_type": "direct",
7373
"force_delete": true,
7474
"kms_key": "slz-slz-key",
7575
"name": "workload-bucket",

0 commit comments

Comments
 (0)