How to change msk broker storage size without altering cluster config

We are facing an issue with increasing or decreasing the MSK broker storage size without altering the cluster configuration. In our Dev infrastructure, we attempted to decrease the broker_storage_size from 1000 GB to 1 GB alongside changing the number_of_broker_nodes, and this worked successfully.

However, when only changing the broker_storage_size, without adjusting any other parameters, the changes are not reflected. No error or warning is provided, and the value remains unchanged.

We are looking for a solution as we intend to downscale the storage in our production environment soon, where we need to change storage size without modifying the number of broker nodes or causing downtime.

Here is the Terraform code we used:

msk_broker_node_instance_type = “kafka.m5.large”
number_of_broker_nodes = 2
broker_storage_size = 1