-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Add New MSK Broker Node Data Resource #20615
Conversation
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.
Welcome @james-bjss 👋
It looks like this is your first Pull Request submission to the Terraform AWS Provider! If you haven’t already done so please make sure you have checked out our CONTRIBUTING guide and FAQ to make sure your contribution is adhering to best practice and has all the necessary elements in place for a successful approval.
Also take a look at our FAQ which details how we prioritize Pull Requests for inclusion.
Thanks again, and welcome to the community! 😃
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.
LGTM 🚀.
Commercial
% make testacc TESTARGS='-run=TestAccAWSMskBrokerNodesDataSource_basic'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSMskBrokerNodesDataSource_basic -timeout 180m
=== RUN TestAccAWSMskBrokerNodesDataSource_basic
=== PAUSE TestAccAWSMskBrokerNodesDataSource_basic
=== CONT TestAccAWSMskBrokerNodesDataSource_basic
--- PASS: TestAccAWSMskBrokerNodesDataSource_basic (1919.42s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 1922.956s
GovCloud
% make testacc TESTARGS='-run=TestAccAWSMskBrokerNodesDataSource_basic'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSMskBrokerNodesDataSource_basic -timeout 180m
=== RUN TestAccAWSMskBrokerNodesDataSource_basic
=== PAUSE TestAccAWSMskBrokerNodesDataSource_basic
=== CONT TestAccAWSMskBrokerNodesDataSource_basic
--- PASS: TestAccAWSMskBrokerNodesDataSource_basic (1172.83s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 1176.275s
@james-bjss Thanks for the contribution 🎉 👏.
|
@ewbankkit No problem, thanks for the changes and for reviewing. 👍 |
This functionality has been released in v3.60.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. Thank you! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Community Note
Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request
What?
This is a new Data Source to lookup details of MSK Broker Nodes
Why?
The current
aws_msk_cluster
resource has a bootstrap broker attribute that returns a comma delimited string of hostnames and ports; however this only returns one hostname per availability zone. Meaning in a 6 Node cluster only 3 hosts are returned.Furthermore, the returned list is not stable and returns different hostnames on subsequent calls/refreshes.
Use Case
We would like to enumerate the hostnames of each broker node so we can create Consul/DNS aliases. This data source will return a list of brokers with their associated hostnames.
More Info
Kafka API Docs
Output From Acceptance Testing
Relates: #19659
Closes: #20940
Closes: #20628
Closes: #19638
Closes: #11085
Closes: #15731.