Added support for RDS version control#19
Open
LifeCoder45 wants to merge 1 commit intotryretool:mainfrom
Open
Conversation
|
This would be very useful, as AWS has seemingly deprecated Postgres 13.7 - launching the infrastructure with this module is currently failing due to that version being unavailable, which is confirmed in the RDS web console. I note that 13.7-compatible Aurora still exists. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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_versionto (in this case)13.10These 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!