[Bug]: aws_rds_reserved_instance must be replaced #37530
Labels
bug
Addresses a defect in current functionality.
needs-triage
Waiting for first response or review from a maintainer.
service/rds
Issues and PRs that pertain to the rds service.
Terraform Core Version
1.8.2
AWS Provider Version
5.49.0
Affected Resource(s)
When we do a little change on the aws_db_instance (for example bump the version of posgres from 15.6 to 15.7), the aws_rds_reserved_instance_offering is renewed, and that causes everything to fail
Expected Behavior
No change to the data aws_rds_reserved_instance_offering and the resource aws_rds_reserved_instance
Actual Behavior
data aws_rds_reserved_instance_offering will be renewed, so the offering_id is not known, what causes the resource aws_rds_reserved_instance to be replaced. And that's not possible, the resource is deleted from the state, but can not be recreated as the reserved instance already exists in AWS.
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
Make little change on the aws_db_instance (we updated the version from 15.6 to 15.7) and do an apply
Debug Output
Not sure if this is a bug or "works as designed", if you need some debug logging, I can create it.
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
No
The text was updated successfully, but these errors were encountered: