Open LifeCoder45 opened 1 year ago
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 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!