-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
provider/aws: DB subnet group description modification #5921
provider/aws: DB subnet group description modification #5921
Conversation
Do not force a new resource when changing the description of a subnet group
Hi @ColinHebert This change will indeed mean that when a change is made, that it doesn't force a new subnet group BUT this change will not actually change the description You would need to include the work here to change the subnet net group description as part of the If you need any pointers here, please do let me know Paul |
Arg, you are correct, those are the little assumptions that come back and catch you... Anyway, I added the description to the update query (cf. |
DBSubnetGroupName: aws.String(d.Id()), | ||
SubnetIds: sIds, | ||
DBSubnetGroupName: aws.String(d.Id()), | ||
DBSubnetGroupDescription: aws.String(d.Get("description").(string)), |
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.
Hi @ColinHebert
This will only actually be called if there is a chance in subnet_ids
This update will need to be reworked. I will manually make those changes on the PR and test it.
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.
Fixed, added the HasChange on description as well. In the case where the subnet_ids do not change but description does change, the GetChange
method is expected to still return the desired value (as it hasn't changed) for the update.
Hi @ColinHebert This looks good - thanks for the work here :) Merging now as tests are green :)
|
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Do not force a new resource when changing the description of a db subnet group