resource/aws_msk_cluster: Correct vpc_connectivity state path in UpdateConnectivity#47515
Conversation
Use the correct dotted Terraform path for broker_node_group_info connectivity_info vpc_connectivity so GetOk matches HasChange and planned updates include VPC connectivity settings.
|
Welcome @geekahmed 👋 It looks like this is your first Pull Request submission to the Terraform AWS Provider repository. Thank you very much for taking the time to do so, and welcome to the community! 🎉 Community GuidelinesThis comment is added to every new Pull Request to provide quick reference to how the Terraform AWS Provider is maintained. Please review the information below, and thank you for contributing to the community that keeps the provider thriving! 🚀 Voting for Prioritization
Pull Request Authors
|
|
Oops… |
No problem. Actually because of this typo the vpc connectivity is always empty object and gives request params error. Using version 6.39.0, this error is not existing. |
|
In addition to the typo, it was my oversight not to include an acceptance test for updating |
Co-authored-by: Tabito Hara <105637744+tabito-hara@users.noreply.github.com>
|
@geekahmed Thanks for the contribution 🎉 👏. |
|
Warning This Issue has been closed, meaning that any additional comments are much easier for the maintainers to miss. Please assume that the maintainers will not see them. Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed. |
|
This functionality has been released in v6.42.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! |
aws_msk_clusterupdate logic had a typo in the Terraform state path used byGetOk: it used...0,vpc_connectivity(comma) instead of...0.vpc_connectivity(dot).Because of that,
GetOkcould not readvpc_connectivityfrom state, so VPC connectivity changes might be skipped during updates.The fix changes the path to the correct dotted form so
GetOkmatchesHasChangeand VPC connectivity settings are correctly included inUpdateConnectivity.