-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
No longer able to do minor version upgrades on aws_db_instance with read replicas #24887
Comments
Is it possible that you could set |
AWS would refuse to send even a pending upgrade if replicas have not been upgraded |
This is a regression in terraform-provider-aws 3.x -> 4.x that breaks our workflows, we are unable to provision new RDS read replicas with a newer minor version, nor upgrade existing RDS read replicas and thus primary instances using terraform. The Will the fix for this issue be to simply remove the |
Same issue with MariaDB replicas. |
Just to clarify, this makes it impossible to upgrade neither the primary or the replica via terraform |
Is there a known workaround for this issue (other than just a Console upgrade)? This seems like a really fundamental issue. @gdavison - are you able to provide any detail as to the underlying technical reason for placing the |
The |
I can confirm, the current behavior with 3.x when creating a new RDS PostgreSQL replica instance with an
Yes, this is an unfortunate regression. |
This functionality has been released in v4.63.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Community Note
Terraform CLI and Terraform AWS Provider Version
Affected Resource(s)
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Expected Behavior
Formerly, we could do minor version upgrades by upgrading the replica's engine version first, then upgrading the primary to match.
Actual Behavior
As of v4.0, engine and engine_version "Cannot be specified for a replica", so it cannot be set on the replica.
If you attempt the upgrade the primary, you receive:
The only solution we have in mind at the moment is to get rid of the replica, upgrade the primary, then recreate the replica, but that isn't ideal.
Steps to Reproduce
terraform apply
terraform apply -var postgres_engine_version=14.2
Important Factoids
Nothing in particular.
References
The text was updated successfully, but these errors were encountered: