Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
3 changes: 3 additions & 0 deletions .changelog/47515.txt
Original file line number Diff line number Diff line change
@@ -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`
Comment thread
geekahmed marked this conversation as resolved.
Outdated
```
2 changes: 1 addition & 1 deletion internal/service/kafka/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading