-
Notifications
You must be signed in to change notification settings - Fork 8.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to increase number_of_brokers_nodes without rebuilding cluster. #12093
Comments
the number_of_brokers property would need to determine if its an increase to unset ForceNew. (not sure if that sort of state would be possible in the provider. decreases would require a replace). |
ebs_volume_size does not have the ForceNew, but does behave the same way in practice. You can increase this value, but not decrease it. I'm assuming an apply will fail with the API returning some error message if you attempt to shrink the volume. I would prefer this same behavior with the num_brokers. If I am intentional in my desire to shrink either of those #s, I can destroy targetting the cluster resource and then reapply, vs now I can't use tf at all beyond initial cluster creation. I believe this is a pretty significant flaw in this provider and its ability to support MSK beyond initial cluster creation is severely hampered with this. I'm all for checking values as @brettcave proposed, but can we get the ForceNew removed in the interim post haste. |
As @ewbankkit notes above, we already have an open issue and pull request covering this functionality -- please follow those for updates (I'll be reviewing the PR today hopefully 🤞 ). |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Community Note
Terraform Version
Terraform v0.12.20
Affected Resource(s)
aws_msk_cluster
Terraform Configuration Files
number_of_broker_nodes = 3 -> 6
Debug Output
Expected Behavior
Should not cause rebuild of MSK cluster from increasing the number of brokers. This is possible through UI/API/CLI
Steps to Reproduce
terraform plan
The text was updated successfully, but these errors were encountered: