From c0f5ee324519974e4d305626a19be53b2f7ed98d Mon Sep 17 00:00:00 2001 From: geekahmed Date: Fri, 17 Apr 2026 23:19:09 +0200 Subject: [PATCH 1/3] Fix MSK cluster vpc_connectivity GetOk state path Use the correct dotted Terraform path for broker_node_group_info connectivity_info vpc_connectivity so GetOk matches HasChange and planned updates include VPC connectivity settings. --- internal/service/kafka/cluster.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/service/kafka/cluster.go b/internal/service/kafka/cluster.go index d93d2ed70dcf..007986eac8ab 100644 --- a/internal/service/kafka/cluster.go +++ b/internal/service/kafka/cluster.go @@ -734,7 +734,7 @@ func resourceClusterUpdate(ctx context.Context, d *schema.ResourceData, meta any } var connectivityInfo types.ConnectivityInfo - if v, ok := d.GetOk("broker_node_group_info.0.connectivity_info.0,vpc_connectivity"); ok && len(v.([]any)) > 0 && v.([]any)[0] != nil { + if v, ok := d.GetOk("broker_node_group_info.0.connectivity_info.0.vpc_connectivity"); ok && len(v.([]any)) > 0 && v.([]any)[0] != nil { connectivityInfo.VpcConnectivity = expandVPCConnectivity(v.([]any)[0].(map[string]any)) } input.ConnectivityInfo = &connectivityInfo From 6c93cb5f82a83831dce22b49c21d4d4e21224fe1 Mon Sep 17 00:00:00 2001 From: geekahmed Date: Fri, 17 Apr 2026 23:22:50 +0200 Subject: [PATCH 2/3] changelog: add entry for #47515 --- .changelog/47515.txt | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .changelog/47515.txt diff --git a/.changelog/47515.txt b/.changelog/47515.txt new file mode 100644 index 000000000000..dfb5f9c52792 --- /dev/null +++ b/.changelog/47515.txt @@ -0,0 +1,3 @@ +```release-note:bug +resource/aws_msk_cluster: Fix `broker_node_group_info` `vpc_connectivity` updates by correcting the Terraform state path used in `GetOk` +``` From 365bbebc1fa77310b08fa05a8998deff896a671c Mon Sep 17 00:00:00 2001 From: Ahmed Moustafa Date: Sat, 18 Apr 2026 16:09:05 +0200 Subject: [PATCH 3/3] Update .changelog/47515.txt Co-authored-by: Tabito Hara <105637744+tabito-hara@users.noreply.github.com> --- .changelog/47515.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changelog/47515.txt b/.changelog/47515.txt index dfb5f9c52792..59ae1311db8a 100644 --- a/.changelog/47515.txt +++ b/.changelog/47515.txt @@ -1,3 +1,3 @@ ```release-note:bug -resource/aws_msk_cluster: Fix `broker_node_group_info` `vpc_connectivity` updates by correcting the Terraform state path used in `GetOk` +resource/aws_msk_cluster: Fix a request parameter error when updating `broker_node_group_info.vpc_connectivity` configuration block. This fixes a regression introduced in [v6.40.0](https://github.com/hashicorp/terraform-provider-aws/blob/main/CHANGELOG.md#6400-april-8-2026) ```