-
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
docs: db_instance_role_association
: add replace_triggered_by
to example config
#39054
Conversation
Community NoteVoting for Prioritization
For Submitters
|
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 🚀
This functionality has been released in v5.65.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. |
Description
I wrote quite a long comment on the referenced issue that gives more detail as to what's going on here. The tl;dr is:
aws_db_instance.example.identifier
aws_db_instance.example
is recreated, Terraform has no reason to recreate theaws_db_instance_role_association
, since thedb_instance_identifier
is unchangedI didn't dig too far into when this became necessary, but I suspect it may have been when the
id
/identifier
/resource_id
changes happened ("Schema notes" in references).I'm a bit on the fence on exactly how to document this. It's not required in all cases (using
identifier_prefix
or omitting both of those arguments negates the need), but it also might not be immediately clear that this is necessary, or exactly what is necessary (I got the "solution" wrong at first, for example). Adding thelifecycle
block with a note to the example config seemed like a decent compromise.Relations
Closes #38765
References
Output from Acceptance Testing
n/a, docs