terraform-aws-msk-kafka-cluster
terraform-aws-msk-kafka-cluster copied to clipboard
Unable to change MSK broker storage size with Terraform
Description
After provisioning a new MSK cluster with fixed storage size it's not possible to change the storage size with Terraform. It seems like Terraform is unable to detect the change in the broker storage size.
- [x] β I have searched the open/closed issues and my issue is not listed.
Versions
-
Module version : 2.5 (Latest in Terraform registry when creating the issue.)
-
Terraform version: v1.5.7 and also latest v1.8.5 on linux_amd64
-
Provider version(s): provider registry.terraform.io/hashicorp/aws v5.54.1 provider registry.terraform.io/hashicorp/random v3.6.2
Reproduction Code [Required]
module "msk" {
source = "terraform-aws-modules/msk-kafka-cluster/aws"
version = "2.5.0"
name = "dev"
broker_node_instance_type = "kafka.t3.small"
kafka_version = "3.5.1"
number_of_broker_nodes = 2
client_authentication = {
sasl = { iam = true }
}
broker_node_client_subnets = [
...
]
enable_storage_autoscaling = false
broker_node_storage_info = {
ebs_storage_info = {
volume_size = 5
}
}
}
Steps to reproduce the behavior:
- Create the MSK cluster with fixed storage space
- Try to increase the storage space
Expected behavior
Terraform plan should show that it would change the EBS volume size from 5 GB to 20 GB.
Actual behavior
Terraform plan shows "No changes. Your infrastructure matches the configuration.".