-
-
Notifications
You must be signed in to change notification settings - Fork 182
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
create_before_destroy for parameter groups, explicit dependencies #109
Conversation
Our use-case:
|
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.
Your changes can be a big surprise for that one who decided to update version of module. Could you keep the current behaviour and introduce the new variable use_name_prefix
for your case. As example see https://github.com/cloudposse/terraform-aws-security-group/blob/master/main.tf
I'm not sure whether that's the right approach for this, since this is required if you want to upgrade major versions of RDS for instance. It doesn't break anything except for changing the naming of the parameter and option groups. This PR is following the same approach as done in cloudposse/terraform-aws-rds-cluster#110. If the |
I pretty sure that will trigger resources( |
In case of upgrades (e.g. postgres from 12 to 13) without these changes the state cannot be applied, because the group name is already in use and cannot be upgraded as-is.
Module upgrades shouldn't result in new groups (once they are initially created with a prefix) unless group parameters are being modified. |
exactly! A lot of end-customers uses this module in production and for them your changes are breaking. As I wrote before you need just add |
/test all @SweetOps changes to the names of parameter groups and options groups will cause them to be recreated, but it is not a problem to change them in existing databases, so the change should not actually be breaking anything. |
@Nuru these changes requires RDS instance reboot or it'll reboot it immediately (or stuck in |
@SweetOps Fair enough, we can call this a breaking change if you want. I am OK with that, but we can ask @osterman and @aknysh for their opinions. The reason I'm OK with a breaking change here is that otherwise the module simply cannot update or modify the parameter group or option group, so I consider the module broken. In any case, someone needs to fix the test to expect the generated name:
|
what
create_before_destroy
why
references