Fix update loop of the mq.User by adding new plan modifiers - #300
Conversation
…tatus field pending Signed-off-by: Sergen Yalçın <yalcinsergen97@gmail.com>
|
Welcome @sergenyalcin 👋 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
|
erhancagirici
left a comment
There was a problem hiding this comment.
@sergenyalcin Thanks for resolving this! Approved
|
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. |
Description
Adds support for tracking pending changes in the
aws_mq_userresource and implements a custom plan modifier to prevent unnecessary API calls whenconsole_accessandgroupschanges are already queued in AWS MQ.New pending Computed Attribute
pendingattribute to the resource schema that tracks pending changes returned by the AWS MQ APIpendingModelstruct with two fields:console_access: Tracks pending console access changespending_change: Tracks the type of pending change (CREATE, UPDATE, DELETE)groups: Tracks pending groups changesConsole Access Plan Modifier
consoleAccessPlanModifierto optimize the update workflowgroupsPlanModifierto optimize the update workflowgroupsHow it works:
console_access, the plan modifier checks if that exact change is already pending in AWSTested in the provider-upjet-aws after generation. Two important observations:
status.atProvider.pendingfield.Thank you, @erhancagirici, for his guidance on the TF plugin framework implementation details, and @ulucinar for the direction he gave.