Skip to content

Commit 0d6fce6

Browse files
authored
fix(deps): updated required ibm provider to >=1.78.2, <2.0.0 to pull in a fix for this [provider issue](IBM-Cloud/terraform-provider-ibm#6150). The workaround for this issue has now been removed from the module, so if upgrading from a previous version you will see an expected destroy of the null_resource.confirm_lb_active resource. Only applies if passing a value for the additional_lb_security_group_ids input. (#684)
1 parent f6b7de8 commit 0d6fce6

File tree

19 files changed

+54
-83
lines changed

19 files changed

+54
-83
lines changed

.secrets.baseline

Lines changed: 2 additions & 2 deletions
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-04-01T10:27:06Z",
6+
"generated_at": "2025-05-14T17:28:16Z",
77
"plugins_used": [
88
{
99
"name": "AWSKeyDetector"
@@ -82,7 +82,7 @@
8282
"hashed_secret": "8196b86ede820e665b2b8af9c648f4996be99838",
8383
"is_secret": false,
8484
"is_verified": false,
85-
"line_number": 60,
85+
"line_number": 65,
8686
"type": "Secret Keyword",
8787
"verified_result": null
8888
}

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ Optionally, you need the following permissions to attach Access Management tags
235235
| Name | Version |
236236
|------|---------|
237237
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.9.0 |
238-
| <a name="requirement_ibm"></a> [ibm](#requirement\_ibm) | >= 1.71.0, < 2.0.0 |
238+
| <a name="requirement_ibm"></a> [ibm](#requirement\_ibm) | >= 1.78.2, < 2.0.0 |
239239
| <a name="requirement_kubernetes"></a> [kubernetes](#requirement\_kubernetes) | >= 2.16.1, < 3.0.0 |
240240
| <a name="requirement_null"></a> [null](#requirement\_null) | >= 3.2.1, < 4.0.0 |
241241
@@ -263,7 +263,6 @@ Optionally, you need the following permissions to attach Access Management tags
263263
| [ibm_resource_tag.cos_access_tag](https://registry.terraform.io/providers/ibm-cloud/ibm/latest/docs/resources/resource_tag) | resource |
264264
| [kubernetes_config_map_v1_data.set_autoscaling](https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/config_map_v1_data) | resource |
265265
| [null_resource.config_map_status](https://registry.terraform.io/providers/hashicorp/null/latest/docs/resources/resource) | resource |
266-
| [null_resource.confirm_lb_active](https://registry.terraform.io/providers/hashicorp/null/latest/docs/resources/resource) | resource |
267266
| [null_resource.confirm_network_healthy](https://registry.terraform.io/providers/hashicorp/null/latest/docs/resources/resource) | resource |
268267
| [null_resource.ocp_console_management](https://registry.terraform.io/providers/hashicorp/null/latest/docs/resources/resource) | resource |
269268
| [null_resource.reset_api_key](https://registry.terraform.io/providers/hashicorp/null/latest/docs/resources/resource) | resource |
@@ -273,7 +272,6 @@ Optionally, you need the following permissions to attach Access Management tags
273272
| [ibm_container_vpc_worker_pool.all_pools](https://registry.terraform.io/providers/ibm-cloud/ibm/latest/docs/data-sources/container_vpc_worker_pool) | data source |
274273
| [ibm_iam_account_settings.iam_account_settings](https://registry.terraform.io/providers/ibm-cloud/ibm/latest/docs/data-sources/iam_account_settings) | data source |
275274
| [ibm_iam_auth_token.reset_api_key_tokendata](https://registry.terraform.io/providers/ibm-cloud/ibm/latest/docs/data-sources/iam_auth_token) | data source |
276-
| [ibm_iam_auth_token.tokendata](https://registry.terraform.io/providers/ibm-cloud/ibm/latest/docs/data-sources/iam_auth_token) | data source |
277275
| [ibm_is_lbs.all_lbs](https://registry.terraform.io/providers/ibm-cloud/ibm/latest/docs/data-sources/is_lbs) | data source |
278276
| [ibm_is_virtual_endpoint_gateway.api_vpe](https://registry.terraform.io/providers/ibm-cloud/ibm/latest/docs/data-sources/is_virtual_endpoint_gateway) | data source |
279277
| [ibm_is_virtual_endpoint_gateway.master_vpe](https://registry.terraform.io/providers/ibm-cloud/ibm/latest/docs/data-sources/is_virtual_endpoint_gateway) | data source |

examples/add_rules_to_sg/version.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ terraform {
66
required_providers {
77
ibm = {
88
source = "IBM-Cloud/ibm"
9-
version = "1.76.0"
9+
version = "1.78.2"
1010
}
1111
}
1212
}

examples/advanced/version.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ terraform {
66
required_providers {
77
ibm = {
88
source = "IBM-Cloud/ibm"
9-
version = ">= 1.71.0"
9+
version = ">= 1.78.2"
1010
}
1111
kubernetes = {
1212
source = "hashicorp/kubernetes"

examples/basic/version.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ terraform {
66
required_providers {
77
ibm = {
88
source = "IBM-Cloud/ibm"
9-
version = "1.76.0"
9+
version = "1.78.2"
1010
}
1111
}
1212
}

examples/cross_kms_support/version.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ terraform {
66
required_providers {
77
ibm = {
88
source = "IBM-Cloud/ibm"
9-
version = ">= 1.71.0"
9+
version = ">= 1.78.2"
1010
}
1111
}
1212
}

examples/custom_sg/version.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ terraform {
66
required_providers {
77
ibm = {
88
source = "IBM-Cloud/ibm"
9-
version = ">= 1.71.0"
9+
version = ">= 1.78.2"
1010
}
1111
}
1212
}

examples/fscloud/version.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ terraform {
66
required_providers {
77
ibm = {
88
source = "ibm-cloud/ibm"
9-
version = ">= 1.71.0"
9+
version = ">= 1.78.2"
1010
}
1111
}
1212
}

examples/multiple_mzr_clusters/version.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ terraform {
66
required_providers {
77
ibm = {
88
source = "ibm-cloud/ibm"
9-
version = ">= 1.71.0"
9+
version = ">= 1.78.2"
1010
}
1111
kubernetes = {
1212
source = "hashicorp/kubernetes"

main.tf

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -602,30 +602,7 @@ locals {
602602
lbs_associated_with_cluster = length(var.additional_lb_security_group_ids) > 0 ? [for lb in data.ibm_is_lbs.all_lbs[0].load_balancers : lb.id if strcontains(lb.name, local.cluster_id)] : []
603603
}
604604

605-
606-
data "ibm_iam_auth_token" "tokendata" {
607-
depends_on = [data.ibm_is_lbs.all_lbs]
608-
}
609-
610-
resource "null_resource" "confirm_lb_active" {
611-
count = length(var.additional_lb_security_group_ids)
612-
depends_on = [data.ibm_iam_auth_token.tokendata]
613-
614-
triggers = {
615-
confirm_lb_active = var.additional_lb_security_group_ids[count.index]
616-
}
617-
618-
provisioner "local-exec" {
619-
command = "${path.module}/scripts/confirm_lb_active.sh ${var.region} ${local.lbs_associated_with_cluster[count.index]} ${var.use_private_endpoint}"
620-
interpreter = ["/bin/bash", "-c"]
621-
environment = {
622-
IAM_TOKEN = data.ibm_iam_auth_token.tokendata.iam_access_token
623-
}
624-
}
625-
}
626-
627605
module "attach_sg_to_lb" {
628-
depends_on = [null_resource.confirm_lb_active]
629606
count = length(var.additional_lb_security_group_ids)
630607
source = "terraform-ibm-modules/security-group/ibm"
631608
version = "2.7.0"

0 commit comments

Comments
 (0)