-
-
Notifications
You must be signed in to change notification settings - Fork 251
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
aws_elasticache_parameter_group should have create_before_destroy set to true
#178
Comments
As is, this bug prevents using this module for major version upgrades. |
Any thoughts when this will be fixed? |
It's actually a bit more complicated than just setting |
Maybe it can be fixed by adding depends_on block? |
I believe the fix would be to add some random suffix so it creates a new param group name. This would force the creation of a new param group, move the cluster to the new param group and remove the old one. Like @joshuabaird said, this prevents major version upgrades as the family variable forces the param group to be recreated. |
I have a PR open to fix this, but it has a bug and I haven't had the time to fix it yet. Will try to look at it soon. |
@joshuabaird @sherifkayad @evanstachowiak I fixed this in my own instance of the cloudposse code by making the replication group depend_on the param group. That way the create order is param group then replication group, and a destroy etc is the inverse |
Found a bug? Maybe our Slack Community can help.
Describe the Bug
While attempting to upgrade to Redis version 6.2 on AWS, I tried renaming the family and I got an error as follows:
Expected Behavior
The upgrade should go through and the new parameter group should be created first
Steps to Reproduce
Steps to reproduce the behavior:
Screenshots
If applicable, add screenshots or logs to help explain your problem.
Environment (please complete the following information):
Anything that will help us triage the bug will help. Here are some ideas:
Additional Context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: