-
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
aws_db_instance engine_version gets updated in-place with every run #19240
Comments
Got exactly the same issue with Postgres version specified as major (aka 12), being instantiated during first apply and stored in state file as "12.5" and following plan/apply always want to modify it. I think that
should be made completely independent of the code here However, there is a case for which I do not understand how this is really supposed to behave: Say I specify Anything I am missing or getting wrong here ? |
This functionality has been released in v3.54.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. |
Hello,
Whenever
auto_minor_version_upgrade
is disabled with everyterraform apply
it wants to doengine_version
update in-place.When
auto_minor_version_upgrade
is enabled it works as expected.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
Configuration has not changed therefore there should be no update in-place. As long as major version is in order (12.1 matches 12.1.x.y.z) there should not be an update.
Actual Behavior
With every run Terraform wants to update engine_version as you can see below. In reality it does nothing as anyway it stays pinned to the newest minor version that's actually available in AWS RDS.
Below there's a plan from second run (after it was first created without any problems).
Steps to Reproduce
terraform apply
The text was updated successfully, but these errors were encountered: