-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
aws_msk_cluster: support Cluster expansion and Open Monitoring #11451
Conversation
any news about this? |
@@ -205,7 +204,54 @@ func resourceAwsMskCluster() *schema.Resource { | |||
"number_of_broker_nodes": { | |||
Type: schema.TypeInt, | |||
Required: true, | |||
ForceNew: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe that MSK allows you to increase, but not decrease this value. Probably due to how Kafka requires partition reassignment when the cluster make up changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right. The same applies to the broker storage size (you can expand it but you cannot decrease it). However, no special validation rules have been applied in that case, so I assume that the same can be done here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If a CustomizeDiff
function is added then we can ForceNew
if the number of broker nodes is decreased.
A similar example:
https://github.com/terraform-providers/terraform-provider-aws/blob/4acecb05959a9e9b07bea9afb87d760ea887da07/aws/resource_aws_elasticsearch_domain.go#L31-L54
Hi, is there any update on this PR getting merged? |
Hello, we are also waiting on this PR to be merged. |
Hello, waiting for this. :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks fantastic, thanks for this @marcoreni 🚀
Output from acceptance testing:
--- PASS: TestAccAWSMskCluster_EncryptionInfo_EncryptionInTransit_ClientBroker (888.98s)
--- PASS: TestAccAWSMskCluster_EncryptionInfo_EncryptionInTransit_InCluster (986.84s)
--- PASS: TestAccAWSMskCluster_EncryptionInfo_EncryptionAtRestKmsKeyArn (990.02s)
--- PASS: TestAccAWSMskCluster_Tags (996.50s)
--- PASS: TestAccAWSMskCluster_basic (1047.46s)
--- PASS: TestAccAWSMskCluster_EnhancedMonitoring (1065.19s)
--- PASS: TestAccAWSMskCluster_OpenMonitoring (1134.00s)
--- PASS: TestAccAWSMskCluster_NumberOfBrokerNodes (1273.72s)
--- PASS: TestAccAWSMskCluster_BrokerNodeGroupInfo_EbsVolumeSize (1308.71s)
This has been released in version 2.51.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks! |
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
Closes: #11215
Closes: #10553
Relates: #10673 (fix acceptance tests)
Release note for CHANGELOG:
Output from acceptance testing:
Since enhanced monitoring is update via the same API call of open monitoring, this came free.
In order to make the acceptance tests pass I explicitly declared encryption_info configuration for all test templates. I don't know if it may be useful to write some notes inside the tests to specify this behavior.
I also fixed some tests & docs that were probably outdated (
zookeeper_connect_string
is now a list of hostnames and ports).