[Bug]: Error: updating RDS Cluster Instance (aurora-sandbox-rds-instance-0): InvalidDBInstanceState: Database instance is not in available state. #30637
Attributes tags, tags_all and instance_class of Aurora-PostgreSQL DB instance are updated with a single terraform apply run.
Actual Behavior
Attributes tags, tags_all and instance_class of Aurora-PostgreSQL DB instance cannot be updated with a single terraform apply run (see error message). With two separate terraform apply runs - the first one for tags and tags_all attributes and a second one for the instance_class attribute - the update works.
Relevant Error/Panic Output Snippet
Error: updating RDS Cluster Instance (aurora-sandbox-rds-instance-0): InvalidDBInstanceState: Database instance is not in available state.
status code: 400, request id: 5ce04c66-1138-4ad8-9233-9b5ac64bcec1
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
Volunteering to Work on This Issue
If you are interested in working on this issue, please leave a comment.
If this would be your first contribution, please review the contribution guide.
Terraform Core Version
0.14.11
AWS Provider Version
4.61.0
Affected Resource(s)
aws_rds_cluster_instance
Expected Behavior
Attributes tags, tags_all and instance_class of Aurora-PostgreSQL DB instance are updated with a single terraform apply run.
Actual Behavior
Attributes tags, tags_all and instance_class of Aurora-PostgreSQL DB instance cannot be updated with a single terraform apply run (see error message). With two separate terraform apply runs - the first one for tags and tags_all attributes and a second one for the instance_class attribute - the update works.
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Terraform plan which causes the error
Steps to Reproduce
Apply the following terraform plan
Debug Output
No response
Panic Output
No response
Important Factoids
Due to reasons we must stick to the old terraform version 0.14.11.
References
No response
Would you like to implement a fix?
None