Added support for RDS version control #19
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a simple PR that does two thing:
Add support for enabling / disabling RDS minor version upgrades
Add support for specifying the RDS engine version itself (currently hardcoded)
The need for this is due to a few issues caused by the current hardcoded database version (13.7).
I added this module to my project last week, all was well. Today, when running
terraform plan ...
again, there is now a delta:In the past days, the DB hit its regularly scheduled maintenance window, and upgraded from
13.7 -> 13.10
.However, RDS does not support downgrades, as seen when attempting to apply:
So as the module is now, I only have one option, and that's to login to the AWS UI and disable "Auto minor version upgrade" under Maintenance, which is of course not idempotent, and contrary to Terraform principles.
This PR fixes the issue, by providing some flexibility:
rds_engine_version
to (in this case)13.10
These are very minor changes, validated with:
If possible, it'd be great to get this merged quickly, so I don't have to use the web UI / my own fork I don't intend to maintain.
Thanks!